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

Similar Messages

  • Execute query for oracle forms tab pages

    Hi Guru's,
    Please help me how to work on execute query with forms tab pages. I have created three tabs like A, B & C in one canvas.
    I have three tables and I have created three tabs in one canvas. And there is no master detail relationship with these three tables.
    I have written the code in form level - when-new-form-instance like do_key('execute_query') but when i see at run time its executing for first tab A not for tab B or tab c.
    How to get the data or execute the data in tab B and tab C.
    Thanks
    RS

    1- create a block blk_1 add items item_1,Item_2 and Item_3.
    2- create main canvas main_canvas. type Content.
    3- create tabcanvas TABCANVAS . Type Tab
    4- Create tabpages tb_1,tb_2 and tb_3.under tabcanvas
    5- create stack1,stack2 and stack3.type stack.
    6- put Item_1,Item_2 and Item_3 under stack1,stack2 and stack3.
    add when tabpage change trigger.
    Declare
    V_TapPage_Name VarChar2(100);
    Begin
    Show_View('TABCANVAS');
    V_TapPage_Name := Get_Canvas_Property('TABCANVAS',TOPMOST_TAB_PAGE);
    If V_TapPage_Name = 'TP_1' Then
    Go_Item('Blk_1.ITEM_1');
    Show_View('STACK1');
    Hide_View('STACK2');
    Hide_View('STACK3');
    ElsIf V_TapPage_Name = 'TP_2' Then
         Go_Item('Blk_1.ITEM_2');
         Show_View('STACK2');
    Hide_View('STACK1');
    Hide_View('STACK3');
    ElsIf V_TapPage_Name = 'TP_3' Then          
         Go_Item('Blk_1.ITEM_3');
         Show_View('STACK3');
    Hide_View('STACK1');
    Hide_View('STACK2');
    End If;
    End;
    Edited by: kingadmin on 20/04/2011 02:15 ص
    Edited by: kingadmin on 20/04/2011 02:16 ص

  • 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

  • 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 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

  • 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.

  • Forms Personalizations- Tab Page Change

    Hello all,
    Is there a way to use Forms Personaizations to activate a specific TAB page in a block in Forms (EBS 11i10 or 12)? Sometimes a block spans across multiple tab pages and even the focus is on a specific field, the corresponding tab page does not open.
    Please let me know if you have any ideas on how to accomplsish this. If there is a different forum for Forms Personalizations, please let me know so I can repost the question there.
    Thanks,
    Nat.

    Nat,
    I did not try this myself, but did you check "Forms Personalization" documents (especially the limitation document)?
    Note: 279034.1 - Information About the Oracle Applications Form Personalization Feature in 11i
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=279034.1
    Note: 468657.1 - How To Do Forms Personalization
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=468657.1
    Note: 420518.1 - Limitations of Forms Personalization (under [6] Certain objects may not be available to user to change, or cannot be validated)
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=420518.1
    Regards,
    Hussein

  • 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;

  • 11g Forms Tab-Page Navigation

    I am using Forms 11g on Solaris.
    A main navigator form opens another form which has a content canvas, tab-page canvas and (3) stacked canvases.
    The problem I am having is with tab-page navigation.     CTRL+TAB ( next ) and CTRL+SHIFT+TAB ( previous )
    As long as I do not initiate navigation from an item on a stacked canvas, navigation is as expected ( between tab pages only ).
    However, navigating from an item within a stacked canvas causes navigation to the parent form.
    Repeating the tab navigation keys from the parent form returns to the called form.
    Note that both key-combinations simply toggle back and forth.
    I have found no documentation on tab-page navigation so any help / insight is greatly appreciated !
    Mike

    Hi Soofi !
    Changing block order in the called form does not affect the navigation between tab pages.
    Note in my question that the resulting undesired navigation is to and from the calling form ( which only has one block ).
    Navigation between items and blocks works as expected.
    To reiterate -
         The only navigation that fails is when I attempt to CTRL+TAB or CTRL+SHIFT+TAB to another tab page from within an item on a stacked canvas.
         Attempting this navigation results in moving the cursor focus to the calling form.
         Repeating the attempt from the calling form moves back to the called form.
         None of your methods mention navigation between forms .
    Thanks for your interest.

  • Forms Tab-Canvas, change TAB with alt +Number on keypad

    I have a forms module with a tab page canvas.
    Navigation from tab-page to tab-page is possible by using <alt>+"Number".
    But changing the tab page wiht <alt>+"Number on the keypad "is not possible.
    How can I manage this?
    Regards

    Good morning,
    Here is an [url http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00000520.html]ASCII Key Chart that I have used. It has the return codes for the 10-key pad among other keys. I have found it useful in several cases.
    Good luck,
    Don.
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! :)

  • Adding Tab page in to  Item Master Data

    Dear,
    In this momento I can do application external through SDK to SBO. but How can I do adding Tab Tag Page in to Item Master Data,
    Can you explain me How I do?
    Very thanks.
    Regards

    Hi!
    You need add one tabPage in Item Form rigth?
    You can used the function:
    public void AddTab(string formID, string tabName, string tabNum, string tabCaption)
                try
                    Form oForm = oApp.Forms.GetForm(formID, 0);
                        Item oItPosition = oForm.Items.Item(tabNum);
                        Item oItTbTest = oForm.Items.Add(tabName, BoFormItemTypes.it_FOLDER);
                        oItTbTest.Top = oItPosition.Top;
                        oItTbTest.Height = oItPosition.Height;
                        oItTbTest.Width = oItPosition.Width;
                        oItTbTest.Left = (oItPosition.Left + oItPosition.Width) + 20;
                        oItTbTest.AffectsFormMode = true;
                        Folder oTbTest = (Folder)oItTbTest.Specific;
                        oTbTest.Caption = tabCaption;
                        oTbTest.ValOff = "0";
                        oTbTest.ValOn = "1";
                        oTbTest.GroupWith(tabNum);
                catch (Exception e)
                    oApp.StatusBar.SetText(e.Message, BoMessageTime.bmt_Medium, BoStatusBarMessageType.smt_Error);

  • 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.

Maybe you are looking for

  • Error when burning DVD

    I just bought a Mac a few weeks ago, and have had some trouble burning DVD's. I have a G5 running 10.3.9, with a Pioneer Superdrive. I try to burn an image in Disk Utility, but get the error message "The disc is reserved for exclusive use by another

  • JPA lazy loading with Firebirdsql

    I'm trying to use FetchType.Lazy in @OneToOne associations, with a firebirdsql database. Toplink JPA generates the sql query as follow: SELECT FIELD1, FIELD2, _TOPLINK_FIELD3_VH, ... FROM TABLE..... This select gets this error msg: Exception [TOPLINK

  • Modules with Halo Theme causes errors in other modules with Spark theme

    Hi, We have a large application which calls several modules, some old and some new. Most modules and the main App are using only MX components and were styled based on default mx theme, thus we want to compile these modules with the flag to use the o

  • Oracleoem: ERROR

    Hi , While connecting to DB (11.1.0.7) iam getting this Error. oracleoem: symbol lookup error: /u01/app/oracle/product/11.1.0/db_1/lib/libnnz11.so: undefined symbol: nzdacvalue Please give some solution Thank U...

  • 5.1 mix AND Stereo mix on dvd

    I have a project that has a 5.1 mix (i've already made an ac3 file through compressor) and also has a 2 channel stereo mix. I'd like them both on the dvd so if someone doesn't have 5.1, they can watch in stereo. Is there anyway to have it automatical