Crimson 3.1 Widget With Array Element

Does anyone know how to link an element of an array tag to a widget? My current widget needs to use the array element tag's .AsText property and its .Back property. I've tried using the widget definition flags in the following order with the following results:


1: Tag, Writeable = value in the widget won't update
2: Tag, Element = value in the widget won't update
3: Tag = value in the widget updates, but the background color won't update.
4: None = no data displayed
5: Element = no data displayed


If anyone has any advice, I'd really appreciate it.
 
I think you will have to make each property of the tag you want to use a separate widget data item.

You can make the array index a data item as well and assign it to a tag, but it probably won't automatically bind if you are using folder binding.

I have some widgets where the only thing I need as a data item is the array indice.

I have run into this too where I just wanted to have the widget know about the tag and expected to be able to refer to all the sub-elements associated with the tag, but it doesn't work that way.

So, having extra data items for the tag background color and the .astext appearance will require what feels like wasteful extra items in the setup.

More details about what you are doing with the widget might help.
 
I broke up the tag elements into separate widget items like you suggested, and it seems to work. Kinda a bummer that the widget doesn't automatically pull that data into the item though.
 

Similar Topics

Hi everyone, I am using Crimson 3.0 to edit a project file created by a vendor. I have created a widget, and spent some time figuring out that...
4
Replies
2,652
Views
Good morning, I have built a widget and when I use the smart duplicate feature on that widget, it just copies the previous widget and does not...
1
Replies
2,632
Views
Happy New Year to everyone!! Since it is slow this time of year for me I decided to learn Widgets. I have a couple of screens that I build and...
13
Replies
7,779
Views
I created a widget with several numerical display primitives. I want the user to be able to tap the widget, which will then show a popup screen...
0
Replies
2,532
Views
I have created a widget with folder binding enabled. The widget also has an associated action. The action is : change value, data=tag1 to write...
12
Replies
7,217
Views
Top