PERSISTENT_OBJECTS
This element contains a list of objects that should be saved when the application quits, or when the user interface is closed. Multiple instances of this element are allowed: any new object identifier will be added to the list of objects to be saved.
Attributes brief detailed show all inherited
Name | Description | |
---|---|---|
object_ids | List of identifiers of objects to be declared as persistent |
Examples
The following example creates a single parameter and a string and declares them as persistent, so they will be saved when the application quits, or when the user interface is closed:
You could do the same using the "persistent" attribute of the PARAM or STRING.
Thought using "persistent" attribute can be easier sometimes, PERSISTENT_OBJECTS allows to add persistency to some objects that are not directly accessible (like say "xyz_pad.z_positions_count").
* Note that if you're using "persistency" inside KUIML_WIDGET (sub-skins), the values will be preserved when you reload KUIML_WIDGET content, but will be lost when you reload the main skin. So for real long-time "persistency" you may want to use the objects created in the main skin.