Home » Developer & Programmer » Forms » Get current window title (Oracle forms 11G)
Get current window title [message #671333] Wed, 22 August 2018 11:01 Go to next message
RaShi.Raj
Messages: 84
Registered: May 2014
Location: Bangalore
Member
Hi All,

Is there any way where I can fetch the title of the current active window ? I know title can be fetched by passing the window name but I have few windows and want the title of the window that is active.

Thanks,
Rashi
Re: Get current window title [message #671338 is a reply to message #671333] Thu, 23 August 2018 01:31 Go to previous messageGo to next message
Littlefoot
Messages: 21806
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
GET_WINDOW_PROPERTY with its TITLE property might be what you're looking for. Have a look at Forms Help for more info.
Re: Get current window title [message #671340 is a reply to message #671338] Thu, 23 August 2018 02:17 Go to previous messageGo to next message
RaShi.Raj
Messages: 84
Registered: May 2014
Location: Bangalore
Member
Littlefoot wrote on Thu, 23 August 2018 12:01
GET_WINDOW_PROPERTY with its TITLE property might be what you're looking for. Have a look at Forms Help for more info.
No, here I need to pass the name of the window to get the title. But I have many windows and do not know the name of the window that is active. Requirement is I'm calling a procedure only if Window is activated on one of the windows.
Re: Get current window title [message #671341 is a reply to message #671340] Thu, 23 August 2018 02:28 Go to previous messageGo to next message
RaShi.Raj
Messages: 84
Registered: May 2014
Location: Bangalore
Member
Thanks Littlefoot

I found a solution. This is what I need to do. Get the name of the current canvas first and then pass that canvas name to get window name.

v_canvas := GET_ITEM_PROPERTY(:SYSTEM.CURSOR_ITEM, ITEM_CANVAS);
v_window := GET_VIEW_PROPERTY(v_canvas, WINDOW_NAME);

Re: Get current window title [message #671342 is a reply to message #671341] Thu, 23 August 2018 02:31 Go to previous message
Littlefoot
Messages: 21806
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Nice. I'm glad you made it; thank you for the feedback.
Previous Topic: QRCODE with Developer 6i
Next Topic: Looping through block for each record
Goto Forum:
  


Current Time: Thu Mar 28 08:42:40 CDT 2024