cancel
Showing results for 
Search instead for 
Did you mean: 

selected values in input field

Former Member
0 Kudos

Dear All,

Actually in my application ,user has to select values from item list box then he just adds into one input field.(he has selected the multiple values).Now how to get the values in input field.

One way what i thought is to check the node size if it is not null ,then input filed can be dyunamically created,but i am not able to do anything in this issue.

Please help me in this context.

this is urgent.Please guide me asap.

Regards,

Anu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

You might have binded a context attribute to your input field. When the user clicks on the add button loop through the node and find all the values that are selected and keep on appending in the context binded to the input field context.

for(int i=0; i<wdContext.node<lbnode>().size();i++)

{

if(wdContext.node<lbnode>().isMultiselected(i) || wdContext.node<lbnode>().getLeadSelection)()==i)

{

wdContext.currentContextElement.set<inputContext>(wdContext.currentContextElement.get<inputContext>()" "wdContext.node<lbnode>().get<lbnode>ElementAt(i).get<attribte>();

}

}

Regards,

Murtuza

Answers (0)