Open yy783 opened 1 week ago
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: