cancel
Showing results for 
Search instead for 
Did you mean: 

problems in multiselection

Former Member
0 Kudos

Hi,

Till now i have been able to select one row in the list of orders and display the detail of that record in other view, is multiple selection of records and multiple display of the details of that selected records possible.

If yes how !

With Regards

kamlesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kamlesh,

You have to set the selection property of the node ListOrder to 0..n

Now when the user selects multiple row(by using CTRL key) and Click detail check like this.

int nodeSize = wdContext.nodeListOrders().size();

int leadSelect = wdContext.nodeListOrders().getLeadSelection();

for(int index=0; index<nodeSize; index++){

if (index == leadSelect || wdContext.nodeListOrders().isMultiSelected(index)){

< Do your processing to get the detail records >

}

}

Hope this helps.

Regards,

Shubham

Former Member
0 Kudos

Other solution:

- Add an attribute <myceckbox> in your contexNode (type boolean!!!)

- Generate the table by ApplyTemplate an let the new attribute be show in your table.

an the coding is :

for(i=0, wdContext.Node<nodename>.size()-1, i++)

{

// ist the checkbox checked? -->

if(wdContext.Node<nodename>.get<myceckbox>)

{

// ..here your coding

}//if

}//for

Regards Mario

Answers (0)