on 04-23-2009 1:49 PM
Hi Experts,
I have a Table with three column. the two columns are input field but the third column is drop down.
Now the requirement is to populate the dropdown with different values in each row.
please guide me how i can achive it.
thanks
Narendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
I know the onselect method but due to some constraints i cannot use onSelect here.
Can you please tell me if we can get the selected values of dropdown with some different methods.
regards
Narendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi experts,
My problem of getting different values in different drop down get resolved but now i want to retrive the values selected from different drop downs (Drop down by index).
i have tried using below code
<Code>wdContext
.nodeVn_AttributeTable()
.nodeVn_Units().currentVn_UnitsElement().getVa_Units();<Code>
but it gives only the current row selected elements.
i also tried with
wdContext.nodeVn_AttributeTable()
.nodeVn_Units()
.getVn_UnitsElementAt(loop)
.getAttributeValue("Va_Units")
.toString();
but it gives me all the elements of each drop down.
so please help me in this.
thanks
Narendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To populate the dropdown list based on the selection in the initial dropdown list, use the event "onSelect" for the initial dropdown.
Onselect, call the method where you populate the other set of lists.
Write a code
int n = wdContext.node<your table node>().size();
int leadSelected = wdContext.nodeTable().getLeadSelection();
for (int i = n ; i <=n; i++)
{
wdContext.node<your table node>().get<your table node>().ElementAt(leadSelected ).get<dropdown context attribute>();
}
Thanks
Abhilasha
Edited by: Abhilasha Dahare on Apr 27, 2009 11:14 AM
Edited by: Abhilasha Dahare on Apr 27, 2009 11:20 AM
Thanks a lot Abhilasha for sharing the link..it worked for me.
Thanks Armin for proving the required code in the link abhilasha has provided.
regards
Narendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
i hope you are using a Value Node and then binding it to the , you an create 3 different element and
set the data .
as IPrivate<viewname>.Icontextelement ele1 = wdcontext.nodevaluenode.createelement;;
as IPrivate<viewname>.Icontextelement ele2;
as IPrivate<viewname>.Icontextelement ele3;
you can noe set in data in there different elemnt and data would come in there rows .
hope could solve your problem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.