on 04-12-2007 8:50 AM
I know this sounds like a simple question, but I cant seem to find a solution.
I have a list box that fills when i select an item from a dropdown. With every new selection from the dropdown, the list box gets bigger and bigger(existing items aren't removed first).
How do I clear the list box before I repopulate it?
thanks in advance
Anton Kruse
Anton,
Say, you List box is bound to context node MyListBoxNode.
Seems that you are adding elements to this node manually in onSelect handler of dropdown using wdContext.nodeMyListBoxNode().addElement(...)
If so, then just before adding elements call
wdContext.nodeMyListBoxNode().invalidate();
Valery Silaev
SaM Solutions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anton,
In onSelect action of dropdown invalidate the listbox node element.
wdContext.nodeListBox.invalidate();
This will clear your listbox node before populating with the next values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.