|
|
|
It is currently Tue Jun 18, 2013 6:59 pm
|
View unanswered posts | View active topics | View unsolved topics
|
Page 1 of 1
|
[ 2 posts ] |
|
| Author |
Message |
|
hazey
Corporal
Joined: Wed Feb 25, 2009 2:17 am Posts: 41
|
 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' : system.tag.read("PLC/Global/SLightContOut/SLightContOut_33_/State").value,'Health' : system.tag.read("PLC/Global/SLightContOut/SLightContOut_13_/Healthy").value,'Mode': system.tag.read, 'Names' : 'B_LTG_01_G1E', 'Zone' : 'Creek', 'Chainage' : 40200, 'Alarm' : 'B_LTG_01_G1E%'}) system.nav.centerWindow('Popups/B_LTG_01_G1ETEST')
thx
|
| Mon Aug 20, 2012 3:40 pm |
|
 |
|
Robert.McKenzie
Moderator
Joined: Wed Apr 18, 2007 11:00 am Posts: 399 Location: Sacramento Ca.
|
 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 |
|
 |
|
|
Page 1 of 1
|
[ 2 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
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
|
|