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;

Similar Messages

  • 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

  • Problem with two of my business rule triggers

    Good morning every one,
    I have a small problem with two of my business rule triggers.
    I have these tables:
    pms_activity
    csh_cash
    csh_integrate_leh
    csh_integrate_led
    and my process goes like this:
    upon approval of a row in my pms_activity table I have a trigger that insert a row in my csh_cash - and in the csh_cash table I have a trigger that will insert in the csh_ingerate_leh and csh_integrate_led.
    my problem is pms_activity does generate a row in csh_cash but the trigger in the cash does not fire to generate a row in the csh_integrate_leh and led tables.
    I have generated in the following order after I created my business rule:
    I have generated the table from the designer (server module tab)
    I have generated the CAPI from the head start utility
    I have generated the API from the designer
    I have generated the CAPI from the designer
    I have run the recompil.sql
    I have checked that my business rule trigger is enabled and should run on insert and no where restriction
    === this is my business rule logic ======
    l_rule_ok boolean := true;
    begin
    trace('br_csh001_cev (f)');
    csh_gl_pkg.csh_gen_integ_jvs(p_id
    ,p_ref_num
    ,p_own_id
    ,p_trt_id
    ,p_value_date
    ,p_description
    ,p_amount
    ,p_cur_id
    ,p_gla_dr
    ,p_gla_cr
    ,p_gla_pl
    ,p_gla_rev
    ,p_gla_eqt);
    return l_rule_ok;
    exception
    when others
    then
    qms$errors.unhandled_exception(PACKAGE_NAME||'.br_csh001_cev (f)');
    end br_csh001_cev;
    ==== end =======================
    Any help will be appreciated as I have struggled with this for two days.
    Thanks

    hmmm...
    Try resetting it again and restoring with the same backup file...
    Does the phone work properly once you've reset it before you try restoring? A lot of people here have experienced problems restoring from backups... could be worth forgetting about it and starting from scratch.
    You could try contacting your nearest Nokia Service Centre (www.nokia.com/repair) and see if they can do anything - it may need the firmware reinstalling or upgrading... possibly... give them a call though and see.
    Nokia History: 3110, 5110, 7110, 7110, 3510i, 6210, 6310i, 5210, 6100, 6610, 7250, 7250i, 6650, 6230, 6230i, 6260, N70, N70, 5300, N95, N95, E71, E72
    Android History: HTC Desire, SE Xperia Arc, HTC Sensation, Sensation XE, One X+, Google Nexus 5

  • Discover group problem with cross tab report

    Hi, I'm working on a cross tab report in discoverer 4i and I'm having a problem with two of the colums. I'm doing a count on one field but because they are called something different they are being shown as two seperate columns rather than 1.
    I have one called 101 -AVG and another called 101-AVG. My condition pulls every result back that starts with 101 in the table. So because in the table the values are different it breaks the count into totals for 101 -AVG and 101-AVG.
    Is there some way I can group these results together into one field?
    thanks,
    Ian

    Pitson,
    better to ask this question in the BI Publisher Forum than here in the Oracle Reports Forum:
    BI Publisher
    Regards
    Rainer

  • Problem with switching tabs in top level navigation for Roles

    Hi,
    I've created two tabs (based on two roles) in the portal top level navigation menu. When clicking the first one it opens as it should. Then when clicking on the second tab it will not open, instead the first tab open up again, it sort of switches back automatically.These  two roles  are  basically consists of worksets and iviews(accessing to r/3).
    Does anyone have any expericene with this type of problem?
    please  suggest me
    Thanks
    Aravinda

    Hi Aravinda
    Please check this link
    Re: Problem with switching tabs in top level navigation
    Regards
    Geogi

  • I have a problem with two PDF's when trying to open them through a link on a web page. The two PDF's open fine with Adobe on my own PC and on the server I have copied it to but when they are opened through a link on a web page (pointing to the server wher

    I have a problem with two PDF's when trying to open them through a link on a web page. The two PDF's open fine with Adobe on my own PC and on the server I have copied it to but when they are opened through a link on a web page (pointing to the server where the PDFs open fine) I get an error 'There was an error processing a page. Invalid function resource' The other one just doesn't open at all. Can anyone help with this please?

    Hello,
    Are the pdf linked correctly in the website? Is this a public website? If yes, please post the link here.
    ~Deepak

  • Problem with two monitors while using Photoshop, windows move from 2nd screen to 1st screen.

    Problem with two monitors while using Photoshop, windows move from 2nd screen to 1st screen.
    I saved a new workspace and it did not help.
    No problem before I went to Maverick.

    I found the fix, go to System Preferences and open Mission Control and uncheck the box to keep monitors as they were (When switching to an application...........)

  • Problem with Cross tabs

    I have a problem with cross tab.
    When I do grouping on date according to month and summarize the units I am getting the result as 58
    while I do grouping without the croos tab generally in the details section I get the result to be 64.
    I am not able to understand where is the problem.
    Even when I write a query i get the answer as 64.

    Hi,
    Summarizing with a Cross-tab and creating a summary of a group are one and the same; I mean, the summary results are always the same.
    Could you check the summary operation in the crosstab, could you confirm if it is not count or something else?
    Also, create a summary and place it on the Group Header/Footer. It should be same as the Crosstab results for the that particular group.
    -Abhilash

  • How to  create a selection screen with two tab strips

    Hi Experts,
    I need to craete a selection screen '100' with two tab strips, in the 1st tab strip i need create some select options as subscreen and in other tabstrip i need to call the subscren '4000' of the program 'SAPLCTMS' . i need to call this screen as selection screen from the zprogram. please help me out.
    Thanks in advance...
    Sarath...J

    Hi,
    I have developed some code.
    It just displays a table control and after entering the values init, upon hitting the return button, the values will be put into table itab. Have a look and make necessary changes as you see fit.
    *& Report  ZMADHU_TBCNTL
    REPORT  zmadhu_tbcntl.
    DATA: BEGIN OF itab OCCURS 0,
         sel TYPE s_flag,
         matnr TYPE matnr,
         ersda TYPE ersda,
         ernam TYPE ernam,
      END OF itab.
    CONTROLS: tab_cntl TYPE TABLEVIEW USING SCREEN 100.
    *START-OF-SELECTION.
    CALL SCREEN 100.
    *END-OF-SELECTION.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'TABCNTL'.   "pf status
    SET TITLEBAR 'xxx'.
      CASE sy-ucomm.
        WHEN 'BACK' OR
             'CANCEL' OR
             'EXIT'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  ITAB_MODIFY  INPUT
          text
    MODULE itab_modify INPUT.
      CASE sy-ucomm .
        WHEN ' '.        " When pressed enter
    if itab-sel = 'X'.
          MODIFY itab INDEX tab_cntl-current_line.
          APPEND itab.    " append lines to internal table
          CLEAR itab.
    *endif.
      ENDCASE.
    ENDMODULE.                 " ITAB_MODIFY  INPUT
    *Screen 100 flow logic.
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      LOOP AT itab WITH CONTROL tab_cntl CURSOR
      tab_cntl-current_line..
      ENDLOOP.
    PROCESS AFTER INPUT.
      MODULE select_data.
      LOOP .
        CHAIN.
          FIELD itab-matnr.
          FIELD itab-ersda.
          FIELD itab-ernam.
          MODULE itab_modify ON CHAIN-REQUEST.
        ENDCHAIN.
      ENDLOOP.
    MODULE USER_COMMAND_0100.
    Hope it will helps to u.
    Thanks,
    Shankar

  • Little problems with two sensors

    Hi
    I've got a problem with two sensors.
    First, the luminosity sensor. I'd like to set the brightness to a fixed value. It would not vary from darkness to bright sunlight.
    Then, when i'm typing in landscape mode, it often switches back to portrait mode, wich make me terribly angry as i lose too much time.
    How can i solve these two problems ?
    Is there a special app?
    Last, but least, does anyone know if an app that would allow to take HDR/exposure blending pictures exist ? It'd take 3 to 5 photos with different exposures, and if it merged them to a good tonemapped picture it would be perfect.
    Thanks

     The light sensor can't be set to a fixed permanent value using the phones default settings, I'm afraid. You can only adjust it's sensitivity. However, some users have reported using an app to keep the screen set at maximum brightness.
     The motion sensor which switches the phone screen orientation has become more sensitive after the recent PR 1.1 update, so not a lot can be done about that either, apart from trying to hold the phone as steady  as possible when using it.
    Finally, there isn't any HDR available for the N8 at this time, nor is there any setting to increase the exposure time to something like a second, which would be a nice feature to add to  a great camera.
     All the best.
    Ray

  • Problem with two finger scrolling on s440

    Hello everyone
    I have a S440 (touch version) and some Problems with two finger scrolling on the touchpad.
    First, it isn't smooth, i.e.. If I move my fingers it only starts scrolling after a second or so, basically when I've already stopped (unless I move very slow). It then makes up for the lost time by scrolling very fast.
    The more serious problem (that makes it practically unusable) is that it randomly jumps back up, often to the top of the page/document, sometimes just a page or so.
    The problems are worst with firefox and acrobat, with IE and the Microsoft reader there's no response time problem but the jumping upwards still occurs.
    The problem is there with the preinstalled Windows 8 as well as my own Windows 8 Pro (with the original Lenovo drivers). Scrolling with the Trackpoint and an external mouse work fine, as well as scrolling via the touchscreen.
    Does anyone have any suggestion if/how I can fix this?

    I also have a S440 (non-touch screen), the scrolling on the touchpad worked perfectly when I bought it, no jumping, and scrolling perfectly smoothly comparable to an Mac. But after an upgrade to windows 8.1 which broke many things ( despite upgrading all drivers), I reset my thinkpad which brought it back to windows 8, everything working normally again except the two finger scrolling which is no longer smooth (moves incrementally now), and likes to jump randomly up or down the page, (not always, but enough to make it irritating. I notice this mostly with google chrome and adobe reader as these are the apps I use most frequently.
    So my questions is what drivers or settings do I need to bring the scrolling back to the configuration it was when I purchased my S440? My device manager says I'm running thinkpad ultranav with Synaptics driver version 16.6.4.38
    Cheers,
    Paul

  • 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

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

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

  • Problem with designing a table in sap form

    Hello Gurus, i am trying to modify a sap form, i have to add to the table in the main window a new column. In the second column i have a description text Char lenght 45, the problem is that the rest of the columns after the second column get disorded, i tryed to use CONDENSE on the text variable but it won`t help. I need to line up the rest of the columns. Please help !

    Hi Ioan,
    You will see ",," between each column. These represent a tab and are defined in the paragraph definition. Probably you new column is too wide to fit into two tabs. So go to the definition of the paragraph and adjust the tab settings.
    Regards,
    John.

Maybe you are looking for

  • PO Workflow report

    Hi SAP exprts, We are using Standard workflow to approve PO's. Is there a report in workflow to show me where all the PO's are currently in who's inbox? Thanks Alex

  • Want to Learn about J2ME

    I am begineer in J2ME I have a good knowledge of J2SE and some of J2EE. so I want to learn about J2ME

  • Problem in JSF tag h:selectOneMenu

    i am getting an error javax.servlet.ServletException: Value binding '#{DealerDetails.repIndicator}'of UISelectItems with component-path {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /jsp/dealer_Details.jsp][Class: javax.faces.com

  • How to enable fast user switching in OS X 10.8.1?

    How do I enable fast user switching in OS X 10.8.1?

  • Number of actual state of multi-state objects

    Hello, is it possible create automatic number of actual state and automatic total number of states in mulsti-state objects? Thank you for your answer. Martin