Solved

How to set visual attribute of a check box

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
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

632 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