APEX 5.1 has an very powerful reporting feature called Interactive Grid (IG).
When you create an Interactive Grid with RowSelector, you might have noticed that by default the the first row gets selected. This is how the Interactive Grids are designed.
But there might be an requirement where none of the check-box must be selected on landing to the screen. Hence we need to remove the first row default selection in Interactive Grid.
This can be achieved from below simple code:
Use the below code when the page loads. You can either create an Dynamic Action or add this code in "Execute when Page Loads" section of the page Javascript
When you create an Interactive Grid with RowSelector, you might have noticed that by default the the first row gets selected. This is how the Interactive Grids are designed.
But there might be an requirement where none of the check-box must be selected on landing to the screen. Hence we need to remove the first row default selection in Interactive Grid.
This can be achieved from below simple code:
Use the below code when the page loads. You can either create an Dynamic Action or add this code in "Execute when Page Loads" section of the page Javascript
var ig$ = apex.region("emp").widget();
ig$.interactiveGrid("getViews", ig$.interactiveGrid("getCurrentViewId")).setSelection($());
Change "emp" to whatever your Interactive Grid static id is.
This should remove your default first row selection from your IG. Hope this helps.
Perfect! Exactly what I needed. Thank you.
ReplyDeleteHi Prashanth,
ReplyDeleteIn my scenario, i have created interactive grid with first column as row selector. now i want to checked some reord depends on other grid column like where active_status = 'Y'. i required it on when page load
HOW CAN I SELECT LAST ROW SPECIFIC COLUMN WHEN PAGELOAD ?
ReplyDelete