cancel
Showing results for 
Search instead for 
Did you mean: 

Selection Property?

Former Member
0 Kudos

Hi Experts,

I want to do multiple selection in my table. Tht means When i click name "PETER" , then it displays the details of "PETER" like age,number,etc..

When i click another Name by pressing ctrl button, It should display both the details in a table..

This can be achieved by multiple selection method. I don knw how to do it.. Pls Explain... Thanx in advance..

Regards,

GS

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sathish,

Change ur table's selection mode property to multi.change ur datasource node's selection property to 0.n.

then

for(int i=0;i<wdContext.nodeData.size();i++)

{

if(wdContext.nodeData().isMultiSelected(i) || wdContext.nodeData.getLeadSelection == i)

{

wdContext.nodeData().getDataElementAt(i).setA("D");

}

}

Code u must have to chnage according to ur requirement.

regards

Sumit

Former Member
0 Kudos

Hi Satish,

First set the node property for selection to 0:n.

Now you need to loop at your node and check for its selection

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

{

if(wdContext.node<nodename>().isMultiSelect(i))

{

// set the context value of the attributes that your binded to the UI element to

//display the result. Assume you need to have every result in a single context.

wdContext.currentContextElement.set<attributename>(wdContext.currentContextElement.get<attributename>()+wdContext.node<nodename>().get<nodename>ElementAt(i).get<attributename>();

}

}

Regards,

Murtuza