Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Oracle Forms4.5 Item color weird behaviour.
Hi All,
I have a status item whose color is based on the status value at runtime. Eventhough I assigned a different visual attribute(with a different color) for each value, my color is not the same as the color that I assigned at runtime. It keeps picking its own color. Instead of picking the data_yellow it picks blue. Guess it has its own mind. or Am I missing something here.
Does anybody have a clue what is going on? Appreciate your help.
My code looks like this in the post query trigger,
begin
if (:ts_status.status_name = 'WAITING') then display_item('status_name', 'DATA_YELLOW'); elsif (:ts_status.status_name = 'PENDING') then display_item('status_name', 'DATA_ORANGE'); elsif (:ts_status.status_name = 'REJECTED') then display_item('status_name', 'DATA_RED'); elsif (:ts_status.status_name = 'RUNNING') then display_item('status_name', 'DATA_GREEN'); elsif (:ts_status.status_name = 'COMPLETED') then display_item('status_name', 'DATA_BLUE'); elsif (:ts_status.status_name = 'REMOVED') then display_item('status_name', 'DATA_BLACK'); elsif (:ts_Status.status_name = 'NEW')
then display_item('status_name', 'DATA_GREY'); elsif (:ts_Status.status_name = 'INCOMPLETE') then display_item('status_name', 'DATA_CYAN');elsif (:ts_Status.status_name = 'DELETED') then display_item('status_name', 'DATA_MAGENTA'); elsif (:ts_status.status_name = 'TECH WORKING') then display_item('status_name', 'DATA_WHITEGRAY'); end if;
Thanks
Manasa.