cancel
Showing results for 
Search instead for 
Did you mean: 

Select All

Former Member
0 Kudos

Dear Expert ,

There is a table with two column . in one column there is pernr and in the other one there is PA . Now when i click on any individual pernr the corresponding PA gets assign to that Pernr . now there is a button " Select all" . When clicking on " SELECT ALL " all the PA corresponding to the token number should be assign at one time which is not happening

Please guide me .

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sidhartha,

You can do this without checkboxes also. Just create a method, which will be triggered when you click on select all.

In the method you lood through the node , that is supplying the table data and assign the token no to the respective field of every row.

Hope it helps,

Sattam

Former Member
0 Kudos

Can you provide me with the code for the same i.e assigning PA to the corresponding token number on clicking of Select all

Former Member
0 Kudos

Hi Sidhartha,

Suppose Node_Table is the node uesd to populate the Table, and it has an attribute Token where you want to store the PA.

The code will be something like this..

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

{

IPublic<Controller Name>.INode_TableElement element = wdContext.nodeNode_Table().getNode_TableElementAt(i);

element.setToken = PA // PA is the value you want to assign

}

Try this and let me know in case of any issues.

Regards,

Sattam

Former Member
0 Kudos

Hi

To achive the functionality of select all. First of all make table column with checkbox. And on click of selectall button set the status of these checkbox as checked. Then all the table items will be selected and then you can add these selected items from one table to another.

To create a check box in table you have make an attribute of boolean type in table node and bind this attribute to the table column's checkbox.

Regards,

Deepak.