Post code, not pictures of code, see Wiki - how to post code on this forum. It helps others who want to copy your code to test.
Looking at your code there are multiple issues:
- The first line under the method definition is not properly indented. Also, why are you trying to assign the event object to a custom property?
Navigation.GoToPage
doesn't exist in Ignition.system.perspective.navigate
is the correct builtin method. Not sure where you managed to get that from.- Does your root container have a custom method called
showPage
? What does it do and why are you calling it? - Why are you building the full path string to the selected item to not use it? (Your entire
for
loop) - You assign
event.target
to a variable, but then use both the assigned variable andevent.target
later in code.
Where is the script supposed to grab the text that you want to type into the alarm page?
One way to approach this is to use the params
argument of system.perspective.navigate
to pass the filter term to the view via a view parameter while navigating to your Alarms
page.