I have many instances of one template on my form. Each instance represents an hour of a shift with data such as completed parts. I am trying to keep a running total of completed parts from each hour. So I would like to access the previous hour (template instance) to add it to the current hour.
I have a template parameter for the parts completed that hour. My project crashes as soon as I try to access that parameter, or any other parameter, from another template instance.
How are you accessing the template parameter? Scripting? Property binding? Expression binding?
What version of Ignition are you using?
If you can create a simple version of the template with the problem and then export it and upload it to this forum topic then I will check it out and if there is a bug then the template can be sent to IA and the bug can be fixed.
I’m accessing the template from a property change script My Ignition version is 7.6.4
Creating a simple one will take some time but I’ll work on it and post it.
My error is this:
Traceback (most recent call last):
File “event:propertyChange”, line 7, in
TypeError: getComponent(): 1st arg can’t be coerced to int
I still receive the same error. Here is an example of my form with multiple instances of the template inside. I have a button from another form calling testWindow.