简体   繁体   中英

Oracle Apex : Get Selected list value and use the value in another region

Dears ,

I Have a selected list that contain values dynamiclly from the database ,
I am trying to build a Region Classic Report (Base on Function ) Using the selected value.
The source code of this region based on PL/SQL Function Body returning SQL Query as below :

DECLARE
   V_SELECT    VARCHAR2 (4000);
   V_SELECT2   VARCHAR2 (4000);
   V_DESC      VARCHAR2 (1000);
BEGIN
   IF :P1224144_PRE_SEL IS NULL
   THEN
      V_SELECT :=
            'SELECT '
         || LTRIM (GML.GML_GET_COLUMNS ('RI'), ',')
         || ' FROM GML.GML_SCENARIOS ';
      RETURN V_SELECT;
   ELSE
      V_SELECT2 :=
            'SELECT '
         || LTRIM (GML.GML_GET_COLUMNS (:P1224144_PRE_SEL), ',')
         || ' FROM GML.GML_SCENARIOS ';
      RETURN V_SELECT2;
   END IF;
END; 

My problem is that i cant get the selected value from the list always return null and the code will execute the first select (V_SELECT ) only .
I put the Page Action on Selection of the List as Redirect and Set Value .
Correct Result when select null value Or 'RI'

No data found is the result when select Not null value

Please Advice
Best Regards
Yousef Farraj

Dynamic Actions部分的Execute PL/SQL Code操作下,在Items to Submit属性中选择要提交的所有项目。

Apex reports regions (Classic and IR) have a property named Page Items to Submit in the source section, where you must include all page elements that you can change and its values are required when your query is executed. 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM