Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Oracle Apex 20.1. Report with 'Cards' template, how to redirect to another page on click a card?

I don’t really know how to redirect to another page, I specified CARD_TITLE and CARD_DESC and CARD_SUBTEXT, but i don’t know how CARD_LINK works. Also, I would like to forward a column value to an item on the new page.

Basically, when someone clicks on a card, the goal is to redirect to another page with a column value.

I saw that in APEX 20.2 there is Cards region but in our version there is only the ‘Cards’ template on a Report region.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

CARD_LINK should be a link to another page. Create it any way you want, but – I prefer APEX_URL.GET_URL

select <CARD_... columns here>,
  --
  apex_page.get_url (p_page    => 2,                --> go to page 2
                     p_items   => 'P2_ID',          --> to P2_ITEM ...
                     p_values  => a.id) card_link   --> ... pass a.id column value
from some_table a
where ...

At the end, it’ll look like e.g.

f?p=:2:::::P2_ID:1056
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading