cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically SelectAll/Deselect in Table

Former Member
0 Kudos

    Hi,

I would like to provide a button to select all / deselect all in the table. which method should be used for selecting all the lines.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

amy_king
Active Contributor
0 Kudos

Hi Chinna,

To progammatically deselect all, you could use IF_WD_CONTEXT_NODE->CLEAR_SELECTION( ). To select all, you could loop through all elements within a node and call IF_WD_CONTEXT_ELEMENT->SET_SELECTED( ). But  if you set your context node Selection property to 0..n or 1..n, you will automatically get select all/deselect all options in the top/left corner of the table.

Cheers,

Amy

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Chinna,

     You have a Table selection menu in the upper left corner of your table use that standard functionality. What is stopping you to use that ? Keep the 'selection mode' property of your table as 'multi no lead'.

Regards,

Monishankar