Hi Russ, At this point, I don't have a direct answer, but since this is really a ScriptUI question and doesn't relate directly to FrameMaker, I would post this to the InDesign Scripting forum. There are some ExtendScript heavyweights on that forum that might have an answer for you. -Rick
you can stop that with "stopPropagation()"
I'm not able at the moment to send you an example 'cause I'm in a hospital for a while.
Happy New Year!
Hi Russ, would it be possible if you could please tell me how did you do to make the dropdown refresh? A script of it would be super useful! thanks in advance!
you can't "refresh" a dropdown menu.
But you can rebuild it.
You have to do it "manually".
The way I do it:
1. I have an array that I want to show in that dropdownlist.
2. I remove all children: myList.removeAll();
3 I rebuild the list via mylist.add("item","myArray[index] in a for - loop.
But if you know the exact position of the items to remove or to add, you can do it via splice()
Fabio, I never went back to try Klaus' advice, because the project was over by that time. I should have responded to thank him anyway... Klaus, my apologies for that. Please take a look at what Klaus suggests and accept my well-wishes for good luck .
thanks a lot!! that worked like a charm!