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!

Display custom button in card region

Marco FoxxJul 18 2021

Hello,
apex 20.2 (also tried the same on AOC 21.1.1)
I want to display button which i am generating in sql of card region. Below is my code for the same.
SELECT
EMPNO,
ENAME ,
'<button class="t-Button t-Button--hot js-ignoreChange lto18919357375270759988_0" type="button" id="B18919357375270759988"><span class="t-Button-label">Create</span></button>' as mybtn
FROM EMP
WHERE EMPNO = 7839
UNION ALL
select
DEPTNO,
DNAME ,
null as mybtn
from DEPT

The reason why I am doing this is to only display button in first card and not in any other cards which follows. If you see below image i am able to do the same the issue is, it displays string instead of button.
image.pngimage.pngIs it really doable or can not be done this way?

This post has been answered by fac586 on Jul 18 2021
Jump to Answer
Comments
Post Details
Added on Jul 18 2021
3 comments
1,212 views