Forms 6i - Two Tab Canvases

Hi. I have a form with 2 canvases of the Type 'Tab'. The first is named 'top canvas' and second is named 'bottom canvas'. Each tab canvas has 3 tab pages under it.
My problem is that when the user clicks one of the 6 tab pages I need to determine which tab page was clicked.
I was able to do this when I had only one canvas of the Type 'Tab' by doing the following:
tp_nm := GET_CANVAS_PROPERTY('TOP_CANVAS', topmost_tab_page);
tp_id := FIND_TAB_PAGE(tp_nm);
tp_lb := GET_TAB_PAGE_PROPERTY(tp_id, label);
IF tp_lb LIKE 'Details%' THEN
go_item('to_do_mteam.hide_cursor');
ELSIF tp_lb LIKE 'Droppers To Call%' THEN
go_item('dropper.hide_cursor');
END IF;
But since I now have 2 canvases of the Type 'Tab' I can't hard code the canvas name (e.g. 'top_canvas') like I did above because the tab page could be on either the 'top_canvas' or the 'bottom' canvas. And BOTH canvases will always have a topmost_tab_page.
Can anyone advise me on how to solve this issue? Any help would be greatly appreciated!

:system.event_canvas
Not documented. See thread here:
Re: System.Tab_New_Page - with multiple tab canvases

Similar Messages

  • Problem with Two tab canvases in a form

    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;

    Thanks Craig. You made it happen..!! Below code is working fine for me.
    IF :SYSTEM.tab_new_page = 'LINES' THEN
      go_item('shipment_summary.shipment_reference');
      show_view('CAN_LINES');
      show_view('CAN_SCROLL');
    ELSIF :SYSTEM.tab_new_page = 'ATTRIBUTES' THEN
      go_item('shipment_summary.shipment_reference');
      show_view('CAN_ATT' );
    ELSIF :SYSTEM.tab_new_page = 'INVOICE_SPLIT' THEN
    END IF;

  • How to export data to 2 tabs in excel from form with two tabs

    Hi friends
    i am now faceing a prbs of exporting data to excel to different tabs.
    ex:- i have a multiple records form with two tab . i want to export data corresponding to excel as two tabs.
    can anyone suggest me how can i export data to 2nd tab.. is any functions or procedure to help me .

    Hello,
    at Re: How to save a query result and export it to, say excell? you can find links to different solutions. At least the packages behind second and fourth link support more than one worksheet. And both describe how to do it.
    Regards
    Marcus

  • System.Tab_New_Page - with multiple tab canvases

    I'm not sure if this is a bug or not, but here goes. Forms 10.1.2.0.2
    I have a form with TWO different tab canvases - Orders_TC and Lines_Tc (Orders Tabbed Canvas and Lines Tabbed Canvas). The Orders_TC has 3 pages - page1, page2, page3 and the Lines_TC has 5 pages - page1 through to page5.
    Now - in the When-Tab-Page-Changed trigger, inspecting System.Tab_New_Page simply gives me "PAGE2" - but - WHICH "PAGE2" - how do I determine if it was PAGE2 of the Orders or Lines canvas?
    Obviously employing some naming standard on the tab pages would resolve the problem, however, I would have expected System.Tab_New_Page to return either Orders_Tc.Page2 or Lines_Tc.Page2.
    Am I missing something? Or is there a way to determine which PAGE2 it is?
    Any help appreciated.
    Regards,
    Bren

    How about :system.event_canvas
    I just tried it and it works in 6i forms. Not documented in the help, but seems to work. I just guessed at the name.
    Returns the name of the canvas that the tab page was changed on.
    --pat                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • # of tab canvases dependant on the # of groups that come back from a query

    Hi,
         I'm trying to create a dynamic creation of blocks, and tab canvases dependant on the number of groups that come back from a query. If 4 groups come back then I desire 4 tabs with the appropriate data in each tab.

    Basically Forms is not intended to build screens programmatically but it is possible to kluj it. Here's what you could do.
    Create a form with (say) four tabbed canvases, enough to fill the display. Each canvas has its own block. Then you have video style buttons - Fwd, Bk, FFwd FBk - and just scroll the blocks across when the user clicks the button.
    Did you enjoy the use of the word "just"? Sounds easy, doesn't it? In practice, what you need is an array that ties the filter criteria to the canvas number. Then you shuffle the canvases by applying the appropriate WHERE clause using SET_BLOCK_PROPERTY and then executing a query.
    The problems with this are obvious and the same as any dynamically generated UI. It will perform badly (each navigation to a canvas will trigger a fresh query, plus there's the overhead of managing the stack). Also it is fragile: there's lots that can go wrong.
    So you need to ask yourself what it is you are hoping to achieve. Can you deliver the same business function some other way? As another poster has pointed out, this is just a glorified master-detail form - the filter criterion being the master. Building this as a classic two block master-detail Form is more straightforward and more robust.
    Regards, APC

  • Calendar doesn't work with tab canvases

    If you generate a form (at V6) which has tab canvases on it, & also has a date item with LOV against it, you hit a problem with Headstart code's handling of the canvases. If you use the calendar LOV, when the calendar pop-up is de-activated, the tab canvases have disappeared from the main window.

    Lauri
    I went back & had another look at this, & realised that it's the same forms problem I was hitting with the combination of multi-select LOV and spreadtables. It's only happening when the calendar LOV is fired on a block which has a spreadtable, & where the next block on the form is a tab canvas. Is there a bug number for this problem, so I can track it? Thanks for the solution you provided earlier, but we're doing 100% generation here so I'd rather not be making post-generation changes to code.

  • How to print a smart form in two diff languages runtime

    Hi friends,
    we have a requirement to print a smart form in two langauges one in english
    and other in Spanish those selection has to given by check box condition.
    pls send some stuff .
    Thanks & Regards
    Jagadeeshwar.B

    hi! Jagadesh
    1. Create two different Smartforms
    2. In Form Atributes Option -->General Attributes -->Language Tab -- there is a Optiona to select a Particular Language.( To select Language) there <b>select the EN</b> for 1st optin and <b>ES for Spanish</b>, Normally it will be in To all Language.
    3. Create a report with Radiobutton (bz Check Box have an attributes to check both the Options)
       when option1 = 'EN'.
            call form1 with EN language
      when option2 = 'ES'.
           call forms 2 with ES Language.
    Reward me if its useful.
    Regards,
    Nagulan

  • How to create a form with two column headings

    I have a business request to create a data form to handle multi year data by month. This will require creating a form with two column headings - with the first row be Year and second row be month, and data entry will begin in the third row and down.
    I can do multiple row headings in the layout design, but somehow can not get it to work for multiple column headings.
    Thanks in advance

    If you're in the "Layout" tab, simply pull the "Years" dimension and the "Period" dimension into the Column section. Planning can be a little picky about where you "drop" the dimension as you're dragging and dropping it. Drop it in the cell directly under the letter name of the column. Other than that, there's not much to it.
    Hopefully this helped,
    - Jake

  • Spread table on tab canvases doesn't work

    Hi,
    I've got a form with a master/details block.
    The detail blocks are on tab canvases and are multi-records. I'd like to have spread tables, but it doesn't work.
    Is it a normal behaviour ?
    I'm working with Designer 6.0.3.5.0
    Thanks for your help
    Dominique

    Are you really sure?
    Once I had to generate a Form with such a requirement. On Metalink I found that it was possible with 6i.
    Eventually, the requirement was changed, so I didn't generate the Form and have tried it myself.
    regards,
    Harm

  • Tab canvases

    Hi, Have not used Oracle Forms for awhile. Can someone tell me how to create multiple tab canvases.
    Thanks,
    nancy

    No need to reply. I have the old version of forms. DBA is updating for me now.
    Thanks,
    nancy

  • Is there a way to create form fields to tab into and type and or drop down selection fields in pages as you can with microsoft word?

    is there a way to create form fields to tab into and type and or drop down selection fields in pages as you can with microsoft word?

    No

  • How to create a report in excel format having two tab

    Hi All,
    I have Business requirement where customer wants to create a report in excel format having two tab.
    Please let me know if it is possible?
    I am using 10.1.4.3.2 version of BIP.
    Thanks & Regards,
    Edited by: 862749 on May 20, 2013 7:36 PM

    I have Business requirement where customer wants to create a report in excel format having two tab.
    Can anybody suggest if it is possible in BI Publisher or not?yes
    look at excel template
    also you can use xsl-xml or xsl-fo template
    check it for your requirements

  • Cancelled contract lines are populating in the SR form's subject tab when clicking on 'Get Contracts' button

    Cancelled contract lines are populating in the SR form's subject tab when clicking on 'Get Contracts' button. But user says, it should not be populated. What could be the reason? Please suggest.
    I have told the user :
    "In the case of a renewed contract, if the service request is logged during the effectivity of the original contract (which is now Expired), the original contract will be retrieved. If the service request is logged during the effectivity of the renewal contract then only the renewal contract will be retrieved.
      Contract Entitlement on Subject tab is based on Contract Start and End dates. All the contracts i.e. expired, active, cancelled will appear until the end date. As we can see the contract ES-10165 is end dated on 09-DEC-2014, hence it will appear on the subject tab as per the functionality."
    But the User is saying:
    "Contract coverage is clear to be based on dates, and that is quite clear to me as well… the problem comes with the different statuses.
    A SR can be associated to an “EXPIRED” contract line because the SR creation date could be falling between coverage line start and end dates, but can never be related to a “CANCELLED” line.
    This “CANCELLED” status means that the line is not valid for the contract, so if it is not valid for a contract, it is not valid for referencing a job…and this is only creating wrong costs associations."

    Hi Sudhakar,
    Drop inline message components for each of the textFields and the textArea and then run the application. You could also use a message list component but inline message components for each of the input components would give you a clear idea if any errors are occuring. In case any such errors are indeed occuring then the situation can be analysed further.
    Hope this helps
    Cheers
    Giri :-)

  • Firefox 12 is very slow to load pages and if two tabs are opening it lags.

    Firefox 12 is very slow to load pages and if two tabs are opening it lags. I've tried everything (e.g virus, defrag, I've created a new profile in "run", etc). I've had my router/line etc all checked and after 2 weeks of cleaning/testing etc its all pointing to Firefox as the problem. Please help as it's driving me nuts.

    I have the exact same problem.
    Not only does it load pages very slowly, sometimes the page will stop for a good 45 seconds and stop loading, only to finish it much later.
    Something is wrong with Firefox 12, it shouldn't be this slow.
    How is that each version is progressively worse than the one before it?.
    Stop releasing so many versions Mozilla, release one that works and build from there.

  • Firefox opens automatically with two tabs, one of which will never close and can't be used, how can I fix this issue?

    I have a Macbook Pro running 10.6.8 and Firefox 5.0.1
    I have had this issue for a while and was hoping that the newest release would solve my problem, it didn't. I looked online for solutions, none of which fixed the issue
    *Some pointed the finger at the extension Invisible Hand, which I never had.
    *Some suggested putting Firefox into safe mode, this solves the problem, but since it stops me from installing any extensions this is not a workable solution.
    *It was advised that I create a new profile, which I tried, this did absolutely nothing, the blank page appeared again after a short period of time and still can't be closed or clicked on, and this was before I added any add-ons. Which leads me to believe that the issue lies with Firefox.
    Though on a side note when I quit Firefox, with only my current tab and the "tab that can't be closed" still open, Firefox notices that there are two tabs open and warns me that I am going to be closing both. The only work around I have found is to set the "tab that can't be closed" as an app tab for the current session, but when I open Firefox the next time, the app tab which was the "tab that can't be closed" can now be closed and a new "tab that can't be closed" appears as if it were a new blank tab, just like every other time I open Firefox.

    I started in safe Mode. I have the default theme. Starting in safe mode still gave me the same problem. I went back to the normal Firefox and still had the same problem. Yesterday I restarted my computer for 11 Windows updates. I am not going to spend all day starting and restarting my computer and removing my History and whatever else. Firefox should have a direct contact to it's users, to assist them instead of having their users work for them as forum responders and trouble shooters. This has already taken up way too much of my time.
    I will say in normal Firefox the additional NEW TAB had no URL in it, but it did have the 12 icons on the page. In Safe Mode it had a URL that began with Chrome and it had a blank page, it didn't have the 12 icons as in normal mode. I don't have anything Chrome on my computer.

Maybe you are looking for

  • LR3 Fix for Crash when using Develop Module

    Adobe tech provided the following fix for my system which crashed when switching to the Develop module. This is the  response I received from Adobe Tech.   Recreating the preferences file corrected the problem. Their help was right-on and appreciated

  • Credit Card payment method

    Hello, I have been using Mixradio. It's a great app. Purchased some albums too with my credit card. Since yesterday I can't buy anything however the card is right. Could you please help? Thanks Viktor Moderator's note: New thread created. We also pro

  • Sub-contract B/W comny code to cmpny code..?

    Hi all Can anybody explain me about compant code to company code sub-contracting process.. what  are the documents ll be generated during this process. please explain me with example . Thanks sap-mm

  • Syncing pdf stored in ibooks

    Hi I broke the glass in my ipad and opted to replace it with ipad4.  I am having trouble syncing my pdf files that are stored in ibook.

  • Trying to display image in jscrollpane

    Hi, I am trying to get an image to display in a JScrollPane. The image is bigger than the allotted size so scrollbars are set to appear. The scrollbars appear and are scrollable but the image is not there. I know there have been other posts regarding