Home » Developer & Programmer » Forms » How to get display item name at the run time in form 6i (Oracle Forms 6i, Forms [32 Bit] Version 6.0.8.24.1, Microsoft Window XP Professional version 2002 service pack 2)
How to get display item name at the run time in form 6i [message #337522] Thu, 31 July 2008 02:41 Go to next message
ashutosh.chowdhary
Messages: 13
Registered: July 2008
Location: Pune
Junior Member
No Message Body
Re: How to get display item name at the run time in form 6i [message #337842 is a reply to message #337522] Fri, 01 August 2008 05:55 Go to previous messageGo to next message
gurupatham
Messages: 66
Registered: March 2008
Location: Chennai
Member
Use the following system variable.
:System.Cursor_Item --Returns the Item name along with Block name
or
:System.Current_Item -- Returns the item name.

Re: How to get display item name at the run time in form 6i [message #338172 is a reply to message #337842] Mon, 04 August 2008 01:35 Go to previous messageGo to next message
ashutosh.chowdhary
Messages: 13
Registered: July 2008
Location: Pune
Junior Member
Hi
Using :System.Cursor_Item , I am able to get the name of the text item or other items on which the cursor is navigating at the run time.
As the cursor will not come to display item, so the :System.Cursor_Item is not working.
As my requirement is to scan all the controls in the blocks or form and get their names to built a dynamic form and I am using the display item as a label for the item.

So you or anybody could guide me how to scan all the controls in the form and return their names ?

Regards,
Ashutosh
Re: How to get display item name at the run time in form 6i [message #338229 is a reply to message #338172] Mon, 04 August 2008 04:43 Go to previous messageGo to next message
gurupatham
Messages: 66
Registered: March 2008
Location: Chennai
Member
Given code to scan all the item in the form even display item. May be useful to you.
Declare
	v varchar2(40);
Begin
	v := Get_Block_Property('EMP' , First_Item) ; 
Message(v);pause;
Loop
	v := Get_Item_Property('EMP.'||v , NextItem) ; 
	Exit when v is null;
	Message(v);pause;
end loop;
end;
Re: How to get display item name at the run time in form 6i [message #338420 is a reply to message #338229] Tue, 05 August 2008 00:06 Go to previous message
ashutosh.chowdhary
Messages: 13
Registered: July 2008
Location: Pune
Junior Member
hi

Thanks buddy, the given code is working for scanning the items in blocks.

Regards
Ashutosh
Previous Topic: Multiple rows uniqueness validation
Next Topic: exit_Form hanging
Goto Forum:
  


Current Time: Tue Dec 06 16:04:03 CST 2016

Total time taken to generate the page: 0.09188 seconds