It is currently Tue Sep 16, 2014 7:30 pm

Post new topic Reply to topic  [ 2 posts ] 
Author Message

Joined: Wed Feb 25, 2009 2:17 am
Posts: 50
Post Popup
Hi I have created a popup with several custom properties tags. I pass paramenters into popup when it opens.

I have a few static tags and also some paramenters that are read tags for status. The question is how do I pass paramenters back so I can setup a reset and control button and have these buttons action tags in the PLC?
This is the code I am using to open Popup.

system.nav.openWindow('Popups/B_LTG_01_G1ETEST', {'Desc' : 'LIGHT CONTACT','State' :"PLC/Global/SLightContOut/SLightContOut_33_/State").value,'Health' :"PLC/Global/SLightContOut/SLightContOut_13_/Healthy").value,'Mode':, 'Names' : 'B_LTG_01_G1E', 'Zone' : 'Creek', 'Chainage' : 40200, 'Alarm' : 'B_LTG_01_G1E%'})


Mon Aug 20, 2012 3:40 pm

Joined: Wed Apr 18, 2007 11:00 am
Posts: 645
Location: Sacramento Ca.
Post Re: Popup
You can do it, but there is not a great way to pass parameters 'back' to the main window from a popup. But you can use client tags to keep information the linked between screens.

Alternatively, you can pass in a tag path (or part of one) and use that in an Indirect Tag binding to read/set whatever tag values you'd like.

Robert McKenzie
Inductive Automation
Technical Support

Mon Aug 20, 2012 3:49 pm
Profile WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 4 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: