1. Get rid of all advertisements and get unlimited access to documents by upgrading to Premium Membership. Upgrade to Premium Now and also get a Premium Badge!

Problem with Two tab canvases in a form

Discussion in 'Oracle Forms and Reports' started by pramod.sramesh, Jun 18, 2013.

  1. pramod.sramesh

    pramod.sramesh Active Member

    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    80
    Hi Experts,

    I am working on Oracle forms 10g (OS: Windows7) from last 1 year. I have got a requirement to create a form with one tab canvas CAN_TAB (with 2 tab pages) in main page and a pop up tab canvas ASN_SPLIT_TAB(with 2 tab pages). Now the problem is whenever we click on tabs it will fire WHEN-TAB-PAGE-CHANGED trigger and executes the complete code. As a result even if i click a tab page in CAN_TAB canvas it will fire for ASN_SPLIT_CANVAS as well. Check the below code (WHEN-TAB-PAGE-CHANGED). Now i have to differentiate between two tab canvases so that i can use IF-ELSE statement to overcome this problem. Please share your useful comments.

    BEGIN
    Lv_Toppage := Upper(Get_canvas_property('CAN_TAB',Topmost_Tab_page));
    if Lv_Toppage = 'LINES' THEN
    go_item('shipment_summary.shipment_reference');
    show_view('CAN_LINES');
    show_view('CAN_SCROLL');
    elsif Lv_Toppage = 'ATTRIBUTES' THEN
    go_item('shipment_summary.shipment_reference');
    show_view('CAN_ATT' );
    elsif Lv_Toppage = 'AUDIT' THEN
    go_item('shipment_summary.confirmedby');
    show_view('AUDIT');
    end if;

    Lv_Toppage := Upper(Get_canvas_property('ASN_SPLIT_TAB',Topmost_Tab_page));
    IF Lv_Toppage = 'INVOICE_SPLIT' THEN
    show_view('ASN_SPLIT_STACK');
    go_item('ASN_INBOUND_CATEGORY_SUMMARY.brand_representitive');
    ELSIF Lv_Toppage = 'SUPPLIER' THEN
    go_item('CONTROL.cancel_but');
    END IF;
    hide_view('ASN_SPLIT_STACK');
    END;
     
  2. ac.arijit

    ac.arijit Forum Advisor

    Messages:
    217
    Likes Received:
    22
    Trophy Points:
    280
    Location:
    Kolkata, India
    Hi [is-your-name Pramod?],

    I'm a li'l confused by the below statement:
    pop-up and tab canvas are two very different objects.

    Anyways, AFA i got your requirement.. i'd suggest u use ":SYSTEM.TAB_NEW_PAGE" in your "WHEN-TAB-PAGE-CHANGED" trigger to get the new tab page name on which the control is navigated.

    Then u can put your conditional logic based on this value.
     
    pramod.sramesh likes this.
  3. pramod.sramesh

    pramod.sramesh Active Member

    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    80
    Thanks arijith, its working for me. a pop up means that 2nd canvas pop ups when we press a button.
     
  4. ac.arijit

    ac.arijit Forum Advisor

    Messages:
    217
    Likes Received:
    22
    Trophy Points:
    280
    Location:
    Kolkata, India
    Hi,

    Plz don't use wrong nomenclature or else u're gonna have a hard-time in not only this but various forums among technical folks and getting support even from metalink.

    Canvas doesn't pops up, it raises on entry. And pop-up in itself is another object (which has a completely different functionality)

    Cheers for u've got what u wanted !! :hurray