The drop down list LIST includes 3 items, say, A, B, C.
I wish to change them into a, b, c.
this.resolveNode("LIST").rawValue only returns the default value of the drop down list.
but how can i identify these items and change their text seperately?
Also I'm trying to manipulate the contents of these items when a script is executed. I hope that the above identification can also help to add/remove the items.
Is there a manual that I can look up for the objects' path so that I won't be lost every time I'm doing this same location thing?
thanks!
Hi,
You can use clearItems() and addItem() methods to change the items in the dropdown.
There is an example here that populates the dropdown using script in the preOpen event. This looks at previous selections and changes the items in the dropdown accordingly: http://assure.ly/jcTahK.
Hope that helps,
Niall
Hi,
The example above shows how you can also add a bound value using the addItem() method.
Also have a look at this example, where we are accessing the index and bound value: http://assure.ly/fYCuQ2.
Hope that helps,
Niall
thanks that gives me a hint but not the final solution.
i now use setItems to change the text. but the Item Values are also changed.
Initially I use value 1, 2, 3 to correspond to A, B, C. but after applying setItems, a, b, c have different value now (changed into a, b, c). i wish to also keep the same value as 1, 2, 3.
do you have any suggestion?
North America
Europe, Middle East and Africa
Asia Pacific