This content has been marked as final. Show 6 replies
You have to loop through all items of the application.
Get_Item_Property( CANVAS_NAME) gives you the canvas name
Get_View_Property( WINDOW_NAME) gives you the window associated to that canvas.
Hi Francois Degrelle,
First of all thanks for the response.
What if I have no items on a content canvas? In my application, I am using content canvas to hold the Image banner and help text of the current form, having no items at all. I am also using tab canvases to hold all items of form. The tabs are displayed on the content canvas at run time. So the tab canvases acts like frames (In my case).
Now if I am looping through items, it gives me the list of all of the tab canvases. Whereas the tab canvas always has no window assigned, as it is displayed on content canvas which has that Window which I need. Thus I am unable to get the names of windows in my case through the above stated procedure.
Another option could be if I can get the name of the content canvas upon which the given tab canvas is displayed?
Any way to do this or some other way to achieve the use case?
Any help will be highly appreciated.
Thanks in advance
Looping through all items of a form isn't performant for bigger forms. As the number of windows/canvases doesn't change at runtime you could create a jdapi class wich loops through all windows and and generates a program unit which populates a package global array with all window names; e.g.
All you'd need to do is call this jdapi class for every form before you compile them. You could of course add informations as you need them. Call your procedure which populates the array e.g. in the PRE-FORM trigger, and you can reference your window names everywhere you want.
constants.arWindows(0) := 'WINDOW0'; constants.arWindows(1) := 'W_EDIT0';
Any help on how to create and use jdapi class with Oracle forms 10g.
The forum search or google should shed some light on this: