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