Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to hard code values in drop down by index

Hi everyone

I hav a node containing 2 attributes ie value n key. I am using drop down by index. Value attribute is bound to my drop dwn box. In key I am providing key value for the value. I need to hard code 3 value..Can anyone help me how to do so.

Thanks

Jaspreet Kaur

Former Member
Former Member replied

IPrivate<viewname>.I<nodename>Element ele = wdContext.node<nodename>().create<nodename>Element();

ele.setValue(<value>);

ele.setKey(<Key>);

wdContext.node<nodename).addElement(ele);

IPrivate<viewname>.I<nodename>Element ele1 = wdContext.node<nodename>().create<nodename>Element();

ele1.setValue(<value>);

ele1.setKey(<Key>);

wdContext.node<nodename).addElement(ele1);

IPrivate<viewname>.I<nodename>Element ele2 = wdContext.node<nodename>().create<nodename>Element();

ele2.setValue(<value>);

ele2.setKey(<Key>);

wdContext.node<nodename).addElement(ele2);

Warm Regards,

Murtuza

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question