Solved

How to set visual attribute of a check box

Posted on 2001-06-14
4
2,394 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
[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
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 48

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines

751 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