Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interactive Grid: Preselect selected rows

hafferlSep 17 2018 — edited Sep 27 2018

Hi,

We are using a IG to select data and store the selection in a page item of a parent page.

To save the selection we just use a DA on selection change:

var i, selectedIds = ":",

    model = this.data.model;

console.log(model.getValue( this.data.selectedRecords, "ID"));

for ( i = 0; i < this.data.selectedRecords.length; i++ ) {

    selectedIds += model.getValue( this.data.selectedRecords[i], "ID") + ":";

}

$s("P27_SELECTED_ITEMS, selectedIds);

This data is transferred to the parent page via dialog closed DA.

Question:

How do I populate the selected items once I go back to my page, I tried to set the P27_SELECTED_ITEMS item and use that in a

ig$.interactiveGrid("setSelectedRecords", $v("P27_SELECTED_ITEMS"));

function.

Is there any way of doing so?

Thanks and best regards

This post has been answered by hafferl on Sep 27 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 25 2018
Added on Sep 17 2018
2 comments
8,939 views