Home » Developer & Programmer » Forms » Stacked canvas on Tab Canvas
Stacked canvas on Tab Canvas [message #501534] Tue, 29 March 2011 14:03 Go to next message
VRNEW
Messages: 1
Registered: March 2011
Location: India
Junior Member
Hi,

I'm new to Oracle forms and need help.

I've a 2 stacked canvases(canvas_live_appmnt, canvas_cancelled_appmnt) and Tab canvas(cc_main).
Now I need to move the stacked canvas on the Tab canvas.
I tried writing the When-tab-changed trigger as follows:

In the below code I was trying for only one of the stacked canvases.

DECLARE
	L_LOCAL_TP_NAME VARCHAR2(30);
BEGIN
	L_LOCAL_tp_name := GET_CANVAS_PROPERTY('CC_MAIN',topmost_tab_page);
	IF L_LOCAL_tp_name = 'LIVE_APPOINTMENTS' then
		SET_VIEW_PROPERTY('CANVAS_LIVE_APPMNT',VISIBLE, PROPERTY_TRUE);
	--	SET_VIEW_PROPERTY (FIND_VIEW ('CANVAS_LIVE_APPMNT'), DISPLAY_POSITION, 0 , 325);
	ELSE
		SET_VIEW_PROPERTY('CANVAS_LIVE_APPMNT',VISIBLE, PROPERTY_FALSE);	
	END IF;
END;


Re: Stacked canvas on Tab Canvas [message #501558 is a reply to message #501534] Tue, 29 March 2011 22:11 Go to previous messageGo to next message
guptasum
Messages: 14
Registered: March 2011
Junior Member
Hi,

I understand that you want to display your stacked canvas over a tab canvas.
One of the possible options to do that is: get the tab name using "get_canvas_property" whenever the trigger "WHEN-TAB-PAGE-CHANGED" gets fired. Based on the tab name that you get here, you may display or hide a particular stacked canvas using the "show_view('canvas_name')", "hide_view('canvas name')"

E.g.:

IF event_name = 'WHEN-TAB-PAGE-CHANGED'
THEN
tp_name := get_canvas_property('XX_TAB_CANVAS', TOPMOST_TAB_PAGE);
IF tp_name = 'A'
THEN
hide_view('A3');
show_view('A4');
ELSIF tp_name = 'B'
THEN
hide_view('A4');
show_view('A3');
END IF;
END IF;

Hope this helps!

Thanks!
Re: Stacked canvas on Tab Canvas [message #501597 is a reply to message #501558] Wed, 30 March 2011 01:25 Go to previous message
Kamalnidhi
Messages: 1
Registered: March 2011
Location: India
Junior Member


Dont forget to keep your cursor on the new visible tab
Previous Topic: How to force user to enter exactly 3 digits in to a number field
Next Topic: Issue with Mandatory Field in Custom Form
Goto Forum:
  


Current Time: Tue Sep 17 05:09:10 CDT 2024