Forum Stats

  • 3,814,867 Users
  • 2,258,922 Discussions
  • 7,892,882 Comments

Discussions

How to pass parameter value to the modal page

Soukaina IDRISSI
Soukaina IDRISSI Member Posts: 867 Bronze Badge
edited Jun 27, 2018 10:15AM in APEX Discussions

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: [email protected]

I used the Application 104381 - Relational TF BTN

NB: Version of apex production 5.1.0

Thank you for help.

Tagged:
«1

Answers

This discussion has been closed.