Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Oracle Forms4.5 Item color weird behaviour.

Oracle Forms4.5 Item color weird behaviour.

From: Manasa Rao <rao_manasa_at_hotmail.com>
Date: Wed, 05 Jul 2000 17:09:35 GMT
Message-Id: <10549.111237@fatcity.com>


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.



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com Received on Wed Jul 05 2000 - 12:09:35 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US