on 08-08-2007 6:25 AM
Hi Friends,
How to clear Perticualr index in dropxown(dropdowmindex)
Thanks & regards
Mathi
hi
If you wish to clear any particular index then remove the element (as specified by the preceding post) from the node bound to the drop down by index. Incase you wish to remove only the first empty element then use the selection property in the value node. It is by default 0...1 make it 1..1.
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
if it is DropDownByKey
IModifiableSimpleValueSet valueSet = wdContext.nodePersonal().getNodeInfo().getAttribute(IPublicTestComp.IPersonalElement.SPORTS).getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();
valueSet.put("CRICKET", "Cricket");
valueSet.put("BASKET", "Basket Ball");
valueSet.put("TT","Table Tennis");
valueSet.removeKey("CRICKET");
if it is DropDownByIndex.
wdContext.nodePersonal().removeElement(wdContext.nodePersonal().getElementAt(0));
here the Personal is the node which is binded to DropDown
Regards
Abhimanyu L
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You can create a context node dynamically at runtime, at that time you can specify the cardinality and some other properties..
The method to create dynamic context node.
wdContext.getNoddInfo().
addChild( java.lang.String name,
java.lang.Class elementClass,
boolean singleton,
boolean mandatory,
boolean multiple,
boolean mandatorySelection,
boolean multipleSelection,
boolean initializeLeadSelection,
java.lang.String dataType,
IWDNodeCollectionSupplier supplier)
But, i didn't find any clue to change the properties of already existing context node.
There are methods only to check isSingleton or not isMultiselect or not etc..
Regards
Abhimanyu L
Message was edited by:
Abhimanyu Lagishetti
Hi
I will tel u ,what i am done...
I have created one dropdown and populate the values from backend..
1.My Rfc model has no empty Rows
2.I go to change selection property 0..1.
If I set Initial selection property is True -->always display first vlaue...
If I set Initial selection property is false -->Initially blank
<b>I want to the drop down should be initially blank</b>
The second option is rectified my issue...
Is this way only possible(or any other way)?
Also tried setLeadSeletion(-1)..It not worked {at the same time runtime error displayed...There is no leadSelection for (-1)...Yes... Because no empty values in RFC model...}
Thanks
Mathi s
Hi Mathi
As a practice i always use Value Nodes in the Layout, model node data should not be exposed directly for user input.
it gives you flexibility in validation and all.
you can create a value node of similar structure and always use..
WDCopyService class to copy the elements.
then you can play with the value node.
Regards
Abhimanyu L
User | Count |
---|---|
88 | |
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.