Home » Developer & Programmer » Forms » display_item (forms 4.5)
display_item [message #306716] Sun, 16 March 2008 02:41 Go to next message
thomasscaria
Messages: 21
Registered: July 2007
Location: Kuwait
Junior Member
/*
sample code to set background display of a record based on a check bok value
*/



DECLARE
cur_itm VARCHAR2(80);
cur_block VARCHAR2(80) := :System.Cursor_Block;
BEGIN
IF :fld6 = '1' THEN
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, 'HILIGHT');
cur_itm := Get_Item_Property( cur_itm, NEXTITEM );
END LOOP;
ELSE
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, 'NORMAL');
cur_itm := Get_Item_Property( cur_itm, NEXTITEM );
END LOOP;
END IF;
END;
Re: display_item [message #306776 is a reply to message #306716] Sun, 16 March 2008 13:47 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Is there any question here, or did you only want to share your code with the rest of the community?
Re: display_item [message #306817 is a reply to message #306776] Mon, 17 March 2008 00:15 Go to previous message
thomasscaria
Messages: 21
Registered: July 2007
Location: Kuwait
Junior Member
Hi,
I meant to share the code. I failed to find a similar example in the forum so i felt to share it.

Thomas.
Previous Topic: provide webutility
Next Topic: forms
Goto Forum:
  


Current Time: Mon Mar 10 22:24:37 CDT 2025