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 Modal Page Add row using JS

Pranav.shahOct 30 2017 — edited Nov 6 2017

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

This post has been answered by John Snyders-Oracle on Nov 3 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 4 2017
Added on Oct 30 2017
2 comments
1,475 views