Help using app_standard.event(when-tab-page-changed')

Hello ,
I need to create a form with the following requirements . There is one content canvas which contains a tabbed canvas and on this there are two stacked canvases .
The problem is that when I compile my form and ftp to oebs , I cannot view the tab pages on the canvas .
I see only my the fields displayed in the first tab page without the 'tab pages'.
How do I solve this issue please ?
My when-page-page-trigger contains the following :
BEGIN
     APP_STANDARD.EVENT('WHEN-TAB-PAGE-CHANGED');
if name_in('system.cursor_block') = 'XX_ERROR_MANAGEMENT' then
if not form_success then
-- Revert tab to prior value and exit
set_canvas_property('CAN_INT',topmost_tab_page,name_in('system.tab_previous_page'));
return;
end if;
-- Move to first item on each tab
if target_canvas_name = 'CAN_INT' then
     SHOW_VIEW('CAN_ONG1');
go_item('XX_ERROR_MANAGEMENT.INTERFACE_TYPE');
else
show_view(target_canvas_name);
end if;
END IF;
END;
Any help will be much appreciated . Thanks .

bump

Similar Messages

  • WHEN-TAB-PAGE-CHANGED  TRIGGER

    Hi all
    Is any way to found examples of
    WHEN-TAB-PAGE-CHANGED trigger
    in forms implementations.
    Any references will be very usefull.
    Thanks a lot,
    Gor

    In the the on-line help Forms' doc there is one :
    In case you cannot find it... here it is:
    Examples /* Use a When-Tab-Page-Changed trigger to dynamically**
    change a tab page's label from lower- to upper-case**
    (to indicate to end users if they already have** navigated to the tab page):*/
    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;Greetings...
    Sim

  • WHEN-TAB-PAGE-CHANGED's navigation for 1 table

    i have 1 table e.g. Employees
    It's fields displayed in tab's pages canvas
    i want to navigate through the keyboard from the Last item in page_1 to the First Item in page_2 and so on...
    they r in the same table i want to make it programatically not distributing items manually...
    Any ideas plz.
    Regards,
    Abdetu...

    _1) If the user Select any tab randamly so i should do the following as in:_
    -- WHEN-TAB-PAGE-CHANGED
    DECLARE
         tp_nm VARCHAR2(30); -- tab's name
    BEGIN
         tp_nm := GET_CANVAS_PROPERTY('TAB_CANVAS', topmost_tab_page);
         IF tp_nm ='INFO_PERSONAL'  THEN GO_ITEM ('HR_EMPLOYEES.ID_NUMBER');  
         ELSIF tp_nm ='QUALIFICATIONS'  THEN GO_ITEM ('QUALIFICATION_ID');
         ELSIF tp_nm ='MILITARY_STATUS'  THEN GO_ITEM ('HR_EMPLOYEES.MARITAL_STATUS_ID');
         ELSE null;
         END IF;
         END;
    So, it should work as you wrote. I don't see any problem in this code.
    2) i want to navigate through the keyboard from the Last item in page_1 to the First Item in page_2 and so on...programatically ...Okay, there are three options...
    1. If you set the order of items in object navigator (which you don't want) then by pressing the enter key on last item of tab page it will move to the second tab's first item.
    2. Create KEY-NEXT-ITEM trigger and use the GO_ITEM() and send on next tab page's first item.
    3. Use the navigable property as i mentioned earlier.
    -Ammad

  • When-tab-page-changed trigger PL/SQL

    I have a form which Has two tabbed regions
    Can Anyone please let me know how to write the PL/SQL for the when tab page changed trigger for this scenario.
    I can do it for single tabbed region but cant understand how to do it for 2 or more tabbed regions
    thanks

    You have to check :system.tab_new_page for what tab page you ended up on as the result of the user navigation. See the help file for an example of code.

  • When-tab-page-changed not firing

    I have 2 seperate forms opened on a single page. One displays on left side of screen and has tabs. One display on right side. If I am currently on my right side form (no tabs) and click on a tab on the left side form, it seems the 'When-tab-page-changed; trigger is not firing the first time. I have tried this on 6i and 10g webforms. If I try it on client/server 6i it works. Any suggestions?

    I just tried this with 10gR2 in web. My form with the tabs only get focus and does not call when-tab-page-changed when you click on a tab after returning from the other form.
    A 2nd button press does then call the when-tab-page-changed.

  • How trigger when-tab-page-change will fire explicitley

    Hi,
    When-tab-page-change trigger fires only on explicitly changeing the tab page by mouse or key board, is there any way to call this trigger implicitly.
    Please do not suggest option execute_trigger.
    Thanks,
    Ashish

    you can take a copy from this trigger and put in a procedure in the form and call it in the trigger of when tab page change and when you need.

  • When Tab Page Changed Promble with FMX

    FORM 6i
    Problem is Run Form Exits When Tab Page B is clicked but all other Tab Pages(A,C,D,E) are working fine. There is no exit_form; code in when tab page changed trigger. This particular FMX was working fine in TEST sever over a year.
    What could be the Problem? I have renamed fmx toxyz_old.fmx put new xyz.fmx in test server this one run fine. But when I xyz_old.fmx ( exits when B tab page clicked) funny.
    Did any one of you guys had similar problem? or Could any one please tell me what was the problem?

    thats a problem. First try in this situation is a complete recompile of the form
    ctrl-shift-K

  • How to avoid clear record when tab pages changes

    Hi All
    I am using oracle forms 10g and db 10g.
    I have created a form with four tab pages. Namely "EXPENSE" , "AMOUNT_DETAILS", "SUPPLIER" , "ACCOUNT".
    When i enter a data in page 1 ie Expense and move to next page page2 "AMOUNT_DETAILS", and enters data in page3 "SUPPLIER" and when i come back to page1 "EXPENSE" and also Page2 "AMOUNT" the data get cleared in Tab pages. There is no data again i need to enter the data manually.
    Can any one suggest me how to avoid this clear data.
    Thanks & Regards
    Srikkanth

    Hi,
    Thanks once again for your quick response.
    I have checked it , i was working with oracle apps.Now i have entered all the datas in the four tab and press save button in the screen at that time also the data get cleared.Can you please tell is there any work around for this.
    regards
    Srikkanth

  • Event for Tab Page

    I want to trap the even fired when i try to
    change the Tab Page. I will work fine if i will change the tab page (built in when-tab-page-changed) but as per my knowlege there is no event fired if i click the same tab page twice. i.e. if a tab page named 'a' is pressed and the current tab page is 'b' then the trigger when-tab-page-changed will be fired. But if the current tab page is 'a' and user tries to click on 'a' tab page, which event will be fired? Is there any other way to trap the same? This is required because I am trying to interchange two tab canvases on one content canvas. I am doing this to avoid arrows at right side of the tab canvas incase of multiple tab pages.
    Please take this matter as highest priority.
    null

    Edited by: user9170870 on 01.06.2010 0:27

  • Querying a Form/Tab Page Change/Applicaiton Items

    Hi,
    I have what I think should be a fairly simple thing to do but am struggling. I have an application item that is set when the user logs on. I have several tabs that open various reports/forms. All I want is that when the user clicks on one tab a form is opened but with a record queried back ready for update with the query being restricted with the value of the application item (application item contains primary key). I have tried setting the default value of the primary key to the application item but no luck. If I manually call the form with primary key column argument:value set in the url the record is queried fine, but you cannot set these items on a tab page change, any help greatly appreciated
    Chris

    Hello
    For each form page you could
    Define an unconditional before header page process or a before-header page computation
    Set the page-item corresponding to the PK of the form's base table to have the value contained in the application item
    Varad

  • [svn:fx-trunk] 11112: DatGroup and SkinnableDataContainer dispatch a " dataProviderChanged" event when the dataProvder changes.

    Revision: 11112
    Author:   [email protected]
    Date:     2009-10-23 12:35:31 -0700 (Fri, 23 Oct 2009)
    Log Message:
    DatGroup and SkinnableDataContainer dispatch a "dataProviderChanged" event when the dataProvder changes.  Fixed a ScrollerLayout typo.
    QE notes:
    Doc notes: none
    Bugs: sdk-23489
    Reviewer: Ryan
    Tests run: DataGroup
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/sdk-23489
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DataGroup.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/SkinnableDataContainer.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollerLayo ut.as

  • CSS Browse Tab When Refresh Page Changes Size and Jumps to Right Size

    I'm styling a site and I must have changed something I shouldn't have. 
    Issue:  When I click on the refresh page, the "Browse" tabe in the ribbon on the home page jumps smaller and then back to right size when the page loads.  Anyone have any ideas what could be the culprit?
    If I click on the tabs the size remains static, this only happens when I refresh the page.
    It's really bugging me, any help much appreciated.

    This could be related to the "caret browsing" feature, which moves the cursor through the page when you scroll with the arrow key. Or maybe in this case skips around things in the page.
    You can turn that using either:
    * F7 key
    * "3-bar" menu button (or Tools menu) > Options > Advanced > General mini-tab > ''uncheck'' the box for "Always use the cursor keys to navigate within pages"
    Any luck?

  • Horizontal scrollbar of waveform chart in tab page resets to end when tab page switched

    I've got a VI in LV 2012 with a chart in one of two pages of a tab control.  Whether compiled to an executable or not, when the waveform chart contains data that is no longer being updated and the x-axis range doesn't show the last point of data, the horizontal scroll bar auto-adjusts to show that last point if you switch pages (back to the chart) on the tab control.  I've tried turning off Autoscaling but that doesn't stop the effect. 
    Additional issues: 
    On some of these attempts at reproducing this, the X-Axis will even change scaling, zooming in on the data.
    When data is pushed left by this bug to allow displaying the furthest data point, if the leftmost area of the chart was blank before the data was pushed left, the data pushed left into the formerly blank area will not be displayed.  This happened only when the X-Axis was manually autoscaled prior to pushing the data off the right edge of the chart, and only if the x-axis scale was not changed.  If the tab pages are again switched at this point away and back to the chart, the data re-appears.
    The chart is a stacked plot if that makes a difference,  Also, the tab control is not linked to any event handlers.
    Also, the scrollbar works fine if you scroll such that the rightmost data points are on the chart along with blank area to the right, whether there is more data off the left edge of the chart or not.
    Last, the Y-Axis of each stacked plot is unaffected by any of this.
    I hope this isn't a duplicate - I didn't find it in the forums.
    Thanks,
    Erik
    Attachments:
    Flaw Demo.vi ‏120 KB

    Alex,
    Thanks for the quick response on this.  Again, the charts are awesome except for these minor fiddling details.  Sorry about the terminology confusion - I didn't find anything in the Help system naming the legend buttons, and unfortunately I can't edit the prior post.  When I said "AutoScale LocK" I meant "Scale Lock", and "AutoScale Once" I meant "Autoscale".
    Here are the issues, hopefully clarified:
    1.  If any chart elements have Scale Lock set, pressing the AutoScale button for any plot causes these other plots to autoscale as well.  Note these are not plots with multiple Y scales, they're stacked plots with separate y-scales for each plot.  Changing the "Advanced->Auto Adjust Scales" parameter had no effect on this issue.
    2.  If none of the chart elements have Scale Lock set in the scale legend, pressing the Autoscale button for the X-Axis has no effect if the x-axis was previously set to show all the data history but then panned such that some data falls of either side of the chart.
         This may have been confusing, so here's a breakdown of the steps to re-produce the problem using the VI I previously attached.
    a.  AutoScale all elements of the chart, and turn off Scale Lock on all elements
    b.  Move the data to the right in the chart, so the left half of the chart area has no data (e.g., set the X-Axis range to -5 to 6 seconds)
    c.  Press the X-Axis AutoScale button.  The X-Axis range will not change from where it was in (b).
    3.  The Y-Axis will also auto-scale when returning to the Chart tab if Scale Lock is enabled for the plot with the fix for the x-axis scale in place (restoring the Xscale.Range parameters from a local variable).  If the fix is not performed, this doesn't happen.
    4.  Pressing the Scale Lock button on one of the plots causes the X-Axis scale to be lost IF there is data past the maximum displayed X-Axis range.  It looks like it set the X-Axis to the same problem range as before the fix was in place.  I don't know how to build an event case for this, except for possibly "Mousedown?".
    One more:
    5.  Enabling Scale Lock on any plot auto-scales any other plot that has Scale Lock enabled (assuming the user changed the Y-Axis range from the previously auto-scalled range).  Obviously this is linked to #1 above, but worth noting.
    Thanks again, Alex!
    Erik

  • Stopping tab page change

    Dear members,
    I would like to prevent a user from moving to another tab page under some circumstances.
    Presently, I use "SET_CANVAS_PROPERTY(v_canvas, TOPMOST_TAB_PAGE, :System.Tab_Previous_Page)" to go back to the previous tab page.
    However, I'd prefer to stop the action before the change is done.
    Any idea ?

    Don't know if this helps but... You cannot change tab pages if your cursor focus is within an item that is contained on the current tab page.
    So maybe if the cursor was not allowed off that particular tab page until your conditions were met, that would prevent switching tabs.

  • Tab Page - changes track

    Hi all,
    I am developing a tab form with header like
    <<header info>
    <<field1 >>
    <<field2 >>
    <<field3 >>
    etc
    <SAVE> <RESTORE> etc buttons
    TAB canvas under header..
    <pg1> <pg2 > etc
    Some of the tabs are read only and some tabs have save/restore functionalities.
    some tab pages are having tables in common and some have different.
    My doubt is
    If the user is making some changes in particular tab page and going to next page without saving the changes, I want to display "Do u want to save ur changes ?" msg. If he just viewed the page, I do not want to display this page. So, is there any way to track the changes made by the user based on tab page...?
    If I track form status msg, will it be serve my purpose?
    I thought of having temporary global variable setting to 1/0 in each item's when_validate_item trigger. But I am not satisfied with this solution.
    Any help please?
    Regards
    Priya

    Hi Priya,
    You can use the system variable :system.form_status (in my previous code example I made a mistake using :form_status) to track changes in your tab.
    declare
    l_commit boolean;
    begin
    if :system.form_status = 'CHANGED' then
    l_commit := ask_for_commit; -- your function for displaying the message, returning a
    -- boolean
    if l_commit then
    commit_form; -- by committing your form :system.form_status will have
    -- status 'QUERY'
    else
    raise form_trigger_failure;
    end if;
    end if;
    end;

Maybe you are looking for