Root Container for template object on another screen

Hello,

By Using Following method we can use particular object detail in the scripting
“event.source.parent.getComponent(‘NAME’).text”
so it is working fine now, but if i am using template object on another screen, so how can we mention this template object detail like root container in the scripting of that another screen.

is there any solution ?

If you’re using the text from a component and want that used in scripting via an embedded view, you could set that text as a parameter on the template and reference the parameter in scripting