?
Solved

oracle-forms: got_focus/lost_focus..triggers

Posted on 2003-11-17
3
Medium Priority
?
1,748 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 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
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.
Via a live example, show how to take different types of Oracle backups using RMAN.
Suggested Courses

764 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