Home » Developer & Programmer » Forms » Stacked canvas and tabs
Stacked canvas and tabs [message #268914] Thu, 20 September 2007 01:56 Go to next message
jarek.p
Messages: 1
Registered: September 2007
Junior Member
Hello

I have form (in Forms 10) with some tabs and I need to display stacked canvas on the first tab. So, I've created when-tab-page_change trigger with code:

v_tp_nm := GET_CANVAS_PROPERTY('tab', topmost_tab_page);
n_tp_id := FIND_TAB_PAGE(v_tp_nm);
v_tp_lb := GET_TAB_PAGE_PROPERTY(n_tp_id, label);

IF UPPER(v_tp_lb) LIKE '....' THEN
GO_ITEM('...');
SHOW_VIEW('...');

...

and this code works. When I change tab to first, stacked canvas is displayed.
But I have problem when form starts. At startup first tab page is displayed, so trigger when-tab-page-change doesn't run and stacked canvas is not displayed. I have created trigger when-new-from-intance where I call SHOW_VIEW('stackedcanvas'), but it doesn't work. Does anybody know how to show stacked canvas on first tab page on form startup.

thnx
Re: Stacked canvas and tabs [message #268919 is a reply to message #268914] Thu, 20 September 2007 02:02 Go to previous messageGo to next message
azamkhan
Messages: 548
Registered: August 2005
Senior Member
Check that in the navigator pan's Canvas node the stack must be place at the last.

Regards,
Azam Khan
Re: Stacked canvas and tabs [message #268920 is a reply to message #268914] Thu, 20 September 2007 02:03 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Have you tried setting 'Raise on Entry' to 'yes' for the stacked canvas?

David
Previous Topic: Disable Save Changes Alert
Next Topic: IS IT POSSIBLE IN FORMS
Goto Forum:
  


Current Time: Sat Dec 10 06:42:55 CST 2016

Total time taken to generate the page: 0.13482 seconds