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!

Opening Modal Dialog Page using JavaScript Issues

Roxy rollersApr 22 2021

I have a button with static id CALENDAR on my Page. I am attempting to call the Calendar which is a modal popup page. I realize I can call the Modal popup page by selecting "Redirect to page in this application" under Behaviour. I however, need to position my modal window which is why I need to do this using a Dynamic Action. For now, I want to window to have a top of 50 and open there. I will eventually want to use left and right values as well.
So far, I have had no luck and I land up getting the error that many of us have probably seen before. My Page 5 is the Modal Dialog Page.
image.pngI have a dynamic action on my button which is doing an "Execute JavaScript"

apex.navigation.dialog('f?p=1010:5:&SESSION.:::::',
 { title:'Calendar',
   top: '50',
   height:'540',
   width:'1020',
   maxWidth:'960',
   modal:true,
   dialog:null
 },'t-Dialog--standard',$('#CALENDAR'));

Any ideas if this can be done in this manner or perhaps another manner using APEX_UTIL.PREPARE_URL?
Thanks!

Comments
Post Details
Added on Apr 22 2021
5 comments
7,819 views