Tabbed canvas. What is trigger for execute_query?

Hi!
I use tabbed canvas. When i choose Tab WHEN-NEW-BLOCK-INSTANCE
didn't triggered. I get data only when i click on any control
within canvas. How to do it automaticly?

I use this method (Forms6i patch4 - 6.0.8.13.0):
In a when-tab-page-changed trigger on form level there is:
IF :SYSTEM.TAB_NEW_PAGE = 'CG$M_TAB_1_PAGE_1' THEN
GO_BLOCK('NAKLADY_UKAZ');
UROB_QUERY_UKAZ;
END IF;
In a when-new-block-instance on block level (NAKLADY_UKAZ)
there is:
BEGIN
UROB_QUERY_UKAZ;
END;
UROB_QUERY_UKAZ is a program unit in which I modify and set
where clause of block NAKLADY_UKAZ and use execute_query if
there are some changes in the where conditions. Instead of this
program unit you can use only EXECUTE_QUERY built-in.
I hope this will help you.
Helena

Similar Messages

  • Scrollbar for Tab canvas

    Hi
    I have added a scrollbar on window for Tab canvas but remains inactive even the layout goes beyond the window.But it works for Content canvas.
    Can somebody plz tell me is there any way to use scroll bar for tab canvas
    Ravi

    The scrollbar works for tab canvases as well as content canvases. Not sure what you mean by "remains inactive even the layout goes beyond the window".

  • Tab canva disapear whith stacked canvas

    hi guys,
    in my form there is:
    1. content canvas
    2.tabbed canvas
    when i put a stacked canvas the tabbed canvas disapear. any help?

    stack canvas can not put on top of tab canvas.
    what I did is to put tab canvas on content canvas and make tab canvas height very short, and then put stack canvas right below tab canvas that look like it's on tab.

  • Tab canvas disappear when the main stacked canvas reach the end of column

    Hi all,
    I have 3 canvas ( 1 main canvas, 1 stacked canvas ) and this link to 1 tab canvas. All these are in the same window.
    Whenever using the keyboard to press enter navigate from column to column and when it reach the end of the main canvas which is about to jump to the stack canvas, the two canvas ( stacked & tab ) was hide by itself. Even I have stated earlier to show all canvas in the pre-block trigger. when I keep on press the enter to jump to the next stacked canvas, this stacked canvas is being shown again. My tab canvas was not appear if I am press the enter key. However, if I press the arrow key down the tab canvas is appear. This I wasn't do any code to call the tab canvas.
    When I keep on press enter and reach the end of the stacked canvas again the tab canvas is disappear, unless I have press the arrow key down to display the tab canvas.
    Trying to use show_view( tab canvas ) in many trigger but still does not show the effect.
    Anyone has this experience before ?
    Thanks.
    Lim

    Hi Lim
    Pls check this hope it helps u to recognize dealing with muti-canvas in 1 window...
    how to use stack canvas in tab canvas in oracle forms
    Regards,
    Amatu Allah.
    Edited by: Amatu Allah on Sep 22, 2011 2:23 AM

  • Tab Canvas : 1 data block 2 different query for each tab) Forms 10g

    Hello allllll,
    I have 2 blocks Master datail ,the master is non-db the tab canvas is for one data block:
    Problem 1: How 2 display same data block in each tab.?
    Problem 2: How when pressing excute Query button each tab display the data
    ----------------------specified by the Master block..?
    Regards,
    Abdetu..

    -- When-New-Form-instance
    IF :SYSTEM.Record_Status ='query' THEN
    go_block('PLN_STOCK_TAKING_HEADER');
    execute_query;
    go_block('PLN_STOCK_TAKING_DETAIL');
    execute_query;
    go_block('PLN_STOCK_TAKING_DETAIL2');
    execute_query;
    END IF;
    same behaviour,excute on tab2 not tab1,well i think it has something to do with the relation..!
    Regards,
    Abdetu..

  • Trigger for Tab page selection

    Hi all,
    I have a form with a tab canvas with 3 tab pages. I have a multi record block in an tab page and I need to refresh the data in that block when i select the tab page. I have put the execute_query in when-new-block-instance of that block but, its not working. It will get queried only after i click on any fields of that block.
    Any ideas??
    With Regards,
    Yathish

    check this sample code used in when-tab-page-changed, topmost_tab_page value is what you need to know:
    DECLARE
    tp_nm VARCHAR2(30);
    tp_id TAB_PAGE;
    tp_lb VARCHAR2(30);
    BEGIN
    tp_nm := GET_CANVAS_PROPERTY('emp_cvs', topmost_tab_page);
    tp_id := FIND_TAB_PAGE(tp_nm);
    tp_lb := GET_TAB_PAGE_PROPERTY(tp_id, label);
    IF tp_lb LIKE 'Sa%' THEN
    SET_TAB_PAGE_PROPERTY(tp_id, label, 'SALARY');
    ELSIF tp_lb LIKE 'Va%' THEN
    SET_TAB_PAGE_PROPERTY(tp_id, label, 'VACATION');
    ELSE null;
    END IF;
    END;
    Message was edited by:
    Rondelek

  • Firefox crashing when i wanna open or close a tab or a window, also while wanna open any page, now what to do for solving the problem?

    Firefox crashing when i wanna open or close a tab or a window, also while wanna open any page, now what to do for solving the problem?

    Disable McAfee siteadvisor and check the problem still persist or not?

  • The "plus" sign for opening a new tab disappeared. what happened?

    the "plus" sign for opening a new tab disappeared. what happened? how can this be fixed?

    hello, can you try to replicate this behaviour when you launch firefox in safe mode once? if not, maybe an addon is interfering here...
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

  • When i open new tab my all bookmarks and add on's remove automatically, what can do for locking this???

    when i open new tab my all bookmarks and add on's remove automatically, what can do for locking this???

    Do you mean that toolbars get hidden when you open a new tab?
    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    *Use a compressed image type like PNG or JPG to save the screenshot
    *Make sure that you do not exceed the maximum size of 1 MB
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Searching with the Search tab only looks in 3 of 19 merged chms, no matter what is searched for

    I'm using RoboHelp 8.  I'm using the Search tab in the HTML Help window to search.  Although it finds what I’m searching for, it only looks in 3 of my 19 merged chm files, no matter what I search for.   I can tell by the Location column in the search results.
    Is there a known bug in HTML Help search capabilities?

    It would be worth checking that the window and single source layout properties of all 19 projects are setup exactly the same. Also make sure that there are no child CHM files in the project directory before you compile. RoboHelp insists that they are copied in when you add links but they can cause issues like this when you compile. When you compile there should be no other CHMs in the project directory.

  • What is the Pre Trigger for combo item same like Pre-Text-Item.

    Hi Everyone,
    Can anyone help what is the same trigger like Pre-Text-Trigger for combo items.
    Thanks in advance.

    Thanks for your reply Mr. Ammad,
    --vDatabaseValue:=GET_ITEM_PROPERTY('item_name',DATABASE_VALUE);
    This will fetch the value from the database. But what I need is to store the value of the item itself.
    For example:-
    I created one combo box called Item_Code and one text item called Quantity in my form.
    I am choosing the item code from the combo box lets say 'ABC123' then my cursor moved to Quantity.
    Now I am again coming back to the Item_Code to change the value which already I choosed 'ABC123', here I need to store that value 'ABC123' into an global variable before to change.
    Hope you understand.
    Thanks.

  • Horizontal ScrollBar disables for Tab Canvas

    Dear OTN Members,
    I am developing a form with tab canvases.
    If I set Horizontal Scroll Bar property to true, it comes as
    disabled during the execution of the form. I am only able to
    move to the rest of the items through keyboard.
    Thanks in Advance.
    Bye
    Meenakshi Sundaram Ganesh
    null

    Hi,
    not directly. However, if - at runtime - you overlay parts of the tab canvas with a stacked canvas, then you could have this showing a horizontal scroll bar. All you tab canvas content need to be on the stack canvas though.
    Frank

  • Forms 6i, Stacked & Tabbed Canvas- Wierd behaviour

    Hi,
    I am having a wierd problem:
    Scenario:
    I have a datablock of 40 columns.
    I put 1 (say col-1 on page_1 and col-21 on page_2) column each on two different TAB pages.
    I created 2 stacked canvases: page_1_stacked & page_2_stacked
    I put col-2 to col-10 on page_1_stacked
    and col-22 to col-40 on page_2_stacked
    I used the following code to show/hide the appropriate cols/stack canvases when the users changes Tab pages:
    [when-tab-page-changed
    if (:system.tab_new_page ='PAGE_1')
         then
         show_view('PAGE_1_STACKED');
         hide_view(''PAGE_2_STACKED'');
    elsif (:system.tab_new_page ='PAGE_2')
         then
         hide_view('PAGE_1_STACKED');
         show_view(''PAGE_2_STACKED'');
    end if;
    Problem:
    Everything seems to work fine, the stacked canvases show/hide as expected, but --->as soon as I put my cursor in any column on TABBED PAGE (here col-1 or col-21), all the stacked canvases vanish
    -->if as a result of above case where I put the cursor in a tabbed-page col and canvas vanished, I navigate to the next field (which is on canvas), the canvas shows up (which is normal)....but then this canvas wont get hidden with my hide view... and end up with all stacked canvases shown together or none at all
    I have played around with all the properties and am really trapped.
    Please help!
    Thanks.

    Devang, are you aware that if you put the cursor focus in a field, Forms will ignore any show_view or hide_view commands if they cause the cursor to disappear? And if your cursor focus is in a field in a stacked view, hide_view will not work. Forms will not let you hide or cover up what ever item is identified by :System.Cursor_Item.
    I do not know why you need Col_1 or col_21 on the tab canvas. Put them on your stacked canvasses, too.
    Use a when-new-item-instance block-level trigger to determine which tab page should be displayed. If :System.trigger_item = col_1 through col_20, make sure Page_1 is displayed, and for col_21 through col_40, make sure Page_2 is displayed.
    Similarly, use a when-tab-page-changed trigger to move the cursor to the correct canvas. You wouldn't even need to use show_view or hide_view, Forms will do that for you each time you move into an item on either canvas.
    And why are you using two canvases anyway? Since you are using a horizontal scrollbar, why not put them all on a single canvas? (And then you wouldn't need the tab pages.)

  • Tab Canvas on Content Canvas

    i wanted to use a Tab Canvas on my Form
    the Header details are on the Content Canvas (Canvas4). on the same canvas i have inserted a TabCanvas which created a new canvas(Canvas7) which has the details section for the header part.
    when i run the form, i can see only the header part on carvas4.
    i wanted to see the Header and Details of the form...
    how can i do this?

    Am I correct in saying you want the tab canvas to act like a stacked canvas.
    If so have you added it to the view of Canvas4 by performing the following:
    1. View (drop down)--> Stacked Views
    2. highlight Canvas7 and click on ok.
    Alternatively are you performing some kind of navigatoin to an It that is hidden behind the tab canvas?
    If non of this works or is causing you issue. What happens if you use SHOW_VIEW('Canvas7'); and navigate to an item on it in your when-new-form-instance trigger?
    Cheers
    Q

  • Tab canvas and Query...

    I have a form that only has a tab canvas consisting of 5 different tabs (which contain no inter-relationships). The purpose of the form is to allow queries of the 5 different types of information. This is what is driving me crazy...Each time I select a different tab, I must select a field on the tab before "Entering" a query. If I don't select a field, when I "Enter" a query, it will take be back to the last tab where I queried. I would like for the field to be selected automatically, simply by choosing a new tab. How can I do this?

    In WHEN-TAB-PAGE-CHANGED trigger,
    put code similar to
    IF :SYSTEM.TAB_NEW_PAGE = 'page1' THEN
    GO_ITEM ('block1.item1');
    ELSIF :SYSTEM.TAB_NEW_PAGE = 'page2 THEN
    GO_ITEM ('block2.item1');
    etc...
    That should do the trick

Maybe you are looking for