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!

Passing data from Item value into Modal

leexha-OracleMay 29 2017 — edited May 30 2017

Dear all,

I have a modal on page 4 with item (P4_Original_order_no) and I have a page in my application (page 1) with item (Original_order_no) and a button (Create record).

The item (original_order_no) in page 1 will always be dynamically updated from a java script code. I am following this tutorial :

(@"Bas de Klerk")

to pass the value into the modal.

I created a hidden item (P1_MODAL_2) on page 1 and I set a dynamic action on page 1 on item (Orignal_order_no) with PL SQL query: apex_util.prepare_url('f?p='||:APP_ID||':4:'||:APP_SESSION||'::NO::P4_ORIGINAL_ORDER_NO:'|| :ORIGINAL_ORDER_NO )

pastedImage_35.png

On my button in page 1 (create records), I redirected to page in application (page 4 and set the P2_Original_order_no to Original_order_no). I also placed a JS code where I did : window.location = $("#P1_MODAL_2").val();

pastedImage_41.png

My modal 2 on page 2 is changing URL:

pastedImage_74.png

However, it the value is not being passed to my modal. Im not sure what I am doing wrong and would appreciate any assistance if possible.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 27 2017
Added on May 29 2017
8 comments
822 views