Discussions
Categories
- 196.7K All Categories
- 2.2K Data
- 235 Big Data Appliance
- 1.9K Data Science
- 449.8K Databases
- 221.5K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 549 MySQL Community Space
- 477 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 532 SQLcl
- 4K SQL Developer Data Modeler
- 186.8K SQL & PL/SQL
- 21.2K SQL Developer
- 295.3K Development
- 17 Developer Projects
- 138 Programming Languages
- 292K Development Tools
- 104 DevOps
- 3.1K QA/Testing
- 645.9K Java
- 27 Java Learning Subscription
- 37K Database Connectivity
- 153 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 17 Java Essentials
- 158 Java 8 Questions
- 85.9K Java Programming
- 79 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.2K Java SE
- 13.8K Java Security
- 203 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 390 LiveLabs
- 37 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.6K Other Languages
- 2.3K Chinese
- 170 Deutsche Oracle Community
- 1K Español
- 1.9K Japanese
- 230 Portuguese
How to pass parameter value to the modal page

Hi everyone;
I have 2 pages :
- PG1 = normal page, that contain P1_ID_FOLDER item
- PG2 = modal page that contain P2_ID_FOLDER item, to get the entered value in PG1
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.
Answers
-
Why don't use a branch?
check your Page. It works with branch
-
Hi Mr Yotti ,
Doing Branch After submit, i get this error message;
Verifications:
And Value Protected : YES
-
Where do you have the issue?
I Don't see it in your Demo App
-
its in my production application, P30_EXIST item allow me to check if the entered id_folder exist or not (1= exist, 0 = not exist)
-
reproduce the error online and let us check
-
is there any other method to pass value without using branch ?
-
what is your goal? or what do you want to achieve? Branch does not works for you?
-
I will to reproduce exactly what you did, except for me Branch does not works , and to remake all what i have in my production application it will take a time and be a little bit hard(because there are a lot of parameters who comes in)
-
Okay good. Must you hide the Item?
If no, just create a Inline region in your Page with Template "inline Dialog" and Position "inline Dialog" and add that Item in that region without hide it
-
The P2_ID_FOLDER item will be hidden.
I did it before, but it didnt works.