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!

APEX 18.1 - Redirect to URL

fru92thuSep 13 2018 — edited Sep 25 2018

Hello,

We have an APEX page - with 2 Interactive reports (1 called CSV DATA).

2 date pickers - start date and end date.

2 buttons - run report and downloadtocsv

There is a hidden page item with type - SQL Query and the sql query is;

select region_id

from apex_application_page_regions

where application_id = :app_id

and page_id = :app_page_id

and region_name = 'CSV DATA'

The downloadtocsv button has an action of "Redirect to URL" with a url of https://........./f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:IR[R&89_CSV_REGION.]_CSV:ClearCache:

The CSV DATA interactive report runs a SQL query.

Now when the user clicks on downloadtocsv, the CSV DATA SQL should run and get exported to csv but instead it gives an HTTP 400 error.

*** This worked in APEX 5.1.3

Any help would be appreciated. For this use case we cannot use the built-in download to csv option.

Regards,

David

This post has been answered by fru92thu on Sep 25 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 23 2018
Added on Sep 13 2018
11 comments
5,232 views