Hi dear reader,
What I am trying to do is the following:
I have a page item type.
Based on the type selected, I have a dynamic action that shows / hides a region (typeX), in which I have an interactive grid.
If the type selected is not null, then I need to delete all the rows from typeX ig. I tried to do so with a dynamic action which executes the below javascript code, which doesn't work:
apex.region("typeX").widget().interactiveGrid("getViews", "grid").view$.grid("selectAll");
apex.region("typeX").widget().interactiveGrid( "getActions" ).invoke("selection-delete");
When the type is changed back to null, I need the rows back in the IG. That will be in progress after we figure this out.
So I don't know what i'm doing wrong. Would you be so kind to guide me in the right direction?
Thank you very much :)