I have two tables that hold the same information but for different cranes, 1 and 2.
There are 14 fields in each table. Most all I have pointed at Table, but I would like to have the ability to select a row from either Cooler Crane 1 Info or Cooler Crane 2 Info and have the corresponding information show in the correct text field.
I have an example below where I pointed one text field to the first table but I need it to be dynamic based on which table/row I select.
It’s not too difficult. Here is a mockup I’ve done in a flex container that illustrates a straight forward approach using the onRowClick event script. You should be able to easily adapt this model to your usage case. Most people probably prefer the onSelectionChange script for this, but since we are working with two tables, and we probably only want one table to have a selection, this will probably be better.
Note how only one table has a selection, and that selection is the one that is displayed in the text fields.
The first table’s onRowClick event script simply removes the selection from the other table, and then writes its current selection to the text fields. Here is the code:
One of your paths must be wrong. The best and easiest approach is probably to get all of your properties using the icon in the top right of your designer window:
It will prevent a lot of typo type mistakes.
Just select the property you want from the tree, and the designer will automatically insert the correct path into your code.
Awesome, thank you so much. I have been through all my training and have been doing this for a year but these simple things that are not easy to find always stump me.
One thing to pay attention to that helps is how the data is actually displayed in the property editor.
In the case of the table the timestamp data will be displayed as a long number, while the items in the columns config tell the table how to display that data, not necessarily the output format of the data.