I have the following table with checkbox in my page:
Region type: Interactive grid Checkbox generated by row selector
ColumnA | ColumnB | ColumnC |
---|---|---|
1 | Hello | 123 |
2 | Position | 1234 |
3 | Accept | 567 |
4 | Position | 778 |
5 | Accept | 321 |
I have created buttons such that if the user selects "Position" the row that contains Position checkbox should be selected. If the user selects "Accept" from the button then all row checkbox should be selected. How do I do that?
Sample output: If Position is selected from the menu
Checkbox | ColumnA | ColumnB | ColumnC |
---|---|---|---|
1 | Hello | 123 | |
X | 2 | Position | 1234 |
3 | Accept | 567 | |
X | 4 | Position | 778 |
5 | Accept | 321 |
What I tried so far?
apex.region("pos").widget().interactiveGrid("getViews", "grid").view$.grid("selectAll");
apex.message.showPageSuccess( "All Rows selected successfully." );}
The above script selects all the checkbox and not a particular checkbox like I want.