Solved

How to set visual attribute of a check box

Posted on 2001-06-14
4
2,273 Views
Last Modified: 2008-02-26
My Problem is

I hv one multi record block . check boxes are also there for all the records in a multi record block. Check boxes r also the part of multi record block. I m setting the update , insert and visual attribute property of some check boxes depending on some condition thru set_item_instance_Property. Well im thru for update and insert property but im not thru for setting the visual attribute. I want to set the background and foreground color of check box as gray but its alsways white.

suggest some way out
0
Comment
Question by:harish_tyagi
4 Comments
 
LVL 1

Accepted Solution

by:
annu_vinayak earned 100 total points
ID: 6190444
you can use

SET_ITEM_PROPERTY
  (item_name  VARCHAR2,
   property   NUMBER,
   value      VARCHAR2);

to set the visual attributes, say if the name of the item is 'xyx' then u need to write the following code

set_item_property('xyz',FOREGROUND_COLOR, 'GRAY');

the other alternate to this - is that you can set these properties during design-time. For more help you can check 'set_item_property' in help.

Hope this helps you.

0
 
LVL 47

Expert Comment

by:schwertner
ID: 6190478
DECLARE
  it_id Item;
BEGIN
  it_id := Find_Item('CONTROL.CHECK_BOX);  
  Set_Item_INSTANCE_Property(it_id,1,VISUAL_ATTRIBUTE,'TEXT_ITEM');
 
END;

Here 1 is the number of the current record and TEXT_ITEM is the name of a visual attribute where you define the foreground and background color.

You can use the system variable to figure out the number of the current record.

SYSTEM.CURSOR_RECORD represents the number of the record where the cursor is located.  This number represents the record's current physical order in the block's list of records. The value is always a character string.

So use TO_NUMBER(:SYSTEM.CURSOR_RECORD) to gigure out the number of the current record.
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7033795
Please update and finalize this old, open question. Please:

1) Award points ... if you need Moderator assistance to split points, comment here with details please or advise us in Community Support with a zero point question and this question link.
2) Ask us to delete it if it has no value to you or others
3) Ask for a refund so that we can move it to our PAQ at zero points if it did not help you but may help others.

EXPERT INPUT WITH CLOSING RECOMMENDATIONS IS APPRECIATED IF ASKER DOES NOT RESPOND.

Thanks to all,
Moondancer - EE Moderator

P.S.  Click your Member Profile, choose View Question History to go through all your open and locked questions to update them.
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 7045980
Force accepted

** Mindphaser - Community Support Moderator **
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

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
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 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…

747 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

11 Experts available now in Live!

Get 1:1 Help Now