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!

how to pass triggering element to apex_util.prepare_url?

ApexMeisterMar 24 2017 — edited Mar 27 2017

I'm using apex 5.1, universal theme and 11g DB.

I have a page with JS DA below and a button with static ID of P1_BUTTON_ID

eval($v('P1_URL'));

P1_URL value is based on pl/sql code below

apex_util.prepare_url(

            p_url   => 'f?p='|| v('app_id') || ':16:'   || v('app_session') || ':::16:P16_SID:123',

           -p_triggering_element  => '#P1_BUTTON_ID');

Below is the URL generated

javascript:apex.navigation.dialog('f?p=103:16:6532907546500:::16:P16_SID:14\u0026p_dialog_cs=ysQXaPEqsD2ZvsW5-fZqmryrPKs',{title:'GL Period Password',height:'auto',width:'720',maxWidth:'960',modal:true,dialog:null},'t-Dialog-page--standard '+'',#P62070_IMPORT_ID);

When I run this and debug it I get invalid charater.

The URL being called is a pge with page mode = MODAL DIALOG.

I need to pass the triggering element so I can create another DA of dialog closed.

Thanks

This post has been answered by Bas de Klerk on Mar 25 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 22 2017
Added on Mar 24 2017
2 comments
2,407 views