on 12-18-2008 7:31 PM
hi all
I have a DropDownByIndex and I know how I can get the value selected
thanks
DropDownByIndex : is used when values for the drop down list are available in a context node.
Context
List (Node 0..n)
Value(attribute String)
Bind 'Value' to DDBYINDX texts property.
Supply context values. you can get the selected element by
wdContext.currentListElement().getValue();
nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
write this code in onSelect() Event of DrowdownbyIndex.
String ss=wdContext.currentContextElement().getObject();
wdContext.currentContextElement().setText(ss);
getObject() means drowdownbyindex binded attribute.
setText() means Textfield binded attribute.
Regards,
Sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
proved what helped me, thanks
Edited by: Pablo Umaña on Dec 19, 2008 5:56 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
suppose the dropdownbyindex is bind with the attribute "testName" in the node "Test".
so the context is like
Test
.....testName
.....
so to get the selected value do like this
wdContext.nodeTest().getTestElementAt(wdContext.nodeTest().getLeadSelection()).gettestName();
hope it clear!
Regards,
ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should have binded a context atribute to the dropdown list (otherwise you will get an erro in build time). Retrieving the value of that attribute is enough:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.