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


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.

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

Ken - good to hear that worked. Don’t be a stranger on the forum.