I like to create a dialog page to allow the model user (in run time use) to turn on/off checkboxes, enter parameters etc...
Now don't see how I can do this.
- Is it possible to directly put and write to variables to the dialog which are located on the Frame ?
- The callback method can not be changed (is read only). If the above request can not be implemented, I need to have additional checkboxes and variables in the dialog and copy these to the variables in the frame or tablefile etc...
I guess the operator should change the variables on the dialog and press the 'Apply' button. This would trigger the Apply code in the callback method.
I went through Stefan B's document section 2.14.
I attached a simple example where I like to us the dialog window variables to update the variables on the Frame.
Solved! Go to Solution.
I spend some time on this and found out how it works.
The callback method which is in the Dialog has to be replaced by a new one, copying its content and adding the required own code to copy the variables between the Dialog and Frame variables.
This is either intended by Siemens or a mistake.
Creating an observer I get a method with the interface. I can change this code.
The key is the "setvalue" and "getvalue" command.
Attached is an updated model show how to do.