Home » Developer & Programmer » Forms » Forms row background colour.
Forms row background colour. [message #81365] Mon, 10 February 2003 18:23 Go to next message
Chris Pettit
Messages: 2
Registered: February 2003
Junior Member
I want to change the background colour of a particular row in a form block and leave all other rows uneffected. set_item_property changes all the items in the column in the block. set_item_instance_property only effects the row with the cursor.

Is it at all possible to do this in Oracle Forms 6i.
Re: Forms row background colour. [message #81382 is a reply to message #81365] Wed, 12 February 2003 06:46 Go to previous messageGo to next message
Andres
Messages: 7
Registered: April 2002
Junior Member
1 sorry for my english
2 for change color of a particular row you need to craete two Visual attributes (1 -white 2 - blue).

/*
from help
** Built-in: SET_ITEM_INSTANCE_PROPERTY
** Example: Change the visual attribute of each item instance in the
** current record
*/
DECLARE
cur_itm VARCHAR2(80);
cur_block VARCHAR2(80) := :System.Cursor_Block;
BEGIN
if ....... then
cur_itm := Get_Block_Property( cur_block, FIRST_ITEM );
WHILE ( cur_itm IS NOT NULL ) LOOP
cur_itm := cur_block||'.'||cur_itm;
Set_Item_Instance_Property( cur_itm, CURRENT_RECORD,
VISUAL_ATTRIBUTE,'My_Favorite_Named_Attribute');
cur_itm := Get_Item_Property( cur_itm, NEXTITEM );
END LOOP;

end if;
END;

With best regard...
Re: Forms row background colour. [message #81387 is a reply to message #81382] Wed, 12 February 2003 13:17 Go to previous messageGo to next message
Chris Pettit
Messages: 2
Registered: February 2003
Junior Member
Thanks Andres, that worked.
Re: Forms row background colour. [message #81932 is a reply to message #81382] Wed, 02 April 2003 10:12 Go to previous message
beginning
Messages: 5
Registered: March 2003
Junior Member
Hi, Andres:

This works for the hightlight selected rows, how can I dehighlight the old rows?

Thanks
Previous Topic: ORACLE 6i OLE Activation.
Next Topic: LOV
Goto Forum:
  


Current Time: Fri Mar 29 02:12:08 CDT 2024