Use display_item to set visual attribute back to default [message #87130] |
Wed, 08 December 2004 07:33 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Dave Manning
Messages: 6 Registered: October 2003
|
Junior Member |
|
|
I am trying to provide a Ctrl + Click function that toggles between a user defined visual attribute and the default (see below). The code works ok, but will not set back to the default. I need to use the default and not another user defined attribute because the default has a Current Record Visual Attribute Group.
Any advice much appreciated.
IF nvl(:ncp_detail.selected,'N') = 'N' THEN
:ncp_detail.selected := 'Y';
cur_block := 'ncp_detail';
cur_itm := Get_Block_Property( cur_block, FIRST_ITEM );
WHILE ( cur_itm IS NOT NULL ) LOOP
cur_itm := cur_block||'.'||cur_itm;
Display_Item( cur_itm, 'va_selected');
cur_itm := Get_Item_Property( cur_itm, NEXTITEM );
END LOOP;
ELSE
:ncp_detail.selected := 'N';
cur_block := 'ncp_detail';
cur_itm := Get_Block_Property( cur_block, FIRST_ITEM );
WHILE ( cur_itm IS NOT NULL ) LOOP
cur_itm := cur_block||'.'||cur_itm;
Display_Item( cur_itm, 'DEFAULT');
cur_itm := Get_Item_Property( cur_itm, NEXTITEM );
END LOOP;
END IF;
|
|
|
|