////////////////////////refresh grid
apex.region("regionStaticID").refresh();
////////////////////////you can give focus to an IG with the following:
apex.region("regionStaticID").focus();
////////////////////////
apex.region("emp").widget().interactiveGrid("getActions").list().forEach(function(a) { console.log("Action Label: " + a.label + ", Name: " + a.name + (a.choice !== undefined ? ", Choice: " + a.choice : "") ); });
////////////////////////
apex.region("emp").widget().interactiveGrid("getActions").invoke("show-sort-dialog");
/////////////////////get grid mode
apex.region("emp").widget().interactiveGrid("getActions").get("edit"); // returns true or false
/////////////////////To turn edit mode on:
apex.region("emp").widget().interactiveGrid("getActions").set("edit", true);
////////////////////To turn edit mode off:
apex.region("emp").widget().interactiveGrid("getActions").set("edit", false);
///////////////////
apex.region("emp").widget().interactiveGrid("getActions").get("change-view");
//////////////////To change the current view to chart view (assuming it is defined) use this code:
apex.region("emp").widget().interactiveGrid("getActions").set("change-view", "chart");
/////////////////To find out the available choices use this code and look through the returned array:
apex.region("emp").widget().interactiveGrid("getActions").lookup("change-view").choices
/////////////////Another example is saving the current grid. For this you can use the save action as follows:
apex.region("emp").widget().interactiveGrid("getActions").invoke("save");
////////////////
apex.region("emp").widget().interactiveGrid("getViews", "grid").view$.grid("selectAll")
////////////////
apex.region("emp").widget().interactiveGrid("getViews").chart.view$.ojChart("option", {orientation: "horizontal"})
I must thank you for the efforts youve put in penning this site. I am hoping to check out the same high-grade blog posts by you in the future as well. In fact, your creative writing abilities has motivated me to get my very own blog now 😉
Itís hard to come by well-informed people in this particular subject, however, you seem like you know what youíre talking about! Thanks