Forms row background colour. [message #81365] |
Mon, 10 February 2003 18:23 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
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 message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
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...
|
|
|
|
|