on 07-30-2008 2:09 PM
Hello Friends,
I am using Dropdownbykey (for selecting Claim Types like Hostel etc) to allow user to select a value from it. I ahve attached it to a simple type dictionary object
Now, I want to get the value selected by user in my code. I have written code in onSelect method :
*wdContext.currentExpense_inputElement().getClaimtype(); *
but its returning a null, whatsoever user selects.
I think I am missing something. Can you please guide me in the right way
regards
Vidit
Hi Vidit,
What is the cardinality of Expense_input ? Check whether the current Expense_input element exists. Or simply a context attribute (Claimtype) under Root Context node of type dictionary object and write code in onSelect method :
wdContext.currentContextElement().getClaimtype();
Regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for helping me !!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if you are getting the Enumeration values in DDByKey, your code is just fine at
wdContext.currentNode2Element().getClaimtype();
look at other lines given in OnAction()
nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
you have to bind the selected key property to the simpletype attribute.
you may be missed to give the values in Enumeration of simple Dictionarytype.
check onceagain.
Try the following code.
Colour-->node
colr-->attribute of Colour
Clrvalue-->attribute of context.
onSelect(...){
String clr = wdContext.nodeColour().currentColourElement().getColr();
wdContext.currentContextElement().setClrvalue(clr);
}
Regards
sowmya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sowmya,
I had done the same thing. I created a simple type in dictionary and supplied the values for enumeration and attached it to the selectedkey property of dropdownbykey.
My context sructure is
root Node
|- Node 1
-
|- Node2
-
|-ClaimType ( selectedkey property bind to simpletype enumeration ClaimType)
Now in the onSelect method, I call the following code.
wdContext.nodeNode2.currentNode2Element().getClaimtype();
but its returning a Null value only
Regards,
Vidit
Edited by: Vidit on Jul 31, 2008 4:43 AM
How did you bind the "selectedKey" property?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.