Stacked canvas and tabs [message #268914] |
Thu, 20 September 2007 01:56  |
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
|
|
|
|
|