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!

Add color style to the Select list values...?

ApexLearnApr 20 2018 — edited Apr 23 2018

Hi,

I do have Select list page item. P1_COLOR_LIST

I want to display the select list values with colors.

For this i have written below code.

P1_COLOR_LIST

List of values as Sql query.

SELECT D ,

R

FROM(SELECT

CASE WHEN deptno = 10 THEN

'<span style ="background-color:green;">'||ename||'</span>'

WHEN deptno = 20 THEN

'<span style = "background-color:red;" >'||ename||'</span>'

WHEN deptno = 30 THEN

'<span style = "background-color:yellow;" >'||ename||'</span>'

WHEN deptno = 40 THEN

'<span style = "background-color:blue;" >'||ename||'</span>'

END AS D,

empno AS R

FROM emp)

and resultant select list values as below.

pastedImage_1.png

But i want display the list of values with their background color.

Same query is working for the reports

Please suggest.

Thanks in advance.

Thanks,

Hanu

This post has been answered by PMON on Apr 20 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 21 2018
Added on Apr 20 2018
8 comments
3,096 views