I’m currently using Perspective as a way to go paperless by building form views that save data to the database when a user fills it out. For example, a daily maintenance form.
This works well so far, however I want the form to be customizable from the database. That way an external program or a user without access to Ignition designer can configure a database table called “form_items” whenever a form field needs to be added or removed.
I can handle all the database calls and other scripting in python easily, but I’m stuck at how to add a child component to the root programmatically.
I tried setting
self.children = [...], but the field is read-only. Is there any way to add a component to the screen programmatically on startup?