I have a interactive report on which one column is Link column when user clicks on Link column Modal Page opens up that modal page have Interactive Grid in it.
I wanted to add rows dynamically based on page level item value if that page level item have value of 50 then IG should add 50 rows on page load so i tried below code to add rows in DOM
apex.region("add_rows").widget().interactiveGrid("getActions").invoke("row-add-row");
OR
apex.region('add_rows').widget().interactiveGrid('getActions').invoke('selection-add-row');
Above code works when i have Page Mode : Normal the moment i change Page Mode : Modal Dialogit will not add rows into Interactive Grid throws an error
Uncaught TypeError: Cannot read property 'widget' of null
Is it a bug or there is other way around to achieve this.
apex 5.1.2.00.09
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
Thank you
Pranav