It is currently Thu Apr 24, 2014 5:12 am




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

Joined: Wed Feb 25, 2009 2:17 am
Posts: 44
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' : 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
Profile
Moderator
Moderator

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 2 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: