3 Replies Latest reply: May 8, 2009 11:28 AM by 622982 RSS

    Place a Tab Canvas within a Tab Canvas

    faoilean
      Oracle Forms 6i.

      I have a requirement to put a tab canvas within a tab canvas. However when I try to create a tab canvas within a tab canvas i get a 'FRM-13002: Stacked and Tab canvases must be created within content canvases.'

      Does anyone know of a way to achieve this?
        • 1. Re: Place a Tab Canvas within a Tab Canvas
          622982
          Hi Faoilean,

          You cannot create stack or tab canvas on tab canvas. You need to create content canvas then place the first canvas and then second canvas but make sure you selcting show view, show canvas and select first canvas first then second canvase second.
          • 2. Re: Place a Tab Canvas within a Tab Canvas
            faoilean
            Got it working thanks.

            For anyone that wants the code:

            WHEN-TAB-PAGE-CHANGED - Form Level Trigger

            declare
                 tb_name varchar2(30);
            begin     
                 tb_name :=get_canvas_property('CANVAS1', topmost_tab_page);
                 
                 if tb_name = 'TAB1' then
                      show_view('CANVAS1');
                      show_view('SUB_CANVAS1');
                      go_item('BLOCK1.FIELD1');
                 elsif tb_name = 'TAB2' then
                      hide_view(''SUB_CANVAS1');
            go_item('BLOCK1.FIELD2');
                 end if;
            end;
            • 3. Re: Place a Tab Canvas within a Tab Canvas
              622982
              I think they might be looking for Appfolder but ask the gurus for Master and Detail relationship code! I am also new to forms!