Home » Developer & Programmer » Forms » Use display_item to set visual attribute back to default
Use display_item to set visual attribute back to default [message #87130] Wed, 08 December 2004 07:33 Go to next message
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;
Can anybody help? [message #87214 is a reply to message #87130] Tue, 14 December 2004 06:43 Go to previous message
Dave Manning
Messages: 6
Registered: October 2003
Junior Member
No response, surely somebody must be able to help?
Previous Topic: About key press event
Next Topic: How to create Setup.exe in Oracle
Goto Forum:
  


Current Time: Sun Sep 08 03:42:47 CDT 2024