Solved

oracle-forms: got_focus/lost_focus..triggers

Posted on 2003-11-17
3
1,543 Views
Last Modified: 2012-06-27
I have a text item and I want to change the backgroud color whenever user enter the item (with mouse or kbd) in order to change the data in that field.
And I want to set the background to initial color when user leave the item...something like 'got_focus'/'lost_focus' events.

How to do this in Oracle forms? I dont find the equivalent triggers.
0
Comment
Question by:Alta_
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 50 total points
ID: 9762527
use the pre-text-item and post-text-item triggers to change your color like


SET_ITEM_PROPERTY('BLOCKNAME.ITEMNAME',Background_Color,'r25g75b0');

meikl ;-)
0
 

Author Comment

by:Alta_
ID: 9762655
Thanks
0
 

Author Comment

by:Alta_
ID: 9762719
But why the color that I set with

SET_ITEM_PROPERTY('BLOCKNAME.ITEMNAME',Background_Color,
'r75g100b100');

is not the color that I wanted..the color looks different when I run the form...than the color in the property palette (for example dark color instead light blue color).
There is other way to specify colors in oracle forms ..instead rgb value?
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now