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!

Dynamic parsing schema change

d.firat.kirmiziJun 21 2018 — edited Jul 3 2018

Hi,

we have an old form application, which change application's looking schema in login page. In schemas, there are year based data. Schema names like ...2018, ...2017, ...2016 and so on ... If user select 2018 in login page, application schema set to ...2018 and so on.

Now we have to implement this in Oracle Application Express. (APEX version is 18.1.0.00.45.)

Assigned schemas to this workspace is as;

From Shared Components -> Security -> Security Attributes -> Database Session tab, I write the below code in Inıtıalization PL/SQL Code part, to check if it is possible.

BEGIN

APEX_APPLICATION.g_flow_owner := '...2017';

END;

pastedImage_3.png

And there is a page to check if it is working.

pastedImage_8.png

 - The first report in page is **Interactive Report** derived from a sql like

      _SELECT record\_no, transaction\_date, customer\_no, lot\_ordered FROM **#OWNER#.seans;**_

 - The second region is **Classical Report** derived by

      _SELECT record\_no, transaction\_date, customer\_no, lot\_ordered **FROM seans;**_

  _-_ The third one is also a **Classical Report,** mapped to a **table as source**

pastedImage_15.png

In both cases, there is no change. Owner changed by APEX_APPLICATION.g_flow_owner := '...2017'; does not affect the test reports in page. All reports get data from apllication's main schema ...2018.

How could we implement this in APEX? Is there any way of doing this? Also the parsing schema, changed in login (if possible) should be for only that session or login. Another one selected another schema shold not change another ones selection.

Thanks in advance.

Kind regards.

This post has been answered by fac586 on Jun 22 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 20 2018
Added on Jun 21 2018
7 comments
1,061 views