Solved

oracle-forms: got_focus/lost_focus..triggers

Posted on 2003-11-17
3
1,697 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_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
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…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to recover a database from a user managed backup

724 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