Change The color of label upon choosing value [message #403512] |
Sat, 16 May 2009 02:25 |
|
Hi folks can anyone tell me how i can change the color of label based on value of item selected from the list.That is i have list of projects and this project have a status field whether it is closed or not closed.if user chooses any project which is closed i want this label to be green otherwise label to be red.
|
|
|
|
|
|
Re: Change The color of label upon choosing value [message #403526 is a reply to message #403523] |
Sat, 16 May 2009 06:27 |
|
Actually i m taking the value from one table ot_job_head
for a field jh_appr_status if that status is 1 it must be red and if the chosen value is 3 then green.
The item which has to be highlighted is text item and used only for display purposes.
I already have one trigger written on when list changed so how can i add another proceedure
|
|
|
|
Re: Change The color of label upon choosing value [message #403563 is a reply to message #403533] |
Sun, 17 May 2009 00:55 |
|
First , thanks for your support . Can you give me the exact syntax of set item property . Secondly i would like to tell you that already i am using the when list change trigger to populate another list but how can i merge this if statement with that
declare
rg_id recordgroup := find_group('LOCN') ;
ln_error number ;
begin
if not id_null(rg_id) then
ln_error := populate_group(rg_id) ;
if ln_error = 0 then
populate_list('IP_REP_INFO.TEXT_ITEM108' , rg_id) ;
else
message('Error in Populating Group') ;
end if ;
end if ;
end ;
can i add two functionalities together that is i need to populate the second list based on first list and then change the color of text item based on jh_appr_status if its 1 then red color else if its 3 then green color.
|
|
|
|
|
|
|