Link to home
Start Free TrialLog in
Avatar of harish_tyagi
harish_tyagi

asked on

How to set visual attribute of a check box

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
ASKER CERTIFIED SOLUTION
Avatar of annu_vinayak
annu_vinayak

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of schwertner
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.
Avatar of Moondancer
Moondancer

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.
Force accepted

** Mindphaser - Community Support Moderator **