It is currently Sat May 25, 2013 10:12 pm




Post new topic Reply to topic  [ 4 posts ] 
 Initialize Forms, How to. 
Author Message
Trooper
Trooper

Joined: Thu Sep 08, 2011 11:52 am
Posts: 13
Post Initialize Forms, How to.
I am a new Ignition User, but in 2 months I have a fairly Mature MFG HMI. I would like to set initial conditions on a user entry form as shown in the attachment, but I have not been able to find a mechanism to do this. I need to set the treeview to index value -1 ( and possibly other parameters) on the form open event. I am already passing parameters to the form, but I need a one shot pass on form open only.

Has anybody done something similar.

Thx Ken


Attachments:
IGN_Form.JPG
IGN_Form.JPG [ 239.48 KiB | Viewed 574 times ]
Thu Sep 08, 2011 12:06 pm
Profile
Moderator
Moderator

Joined: Sun Apr 02, 2006 2:46 pm
Posts: 3853
Location: Sacramento, CA
Post Re: Initialize Forms, How to.
There are three standard strategies for initializing forms on open:

1. Change the window's cache policy to "Never". It will be "fresh" every time you open it.
2. Bind the things that need initializing to expressions holding their appropriate initial value.
3. Write an "internalFrameActivated" event to have a script initialize things.

Those are in order of how easy they are.

_________________
Carl Gould
Software Development
Inductive Automation


Thu Sep 08, 2011 1:19 pm
Profile WWW
Trooper
Trooper

Joined: Thu Sep 08, 2011 11:52 am
Posts: 13
Post Re: Initialize Forms, How to.
Excellent, I went with #1 and it works fine. I am glad I asked, I spent a couple hours exploring features and was getting into increasing convoluted scripts. In 2 months of focused development we are far ahead of 18 months with a competitor's legacy HMI. When I proposed Ignition I estimated that payback in reduced support costs would be in 6 months and that continues to be true.

THX Ken


Thu Sep 08, 2011 2:31 pm
Profile
Moderator
Moderator

Joined: Thu Mar 30, 2006 10:08 pm
Posts: 1176
Post Re: Initialize Forms, How to.
Ken - good to hear that worked. Don't be a stranger on the forum.

_________________
Nathan Boeger, CISSP-ISSAP, CCNP Voice, VCP
Not Another Industrial Blog - My SCADA software blog
"Design Simplicity Cures Engineered Complexity"


Thu Sep 08, 2011 4:57 pm
Profile WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: Google [Bot] and 0 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: