Show_view

Hello
i have 3 content canvases 'MAIN_TAB_CANVAS' & 'TABS_CANVAS' on MAIN_WINDOW
and 1 canvas 'SURVEY' on window1
when calling the 'SURVEY' canvas it displays successfully but on hiding it ...
and showing the 2 canvas 'MAIN_TAB_CANVAS' & 'TABS_CANVAS' it crushes
b u t if i put the pause an Acknowlege msg pop up & says Acknowlege and displays everything correctly
hide_view('SURVEY');  -- canvas 2
show_view('MAIN_TAB_CANVAS');
go_block('PJ_PROJECTS');
GO_ITEM ('PJ_PROJECTS.PROJECT_ID');
PAUSE;
show_view('TABS_CANVAS');
go_block('PJ_CR_OLD_ITEMS'); 
GO_ITEM ('PJ_CR_OLD_ITEMS.ITEM_NUMBER');pls help me
Regards,
Abdetu...
Edited by: Abdetu on Dec 14, 2010 8:03 AM

One common problem I see in Forms coding is that too many times developers rely on implicit behavior and refuse to add the actual code required to perform some task. Another common problem is backward logic. Regardless of what does or does not work, it only makes sense to code logically. This is a good example. Knowing that Forms relies almost exclusively on cursor positioning in order to execute tasks, doesn't it make sense that the form must always have a place to locate the cursor?
Notice in your code how you first HIDE the current view before showing the next. Consider what must happen internally when done this way... If the cursor is currently on your "Survey" canvas and you decide to close it, the cursor becomes abandoned. This forces the Forms internal processing to now have to waste time trying to determine where to safely move the cursor. Often, this becomes problematic, as you seem to have now noticed. The safe and logical way of closing and opening a canvas is to consider the cursor at all times. So, I would argue that the preferred way of moving from canvas to canvas while hiding one would be something like this:
show_view('MAIN_TAB_CANVAS'); -- First, display the target
GO_ITEM ('PJ_PROJECTS.PROJECT_ID');  -  Move the cursor to the target location
hide_view('SURVEY');  -- Hide the original canvas
SYNCHRONIZE; -- optional as neededThe behavioral appearance may change slightly as a result, but once tweaked properly, the application should likely perform in a more stable manner.
Having said that, you may be hitting a bug. Be sure that you are using the latest patched release. The latest supported releases are:
10g Release 2 - 10.1.2.3
11g Release 1 - 11.1.1.3

Similar Messages

  • Use of show_view

    I'm using the SHOW_VIEW command to display some stacked canvases on a window. They are for information only so have no input fields.
    What I am finding is that a canvas appears if I issue SHOW_VIEW from a checkbox trigger but when I issue it from a button trigger the canvas is not displayed. I only have one window and three canvases. Are there any restrictions in using stacked canvases?

    if you show a canvas which overlaps an item which has the focus, then the canvas cannot be displayed.
    is that your case?

  • Show_view of stacked_canvasses synchronisation lost

    Hi all,
    I have a form with a multi-record block. Depending on the type of a queried record in the multi-record block (block A), i use show_view to show detail records (Block B,C,D). So the block A is the master block, and the detail blocks B,C, D are presented on 3 stacked canvasses. The show_view is programmed into the When-New-Record-Instance of Block A. When i navigate through the records in Block A, i don't see records in the stacked_canvasses that are shown through the show_view. The relationships between master en details are all auto-query, so there should not be a problem. Although when i show the EVD_ID of the master record and the EVD_ID of the child_record (foreign key), they er different. When i switch in the master block from EVD_ID 12 --> 13 --> 14 --> 15 -->13 the detail block shows me the EVD_ID null --> 12 --> 13 -->14 --> 15 . So the detail records are "one step behind". When i click in the stacked_canvas, the EVD_ID switches to the EVD_ID of the master block and the records are visible. Anyone knows something about this problem? By the way, we also use QMS-libraries with this forms, maybe in there there is a problem.
    Kind regards,
    Dave

    I tested with tab-pages also...gives the same error result.
    Synchronize also has no effect.
    I created the page through Designer en generate the form.
    Debugger, gets me totally nuts, while using QMS with it, there are alot of statements that come around.
    I'm now searching/trying for a work-around, that i navigate in the when-new-record-instance to the detail block,and then query. The problem is than getting back to the previous block where i started. I guess i can't do this by returning to the field i came from (go_field(' ..')), because when i then use the scroll bar (4 records are shown on the screen, and 7 records are available) the cursor and the current record indicator can be in a different record.

  • When the "show_view('canvas_name');" working ??

    when the
    show_view('canvas_name');
    working without adding for it :-
    go_block('block_name');

    Hello,
    If you have 2 (or more) canvas at the same place on
    the screen (overlap) you cannot show the one that
    does not have an item that has the focus, because
    Forms will always displayed the one that has the
    focus.
    FrancoisGIVE ME SIMPLE EXAMPLE PLEASE

  • Recovering data from a show_view

    Hi all!
    First of all, i am using Forms 9.0 and i need to show a view ( or window, it doesn't mind), were the used should write some data, the problem is that the view appears, but after that it closes, and i want to stop the program execution at this point untill the user press a button.
    As you see i want to do somehow like a dialog window,
    If someone could help me it would be very appreciated.
    Thx in advace!!

    Hi,
    It might be happening that the view closes after user presses tab/enter key.
    One thing you can do is set "keyboard navigable" property as "No" for the items on the view.
    Regards,
    Amol

  • Checkbox functionality

    I have a window in my form that is suppose to open when a checkbox is marked. It does this by having a WHEN-CHECKBOX-CHANGED trigger on the checkbox item. In its PL/SQL block it has an if statement that says if the checkbox is marked then open the window. (This block compiles fine.) I am unable to narrow down what my problem may be, so my question is this: Can I open a window through a checkbox, or does it have to be a button. Thanks in advance.

    Thanks Jose for your response. What exactly do I need to get my new window to show? ...below is my current code (not working) for my WHEN-CHECKBOX-CHANGED trigger:
    IF :PRINT_CONTROL.EMAIL = 'Yes' THEN
         APP_CUSTOM.open_window('EMAIL_OPTIONS');
         HIDE_VIEW('PRINT_OPTIONS');
         SHOW_VIEW('EMAIL_OPTIONS');
         :PRINT_CONTROL.SAVE_OUTPUT := 'Yes';
    END IF;EMAIL_OPTIONS is the window I wish to open. PRINT_OPTIONS is the window I want to change the focus away from. PRINT_OPTIONS is still not my main form, will that complicate things?
    I am on Forms 6i.

  • Problem with running bitmap report in Oracle 6i

    Hello,
    I am running a report from a form using run_product in client/server enviroment. And I use the same code in all forms that run reports. In test enviroment, everything works normally. But in customer enviroment there is weird behaviour. Some reports need a lot of time to be executed, and when they are finally finished, report previewer is not maximized as it is in test enviroment. And more important problem is that one report doesn't execute at all. Report background engine is started but report doesn't come out at all.
    Here is code which I use to run reports:
    declare
    izvestaj      varchar2(15);
    pListName varchar2(20) := 'parList';
    dt      varchar2(6) := 'Screen';
    pList      paramlist;
    BEGIN
    izvestaj := 'EBS12';
    begin
    pList := get_parameter_list(pListName);
    if not id_null(pList) then
    destroy_parameter_list(pList);
    end if;
    pList := create_parameter_list(pListName);
    if (not id_null(pList)) then
    add_parameter(pList, 'P_PREDUZECE', text_parameter, to_char(:kontrolni.preduzece_id));
    add_parameter(pList, 'P_PRENOS', text_parameter, to_char(:prenos.id));
    add_parameter(pList, 'P_RAD', text_parameter, :prenos.chk_radnik);
    add_parameter(pList, 'P_LOK', text_parameter, :prenos.chk_lokacija);
    add_parameter(pList, 'P_ZAR', text_parameter, :prenos.chk_isplata);
    add_parameter(pList, 'P_RAS', text_parameter, :prenos.chk_raspored);
    add_parameter(pList, 'P_NAL', text_parameter, :prenos.chk_nalet);
    add_parameter(pList, 'P_BEZ_RAS', text_parameter, :prenos.bez_rasporeda);
    add_parameter(pList, 'P_STATUS', text_parameter, to_char(:prenos.status));
    add_parameter(pList, 'P_RAD_ID', text_parameter, to_char(:prenos.radnik_id));
    add_parameter(pList, 'P_SORT', text_parameter, to_char(:prenos.redosled));
    add_parameter(pList, 'PARAMFORM', text_parameter,'NO');
    add_parameter(pList,'DESTYPE',text_parameter,dt);
    run_product(reports, izvestaj, synchronous, runtime, filesystem, pList, null);
    end if;
    exception
    when others then
    set_alert_property('cfg_error',alert_message_text,'Poziv izveštaja nije uspeo! '||sqlerrm);
    if (alert_button1=show_alert('cfg_error')) then null;
    end if;
    raise form_trigger_failure;           
    end;
    END;
    Is it maybe some enviroment settings problem and if yes, what should I pay attention on?
    Tnx in advance,
    Nati

    Hello,
    When you put a block on a "new stacked canvas" that canvas is generated as a popup canvas. If that popup overlaps with some other generated items (for instance: items in master block) Forms will not show it.
    You can try showing that popup canvas programatically with Show_View('canvas_name') in When-New-Form-Instance and see what happens.
    Dalibor
    P.S. Why do you have to put detail block on a popup canvas? Why don't you simply put it on a "same content canvas"?

  • Hiding a canvas

    I have a stacked canvas, named SUBTIP. In when-new-tab-page trigger (form level trigger) i have the code:
    clear_message;
    if :system.tab_new_page = 'SUBTIPURI_PRODUS' then
      show_view('SUBTIP');
      --hide_view('INSTANTE_DEPENDENTE_MOBIL');
      go_block('ACTIUNI_SUBTIPPRODSO');
      execute_query;
    else
      hide_view('SUBTIP');
    end if;In ORacle Developer 2000 (forms 5) it works ,when i change the tab page, the canvas is hided, but in Oracle Forms 10g, the canvas is still displayed. Why? The code is identical, in both version of forms.
    Thanks

    Hello,
    Not sure it is a correct answer, but you cannot hide a canvas while the focus is located in one of the items hosted by that canvas.
    Francois

  • Need to change the standard error message when no data found in a window

    Hi All,
    We have a button in our screen, on clicking we show a window with details from a view for the selected record in the screen using master-detail relationship.
    But, if i dont have any data to display, it is giving standard message,
    " FRM-40350 Query caused no records to be retrieved " in a seperate window,
    And if i click on Ok then the window is opening up with no records/data.
    My Requirement is to
    1. I need to show a custom message(some user friendly mesg) instead of standard mesg
    2. And the window should not open at all.
    I tried putting with :system.message_level=5 to suppress the standard mesg. But how we can achieve other two requirements.
    And this should happen at block level only not at form level.
    Please suggest me in this.
    Thanks
    Pavan

    Hi,
    No, I have just put my original code.
    This is what i have tried based on our suggestion.
       BEGIN
              IF event = 'WHEN-BUTTON-PRESSED'
                   --AND cnt <> 0
              THEN  
              GO_BLOCK('XXSCP_GBL_CUST_PEG_V');
          EXECUTE_QUERY;
          l_chr_so := :xxscp_gbl_cust_peg_v.sales_order_number;
          fnd_message.DEBUG('SO:'||l_chr_so);                                                                    
          :parameter.p_excep_detail:='FALSE';
              IF l_chr_so IS NOT NULL
                   THEN
              SHOW_VIEW('XXSCP_GBL_CUST_PEGGING_CON');
              SHOW_VIEW('XXSCP_GBL_CUST_PEGGING_STK');
              app_window.set_window_position('XXSCP_GBL_CUST_PEGGING_WIN',
                                             'CASCADE',
                                             'XXSCP_GBL_EXCEP_DETAILS_WIN');     
          fnd_message.DEBUG('xx');                                                                    
          END IF;                                        
          ELSE
              NULL;
              END IF;
        EXCEPTION
             WHEN OTHERS
             THEN
             NULL;
       END;I can see, its not going to IF conditon, stil the window pops up.
    Thanks
    Pavan

  • How to use multiple Windows in a module in oracle forms

    Hi,
       I am new in oracle forms.I am using oracle forms 11g with weblogic server 10.3.5 at windows7.I have 2 canvases say CNVS1 & CNVS2 and two windows as Window1 & Window2.
    CNVS1 is attached with Window1 and having BL datablock.
    CNVS2 is associated with Window2 and having emp datablock.
    In navigation object window there is BL datablock before Emp datablock.
    When I run this module:I got only CNVS1 canvas at window1,If I click at Window2 from menu then Window2 Comes with empty, there is no any canvas(CNVS2) at window2.Please let me know what is wrong here.
    Thank You
    regards
    aaditya

    Hi Aditya,
    Just user Show_view('Your Canvas Name');
    If you have separate datablock for each of your canvases then you can use
    GO_BLOCK('');
    GO_ITEM('');
    Hope this will help you,
    Regards,
    Soofi

  • Tab Canvas

    Hi,
    I am using Forms 10g. I have Content canvas named CANVAS1 display few items from BLK1. I created a tab canvas called TAB_CAN contains TAB_PAGE1 and TAB_PAGE2, display items from BLK2
    I would like to show the form in enter query mode and Form should display both CANVAS1 and TAB_CAN
    Content canvas only displayed if i write in when-new-form-instance
    show_view('canvas1');
    show_view('tab_can');
    go_item('blk2.item1);
    go_item('blk1.item1)
    enter-query;
    tab canvas only displayed if i write code like this in write in when-new-form-instance
    show_view('canvas1');
    show_view('tab_can');
    go_item('blk1.item1)
    go_item('blk2.item1);
    enter-query;
    So, I request you to write a code to display both canvases and control should be in contant canvas and form should be enter-query mode.
    Regards,
    Murali

    Hello Murali,
    As you are saying you want to show a Content canvas (Canvas1) and Tab Canvas (Tab_Can) both at the same time, you need to use more than one window for this.
    Actually at any instant of time, you can show only one canvas on any window. So have two windows WINDOW 1 and WINDOW 2.
    In Content canvas, set the window as WINDOW1, and in WINDOW1 set the primary canvas as CANVAS1. And, for tab canvas actually you should have another content canvas(CANVAS2) on which you have placed this Tab_Can. So in content canvas (CANVAS2), set the window as WINDOW2, and in WINDOW2 set the primary canvas as CANVAS2.
    It will work i feel.
    Regards,
    Yathish...

  • Stacked canvas on one convas!!??

    if i have two content canvases and one stacked canvas at the same window ,is it possible to display this stacked canvas at only one specific canvas at this window ??

    Hi TERMI
    Yes it's possible , Here is an example ...
    Pls create a button in ur content canvas in this button pls write the following as an example...
    SHOW_VIEW('STACKED_CANVAS');
    GO_ITEM ('item_name'); -- Pls note this item should be navigable and visible in ur stacked canvas form
    HIDE_VIEW('CONTENT_CANVAS');
    In order to return back to ur content_canvas pls create a button in ur stacked canvas in WHEN-BUTTON-PRESSED Trigger
    pls write the following...
    HIDE_VIEW('STACKED_CANVAS');
    SHOW_VIEW('CONTENT_CANVAS');
    GO_BLOCK('EMP');
    GO_ITEM ('EMPNO'); -- Pls note this item should be navigable and visible in ur Content canvas form
    Hope this helps...
    Regards,
    Abdetu...

  • Hidden stacked canvases blink

    Hi!
    I have Forms 6i and I have a program with 3 tab pages. On the first tab there is master data block, the second and the third tabs are detail blocks. On both second and third tab I have two stacked canvases, let's name them can21, can22 (on the second tab page) and can31, can32 (on the third tab page).
    I used show_view and hide_view commands to show/hide stacked canvases as needed. But when I am on the first tab page and when I, after executing a query, go to the next (or previous) record, when I reach a record which contains some data in detail block on the third tab page, canvases can31 and can32 appear. I hide them on when-new-record-instance, but at first, they blink for a moment and then disappear.
    Any idea how to avoid that blinking?
    Tnx in advance.

    Debugger showed my error. I had show_view commands for can31 and can32 on POST-QUERY trigger on detail block for third tab page and that caused blinking. I thought in one moment I needed those commands, but I see now they are sufficient.
    Tnx a lot!

  • Help! - Stacked canvases disappear

    Using Forms 6.05. Have content canvas with 2 stacked canvases which I want visible at all times. Have 2 large data blocks requiring horizontal scrollbars on the stacked canvases. Have put the identifier column from each of the data blocks on the content canvas so they remain static and visible while the user scrolls horizontally thru the remainder of the data blocks. Have also put the vertical scrollbars for the data blocks on the content canvas so they too remain static and visible when scrolling horizontally. PROBLEM: When content canvas 1st displays, stacked canvases are visible and data blocks are populated. If the first user action is to manipulate the scrollbar, the stacked canvases disappear. However, if the user clicks on a data block item first and then manipulates the scrollbar, the stacked canvases remain visible. HELP! I can't figure out what is happening and how to fix it. Any info is appreciated.

    The canvases have to be ordered in the Forms definition in the order they overlap each other on the screen, i.e. content canvas, stacked canvas, stacked canvas.
    Use show_view and immideatelly go_block built ins, where the block is a block from the stacked canvas.
    The items shown on the stacked canvases have to be separated in different blocks, where you have to declare the scrolbares.
    Joseph
    null

  • Calling stacked canvases from tab pages

    Hi,
    I am creating custom forms from TEMPLATE.fmb in Forms Developer 6i. The main form has various tab pages on a tab canvas for different functionalities. Now, I have some very large stacked canvases which I want to be called by clicking on a tab. Most of the tab pages fit in the given dimensions for the tab canvas but the bigger ones are a problem. Please help me in trying to link those canvases with the tabs on the canvas.
    Thanks.
    [email protected]

    Use When-Tab-Page-Changed trigger.
    If :SYSTEM.TAB_NEW_PAGE = 'TAB1'
    then
    show_view('view_on_tab1');
    elsif :SYSTEM.TAB_NEW_PAGE = 'TAB2'
    then
    show_view('view_on_tab2');
    end if;

Maybe you are looking for

  • How do I preview songs within iTunes list of songs on my iPod Shuffle?

    I want to hear what songs are on my iPod shuffle with their listed title , so I know what to keep and what to delete. Because, when you know you want to delete some songs, but do not remember all the titles.

  • How to remove a PO with account assignment K from MD04

    Hi guys I have create a Purchase Order in ME21N with account assignment K and removed the Goods receipt mark in delivery tab. Will this PO be removed from MD04 and when?

  • MacBook Pro won't turn on after crash. Charging LED blinking rapidly

    Hi. I hope you can help me. I have a macbook Pro 13", from september 2012, which crashed earlier today: I was charging my iphone through USBport on my macbook (not an Apple USB-iPhone power-cable) . My MacBook was charging through the magsafe charger

  • Dive wont open

    My top driver wont open up but the lower driver does. i try and run the mac disc that they sent me on the bottom dive but it just ends up shooting it out when i restart the computer and hold down c and when i try to open the drive when the computer i

  • Invalid owner exception.

    Hi all: If I execute this application I get the next exception when invoke the second Sample method from main. oracle.jbo.InvalidOwnerException: JBO-25302: Component object MyView has no parent oracle.jbo.server.ApplicationModuleImpl oracle.jbo.serve