on 09-05-2005 4:56 PM
Hi,
I have a DropDownListByKey based on SVS. I would like that on the white space of the combo-box, instead of default value or while space, it will be written 'Select' and the user will select one of the values of within the combo box.
What I can do is to add the value 'Select' to the values list and set this value as the default value.
Is there any other way to do this such that the 'select' value will <u>not</u> appear as a value that can be selected in the combo-box?
Thanks in advance,
Aviad
Hi Aviad,
try like this
ISimpleTypeModifiable lists=wdThis.wdGetAPI().getContext().
getModifiableTypeOf("Your Context attribute");
IModifiableSimpleValueSet listValues=list.getSVServices().getModifiableSimpleValueSet();
listValues.put("","Select");
wdContext.current"<DROPDOWN >"Element().set"<CONTEXT>"("");
Let me know if it works...
regards,
Sujesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aviad,
Write in init
wdContext.currentContextElement().setattribute1("<Select>");
Where attribute1 is the attribute bound to the selectedkey in dropdown
This is to fill the other values
IWDAttributeInfo attinfo = wdContext.getNodeInfo().getAttribute("attribute1");
ISimpleTypeModifiable modinfo = attinfo.getModifiableSimpleType(); IModifiableSimpleValueSet valset = modinfo.getSVServices().getModifiableSimpleValueSet();
valset.put(key,text)
Regards
Rohit
Hi Aviad,
When building your SVS list, add the "Select" element as the first element in the list. By default, the combo-box always displays the first element in the list (with the white-space element above it).
You can not make the "Select" element (or any other element in a drop-down) non-selectable, but you can check on the server-side whether a user tried to select that element and then take appropriate action.
Regards,
Walter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.