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 Select List in different colors

HarryFSep 9 2014 — edited Sep 10 2014

I am trying to display items in a select list with different colors. I did this in a tabular form. I also tried it in a page item.

I tried the technique on this blog that looked like this:

SELECT color_num || color AS D

     , dispatch_color_pk ||'"style="background-color:' || color AS R  FROM color

I tried it defining the field in the tabular form as a select list and I tried it as a Standard Report Column using APEX_ITEM.SELECT_LIST_FROM_QUERY to build it.  Same result.

If I inspect the element it looks correct:

<option value="1" style="background-color:PINK">1PINK</option>

But if I display it in HTML or do a copy/paste it looks like this:

<option value="1&quot; style=&quot;background-color:PINK">1PINK</option>

I tried chr(34) in place of the quote, same problem.

I tried this in the latest Firefox and the latest Chrome, same problem.

Am I missing a setting to get it to just accept the quote?

We are on 4.2.2.00.11

harry

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 8 2014
Added on Sep 9 2014
2 comments
1,196 views