on 09-06-2007 8:00 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.