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!

CARDS reqion based on query - how to reference URL in action

PJApr 4 2022

Hi There
I have created a cards region using a query like this:
The comments come from the oracle doc

select * from (
select
  1 as seq,
  'Account' as title,       -- title
  'Manage account, invoices and payments' as subtitle,    -- subtitle, set template option to see
  '' as bodytext,        -- card body text
  '' as secondary,     -- card secondary text, positioned near bottom
  null as modifier,   -- card item modifiers
  apex_page.get_url(p_application => 1202,p_page  => 1100, p_items => '', p_values => '') as url,        -- card link, use apex_page.get_url(...)
  'green' as colour,       -- color modifier, e.g. u-color-1 or u-warning
  'fa fa-credit-card fa-3x' as icon,        -- icon class, e.g. fa-cloud
  'ABC' as letters     -- 2 or 3 letters, use apex_string.get_initials(...)
from dual
UNION 
select
  2 as seq,
  'Users' as title,       -- title
  'Manage users and groups' as subtitle,    -- subtitle, set template option to see
  '' as bodytext,        -- card body text
  '' as secondary,     -- card secondary text, positioned near bottom
  null as modifier,   -- card item modifiers
  apex_page.get_url(p_application => 1202,p_page  => 2000, p_items => '', p_values => '') as url,        -- card link, use apex_page.get_url(...)
  'green' as colour,       -- color modifier, e.g. u-color-1 or u-warning
  'fa fa-users fa-3x' as icon,        -- icon class, e.g. fa-cloud  PJ NEED the leading fa to get it to work ...
  'ABC' as letters     -- 2 or 3 letters, use apex_string.get_initials(...)
from dual
UNION
select
  3 as seq,
  'Global settings' as title,       -- title
  'Set default values for all users' as subtitle,    -- subtitle, set template option to see
  '' as bodytext,        -- card body text
  '' as secondary,     -- card secondary text, positioned near bottom
  null as modifier,   -- card item modifiers
  apex_page.get_url(p_application => 1202,p_page  => 3200, p_items => '', p_values => '') as url,        -- card link, use apex_page.get_url(...)
  'green' as colour,       -- color modifier, e.g. u-color-1 or u-warning
  'fa fa-cog fa-3x' as icon,        -- icon class, e.g. fa-cloud  PJ NEED the leading fa to get it to work ...
  'ABC' as letters     -- 2 or 3 letters, use apex_string.get_initials(...)
from dual)
order by seq

However, I cannot figure out how to reference the URL in the cards region ACTION
if Full card -> redirect to URL
Am I missing something?
thanks
paul

This post has been answered by PJ on Apr 4 2022
Jump to Answer
Comments
Post Details
Added on Apr 4 2022
3 comments
387 views