cancel
Showing results for 
Search instead for 
Did you mean: 

Two fields in a drop down.

Former Member
0 Kudos

I have a internal table which have two fields , and i have to show both these fields in the dropdown.

so please provide your helpful answer for the same.

Thanks in advance.

Upendra.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

1) you can use EVS here, works a key value pair.

2)create anode and an attribute under that bind node to drop down by index UI .

try

{

IPrivate<view>.I<viewNode> node=wdContext.node<node>();

List lis=new ArrayList();

for(int i=0;i<wdcontext.node<tableoutptu>.size;i++)

{

if(i==0)

{

IPrivate<view>.InodeElement ele = node.create<node>Element();

ele.set<att>("get field1"+" " +"get field2");

lis.add(ele);

}

node.bind(lis);

}

catch(Exception e)

{

}

Thanks,

Sunitha Hari.

Answers (2)

Answers (2)

Former Member
0 Kudos

THANKs everyone

Former Member
0 Kudos

Hi upendra agrawal,

1. first u create a node called---->Table_node

2. under Table_node u create two attributes

--->ctx_ddFirst

--->ctx_ddSecond

3. insert the TableUI element

4.go to TableUI rightclick--->create binding

5.choose ur node and attribute then click next

6. go to Editor choose what ever u want dropdownbyIndex or DropdownbyKey

7. finally click finish

that's it

Regards,

P.Manivannan