Dynamic components using Python

Hi

I have created a template (which has one or two properties in its root that enables the template to report on a specific part of my system). What I need to do is:

a) Dynamically create a variable amount of instances of this template in a container
b) These instances must be able to dynamically position themselves depending on the size of the container (similar to the FlowLayout Manager in Java)

I imagine I will need “the invert” of the function system.gui.getParentWindow(event).getComponent() (thus, something like system.gui.getParentWindow(event).createComponent() perhaps?). I will of course also need to pass some parameters into it in order to initialise the properties in its root.

Thanks

Ignition does not allow for dynamic creation of components for security and complexity reasons. Your best bet is to pre-determine template locations in a window by placing the templates in the window like you usually would, and then dynamically change the “visible” property of templates via scripting.