cancel
Showing results for 
Search instead for 
Did you mean: 

Drop downs in a table column..... want to populate with different values

NarendraChandel
Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Use supply function.

and also refer the following thread

Thanks

Abhilasha

Former Member
0 Kudos

An excellent link

Armin

Answers (6)

Answers (6)

NarendraChandel
Contributor
0 Kudos

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

NarendraChandel
Contributor
0 Kudos

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

Former Member
0 Kudos

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

NarendraChandel
Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Narendra,

Find the threads, describes the same one

Regards,

sri

matteo_fusi2
Participant
0 Kudos

Hi,

look this thread

[]

Regards,

Matteo