Set Object Dynamics from Tag Array

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
matto
Posts: 13
Joined: Mon Dec 12, 2011 2:22 pm

Set Object Dynamics from Tag Array

Post by matto »

I have a tag array that contains 14 elements: buttonVisibility[0...13]. I modify that tag array in various places in the application scripts.

I also have 14 buttons on a screen: Button0 ... Button13

I would like to map each of the buttons to its corresponding buttonVisibility array element. It would be similar to the following but using dynamics instead of scripting:

Button0.visible = buttonVisibility[0]
Button1.visible = buttonVisibility[1]

The problem is that I cannot:
1. select an array tag in the dynamics section of the WYSIWYG area of iX,
2. modify the Xaml code (I cannot save the project after modifying the Xaml in any way).

Can this be done?

Thank you

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Set Object Dynamics from Tag Array

Post by mark.monroe »

You can not access array elements in a tag using Dynamics. You have to use a script. In general, Charts are currently the only non-script object in iX Developer that can directly access array values.
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Post Reply