Modifying Elements on ParentScreen in Javascript #343
-
Hi, But this brings me to my question: SetElementProperty allows to manipulate Elements on the ParentScreen. Is this also possible if I am using Javascript instead of Simple Script? If yes, how to do? Thanks in advance. BR Thomas |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
for sure... like this:
|
Beta Was this translation helpful? Give feedback.
-
Problem is, this is not very refactor friendly. Cause I use inside of the screenviewer 2 shadow doms (for some reason), you need to stack those 4 calls. |
Beta Was this translation helpful? Give feedback.
-
So, I now added 2 methods 2 "RUNTIME", see:
With the second one you cound find any element with the constructor in the second parameter and a predicate wich you get put in the 3rd (the predicate also could be empty) |
Beta Was this translation helpful? Give feedback.
-
Hi,many thanks for the great effort and the quick provision of a solution.BrThomasAm 21.08.2024 um 21:30 schrieb Jochen Kühner ***@***.***>:
So, I now added 2 methods 2 "RUNTIME", see:
let parentSV = RUNTIME.getParentScreen(instance);
let parentSV2 = RUNTIME.findParent(instance, ScreenViewer, x => x.id == 'aa');
With the second one you cound find any element with the constructor in the second parameter and a predicate wich you get put in the 3rd (the predicate also could be empty)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
So, I now added 2 methods 2 "RUNTIME", see:
With the second one you cound find any element with the constructor in the second parameter and a predicate wich you get put in the 3rd (the predicate also could be empty)