I am working with some projects in Ignition Perspective and mostly all the views are created using external components and then embed those views to a final page/view.
There are times when I modify some stuff in the views and the whole view restart all the values to its defaults values. Sometimes those values are intended to handle with some machines using PLC or just to keep track on progress for some processes and it is a little bit annoying that the values goes back to its default ("blanks").
Is there a way to keep data if the active session is using it?. I tried using the alert message for project updates but I don't think that it is the best option for this use case.
It kind of sounds like you're just writing to the props in your view templates and not binding them to tags or session props first? Which of course would wipe any values you had upon any number of things, from page navigation, to project saves, etc. You should be bidirectionally binding your props to something that survives at least project saves. It depends if you want the values to be:
- gateway-scoped / same value for all clients => use tags
- session-scoped / same value for each client session, across all client tabs => session custom props
- tab-scoped / different value for each session's open tabs => Phil's Integration Toolkit module's getPageVar() expression function dict
2 Likes