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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Row Added to IG Not Showing

Jared C5 days ago

Oracle APEX 24.1.6 | Oracle DB 19c

Hi, so I was running into this issue (when clicking “Save” on IG I don't see newly added row). I think it is because the “Save Interactive Grid Data” process has “Return Primary Key(s) after Insert” set to False / Disabled, which in turn is set that way because the RETURNING clause doesn't work for this particular table… it's a synonym to a table on a remote server.

So… I then tried a DA that refreshed the IG. But, that resulted in this issue: Cannot read properties of null (reading '0'). Here is another post I found describing the same thing, it appears. So the problem seems to be that now the IG is refreshing too soon, whereas before it was refreshing too late…

So, I then tried an action in my DA that executes JavaScript. I am running the code location.reload(); which I found here. This seems to work, despite a significant delay in the page reloading (a second or two).

This is acceptable to me, but I was wondering if anyone has thoughts or suggestions on how to improve. Note that I did try delaying the IG refresh for 250-500 milliseconds, but I still got the null error.

Thanks, Jared

This post has been answered by Karel Ekema on Mar 18 2025
Jump to Answer
Comments
Post Details
Added 5 days ago
11 comments
118 views