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 parameter value to the modal page

Soukaina IDRISSIJun 27 2018 — edited Jun 27 2018

Hi everyone;

I have 2 pages :

  1. PG1 = normal page, that contain P1_ID_FOLDER item
  2. PG2 = modal page that contain P2_ID_FOLDER item, to get the entered value in PG1

interface.png

My need :

- To pass entered value of P1_ID_FOLDER into P2_ID_FOLDER item of PG2 modal page.

I already did a lot of attempts but no results, like:

- Using DA on click ADD_SUB_FLD button, as :

  • Executing JS code=

window.open("f?p=&APP_ID.:2:&SESSION.::NO::P2_ID_FOLDER:" + v(P1_ID_FOLDER) + ,

        "Details","dialogWidth:1000px;dialogHeight:600px");
  • Executing PL/SQL code=

declare

v_url varchar2(1000);

begin

v_url:=APEX_UTIL.PREPARE_URL(p_url => 'f?p=&APP_ID.:2:&APP_SESSION.:::2:P2_ID_FOLDER:' || :P1_ID_FOLDER,

p_checksum_type => 'SESSION') ;

return v_url;

end;

OR

BEGIN

return 'f?p=' || :APP_ID || ':2:' || :APP_SESSION || ':::2:P2_ID_FOLDER:' || :P1_ID_FOLDER ;

END;

- Using Redirect to URL action on click ADD_SUB_FLD button, as :

f?p=&APP_ID.:2:&APP_SESSION.:::2:P2_ID_FOLDER:V(P1_ID_FOLDER)

OR

f?p=&APP_ID.:2:&APP_SESSION.:::2:P2_ID_FOLDER:&P1_ID_FOLDER.

You can see demo of the problem on apex.oracle.com with this credentials:

Workspace: ws_formation

Username: asoukaina

Password: s@boulah123

I used the Application 104381 - Relational TF BTN

NB: Version of apex production 5.1.0

Thank you for help.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 25 2018
Added on Jun 27 2018
16 comments
2,533 views