Change background color of textbox based on non-visible value
Hello,
I have a 10g master - detail form. I was wondering how can I change background color of text box (NAME) based on non-visivle item (MODIFIED_BY) value.
So far, I have created two visual attributes and have put following code on "WHEN_NEW_BLOCK_INSTANCE" trigger
if( :main.MODIFIED_BY = 'COCO') then
SET_ITEM_PROPERTY('main.NAME',VISUAL_ATTRIBUTE,'VA_BLUE');
else
SET_ITEM_PROPERTY('main.NAME',VISUAL_ATTRIBUTE,'VA_RED');
end if;
But, it always goes to "ELSE" part and make RED color for all records. Could you please help me with this?
Thanks.
Got it.
Post Query trigger on block
if (:main.MODIFIED_BY ='COCO') then
set_item_instance_property('main.NAME',current_record,visual_attribute,'VA_BLUE');
else
set_item_instance_property('main.NAME',current_record,visual_attribute,'VA_RED');
end if;Thanks
Similar Messages
-
How to change background color of multilevel textbox in oracle form 6i
hi
How To Change background Color of the Text.
In One Multilevel Block 10 Record is Display At a Time in a Text Box (Name is AMTt)
This Text Box display , Buffer and Record Length is 10
In Case Of Amount is Less 500 then Text Color Is Red(Or Any) and In Case Amount Is More 500 Then Color is Green (Or Any).
Me Use This Code in PRE_RECORD EVENT
TCMTL is Block name
TCMTL_AMT is Text Box Name
if :TCMTL.TCMTL_AMT >5000 then
g_fun.msgbox('Values is more');
Set_Item_Property('TCMTL_AMT' , BACKGROUND_COLOR, 'r50g100b100');
else
g_fun.msgbox('Values is Less');
Set_Item_Property('TCMTL_AMT' , BACKGROUND_COLOR, 'r50g100b10');
end if;
but This Code Is Refer Only 10th Value and change color depend on value.
so
possible to Different color in One Block Text Box Then how?DECLARE
cur_itm VARCHAR2(80);
cur_block VARCHAR2(80) := Name_in('system.trigger_block') ;
BEGIN
cur_itm := Get_Block_Property( cur_block, FIRST_ITEM );
WHILE ( cur_itm IS NOT NULL ) LOOP
cur_itm := cur_block||'.'||cur_itm;
--:global.VISUAL_ATTRIBUTE:= 'BACKGROUND_COLOR';
--:global.VISUAL_ATTRIBUTE:= get_item_property(cur_block||'.'||cur_itm ,Background_Color);
IF :TCMTL.TCMTL_AMT >= 500 THEN
Set_Item_Instance_Property( cur_itm, CURRENT_RECORD, VISUAL_ATTRIBUTE,'r50g100b100');
ELSE
Set_Item_Instance_Property( cur_itm, CURRENT_RECORD, VISUAL_ATTRIBUTE,'r5g100b10');
END IF;
cur_itm := Get_Item_Property( cur_itm, NEXTITEM );
END LOOP;
next_record;
END;
this is my in that how to set a VISUAL_ATTRIBUTE, and where to set so get a background color of text and change -
How to change background color in AutoComplete window ?
Is it possible to change background color in AutoComplete window ?
Bob, A.Ankit, you're both chasing a ghost here.
The screenshot shows an autocomplete enabled textbox with its dropdown list of autocomplete values to choose from. There is no property defining its backcolor. Not in the textbox nor in any class, neither any other baseclass nor _combobox of _base.vcx
The only way to chnage that color is not recommended, via changing windows theme colors. That would effect any window and control.
If you need another color even turning off themes won't help as VFP doesn't offer any property controlling that color, so you really would need to implement the autocomplete feature yourself, if you want the specify this backcolor.
Bye, Olaf.
Olaf Doschke - TMN Systemberatung GmbH http://www.tmn-systemberatung.de -
How to change background color in online editor
How to change background color in online editor
Jeff,
if you try to change all the plsql keywords to the same background color (that is not either white or black or blue) via the options panel in SQL Developer (Code Editor > PLSQL syntax colors), you will get the new background color in the worksheet only for the areas with plsql text, while the areas without any text will have the same background color as the base color scheme you started with. This means that there is no way to change the "general background" color via the options panel, but you have to use the same background color of one of the predefined color schemes.
This seems to me a bug, but probably it's not considered high priority, so it will not be fixed for the time being.
I would like to stress the fact that being able to change the color scheme of the development environment that you use every day about 8 hours a day can make quite a difference on your eyes at the end of the day.
Thanks,
Paolo -
How to change background color in photoshop cs3
how to change background color in photoshop cs3
Please help me...Background for what? You need to explain better and be more specific.
Mylenium -
Pages 5 can't change background color in fullscreen
There's no option to change background color when in fullscreen mode anymore.
Did I miss something or did apple just...get rid of it?????why???Hi, Mark,
Under the Format menu select Advanced and the click on Make Master Objects Selectable. Now click on the red area. You'll notice little faint x's at the corners. In the Arrange menu click on Unlock. Now you can edit the color. (In this case a gradient.) When you finish, go back and Lock it again and deselect Make Master Object Selectable.
Walt -
Change background color in enter-query mode
Hi everyone,
I am trying to Change background color in enter-query mode in forms10g. I am using this
Set_Item_property('org.branch_code', BACKGROUND_COLOR, 'Green' );
ThanksThis is the code that allows to colorise items in enter_query mode, then de-colorize them after execute_query.
Assume that you have created a VA_QUERY visual atribute in your module.
-- Colorise in enter-query mode --
PROCEDURE Start_query IS
LC$Block Varchar2(30) := Name_in('system.trigger_block') ;
LC$item varchar2(60);
LC$itemdeb varchar2(60);
LN$len pls_integer ;
BEGIN
lc$itemdeb := get_block_property(LC$BLOCK, FIRST_ITEM) ;
lc$item := LC$BLOCK || '.' || lc$itemdeb ;
while lc$itemdeb is not null Loop
IF GET_ITEM_PROPERTY(LC$Item , ITEM_TYPE) NOT IN ('BUTTON','RADIO GROUP','DISPLAY ITEM') Then
IF GET_ITEM_PROPERTY(LC$Item , QUERYABLE ) = 'TRUE' Then
set_item_property(LC$item, CURRENT_RECORD_ATTRIBUTE, 'VA_QUERY');
End if ;
End if ;
lc$itemdeb := get_item_property( lc$item, NEXT_NAVIGATION_ITEM );
lc$item := LC$BLOCK || '.' || lc$itemdeb ;
end loop ;
END;
-- Unclororize after execute_query --
PROCEDURE End_query IS
LC$Block Varchar2(30) := Name_in('system.trigger_block') ;
LC$item varchar2(60);
LC$itemdeb varchar2(60);
LN$len pls_integer ;
LN$Multi pls_integer ;
BEGIN
lc$itemdeb := get_block_property(LC$BLOCK, FIRST_ITEM) ;
lc$item := LC$BLOCK || '.' || lc$itemdeb ;
LN$Multi := GET_BLOCK_PROPERTY(LC$Block , RECORDS_DISPLAYED ) ;
while lc$itemdeb is not null Loop
IF GET_ITEM_PROPERTY(LC$Item , ITEM_TYPE) NOT IN ('BUTTON','RADIO GROUP','DISPLAY ITEM') Then
IF GET_ITEM_PROPERTY(LC$Item , QUERYABLE ) = 'TRUE' Then
If LN$Multi > 1 Then
set_item_property(LC$item, CURRENT_RECORD_ATTRIBUTE, 'VA_CURRENT_RECORD');
Else
set_item_property(LC$item, CURRENT_RECORD_ATTRIBUTE, '');
End if ;
End if ;
End if ;
lc$itemdeb := get_item_property( lc$item, NEXT_NAVIGATION_ITEM );
lc$item := LC$BLOCK || '.' || lc$itemdeb ;
end loop ;
END;Francois -
HI guys,
I have a question:
In the Form 6I exists a Text Item with own scrollbar.
Are there any options to change background color on scrollbar attached to that item?
Thanks in advance,
John.
Message was edited by:
IMJLIn the Form 6I exists a Text Item with own scrollbar.If you rae talking about text item, you can set property word yes and vertical scroll = yes
For second question ,as Francois said, the answer is No -
Change background color for JFrame
hi,
i want to change background color of JFrame. In my application i didn't create any panels.
my code like this,
Frame myFrame = new JFrame ( " Grid Layout Frame ");
myFrame.setSize(500,500);
myFrame.getContentPane().setBackground(Color.white);
myFrame.setVisible(true);thanks,
BalajiYou don't get a white frame when you run this program?import java.awt.*;
import javax.swing.*;
public class junk
public static void main(String[] args) throws Exception
JFrame f = new JFrame("Hello");
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setSize(500,500);
f.getContentPane().setBackground(Color.white);
f.setVisible(true);
} -
Change background color in notes.
Can I change background color in notes? to black with white font? If not, why doesn't Apple already make this an option?
I have the same issue. This is ridiculous. Yellow on a white background? Some of my notes are all black and white however if I have an email address or series of numbers, phone, account etc those are in yellow. But not always..
-
Hover over image will change background color and size since IE8
Hello,
I have a problem that only occurs in IE8 without compability view.
I have in CSS set all textlinks to change background color on hover.
Now my sliced imageslinks also change background color and for a larger background area than the actual image.
It filles out the area outside the sliced image.
This hasnt happened before in any other versions of IE and it looks fine in Firefox.
Please can some one help me !
I have been searching net for hours.
I tried to change the background color when hovering imagelinks. Maybe I did something wrong but it didnt help.
BR,
PeterNoone that can give me a clue?
I have been trying to figure this out all day -
How to change Background colors in photos
Hi all,
I could use some help with changing background color of attached example. I want to be able to change background of this photo and have a few examples of it with blue, red and green background color.
any help is appreciated.
Thanks,
DenWith the selection still active apply a Solid Color adjustment layer in a new colour.
Adjust the opacity and blending mode to suit.
Do a Save as... using a different file name and repeat with different colours. -
How do you change background color?
How do you change background color in Pages?
Make a rectangular shape the size of the page, color it and send to the background, save as a template.
Peter -
SAPSCRIPT: How change background color cell/table
Hi!
How can I change background color cell/table in Sapscript?
Thanks very much!Hi ,
Normally we use Scripts and smartforms for submitting the output to customers or for tax purpose and so on,,in such case we wont submit in differnt color other than white and black,so formatting in other colors is not possible in Script and smartforms.
Please let me know if have any issues on this.
Thanks and regards,
Rajeshwar -
How to change background color of text in pdf based by font name
Hi
How to change the background color of text in PDF based by font name. Is there any option in Javascript. e.g: If PDF containing ARIAL font, the ARIAL text background color needs to be changed in red color for all pages. Same for all fonts with different different color in the PDF.
Thanks in AdvanceHi
1) Is there any possibilities to highlight with different color based on font using javascript
2) list of font used in PDF using javascript
3) How to hilight the text using javascript
Thanks in Advance
Maybe you are looking for
-
Error "Problem occured locking WS object" while activating Proxy
Hi All, I have move an Inbout proxy to a different Client(QA system) and in QA system that proxy shows incative. When i tried to activate that proxy/service in Sproxy, getting error "Problem occured locking WS object". Proxy was active in development
-
Satellite L20 - no audio output device using Win7
I purchased a 2nd hand Satellite L20 which was upgraded from xp to win7 on the task bar says no audio output device is installed. Tried update driver in device manager -- no good Downloaded Realtek AC97 driver -- no good. It will play sound from dvd
-
Please tell me how can I put Bookmarks for all pages opened in Firefox.There was an option ("bookmark all pages") which vanished.
-
Hi, can any one provide me how to configure HTTPS in websphere 6.1 which is running on Linux. Thanks.
-
hi, i have an iPhone 5 and have had to replace the charger cable 3 times, its cost me a small fortune! i paid for applecare + for it, am i covered?