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!

inline dialog javascript error

wowlDec 30 2022

I'm trying to setup a simple inline dialog but i'm getting anfollowing error and I'm not sure what I need to check.
The button is using the following code to call a region in the Inline Dialog
javascript:openModal('viewinstructions');
So nothing complicted (viewinstructions is the static idof the region on the Inline Dialog area), but it isnt working and I'm getting the following error.
One or more errors have occurred since the page loaded. Open the Browser's JavaScript console to see the errors.
On further investigation i'm getting this error

desktop_all.min.js?v=21.1.0:2 Uncaught Error: cannot call methods on dialog prior to initialization; attempted to call method 'open'
   at Function.error (desktop_all.min.js?v=21.1.0:2:2589)
   at HTMLDivElement.<anonymous> (desktop_all.min.js?v=21.1.0:28:7958)
   at Function.each (desktop_all.min.js?v=21.1.0:2:2976)
   at S.fn.init.each (desktop_all.min.js?v=21.1.0:2:1454)
   at a.fn.<computed> [as dialog] (desktop_all.min.js?v=21.1.0:28:7700)
   at window.openModal (theme42.min.js?v=21.1.0:1:4138)
   at HTMLButtonElement.onclick (home?session=15431912037478:79:223) 

I'm not sure what I need to check so any pointers would be greatly appreciated.
Currently using Apex 21.1

Thanks in advance and Happy New Year.

This post has been answered by fac586 on Dec 30 2022
Jump to Answer
Comments
Post Details
Added on Dec 30 2022
2 comments
1,466 views