-
-
Notifications
You must be signed in to change notification settings - Fork 837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]The $getTag() method cannot get the value of the internal data #1479
Comments
Hi, since internal device is only accessible on the frontend, it could be possible to add the feature for scripts in client mode |
The mode I'm using is the client mode, I printed the object with the target id in $getTag, but there is no “value” attribute, so the $getTag() method always returns undefined |
Hi, I try to understand your description and I am confused to understand what your purpose is |
For example, there is an S7 variable called “LQB1_RunByte”, and there is an internal variable called “runByte”. In the click event of a certain element, it is set to “Open Card” to open “view1” and bind “runByte” and “LQB1_RunByte”. There is a button in “view1”, and when the button is clicked, the "Client-Mode" script "console.log($getTag(runByte))" is executed. The script prints a "null" or "undefined" result. My goal is to create a common card interface for objects of the same type. |
Describe the bug
Execute the function of opening the card and bind an internal variable A to S7 variable B, click the button to execute the script on the Open Card interface, the input parameter is the internal variable A, the script content is console.log($getTag(a)), and the printed result is undefined.
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: