show_view

Hello

I have 3 paintings contained 'MAIN_TAB_CANVAS' & 'TABS_CANVAS' on GTK_WINDOW

and 1 canvas 'INVESTIGATION' on window1

When you call the 'SURVEY' canvas it shows successfully but hide it...
and list the 2 canvas 'MAIN_TAB_CANVAS' & 'TABS_CANVAS' it overwrites
b u t if I put pause a msg to thank who said thank who has pop up and all appears 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');
Please help me

Kind regards

Abdetu...

Published by: Abdetu on December 14, 2010 08:03

A common problem I see in the form of coding is that too often developers depend on the implicit behavior and refuse to add the necessary code to perform a task. Another common problem is logical to the rear. Regardless of what does or does not work, it makes sense to code logically. It is a good example. Knowing that forms is based almost exclusively on the positioning of cursor in order to run tasks, not meaning that the form should always have a place to put the cursor?

In your code, notice how you first HIDE the current display before displaying the next. Consider what must happen internally when done that way... If the cursor is currently on your canvas 'Survey' and you decide to close it, the cursor becomes abandoned. This forces the internal processing of forms for now wasting time trying to determine where to safely move the cursor. Often, this becomes a problem, as you seem to have noticed by now. The way safe and logical closure and the opening of a canvas is to consider the cursor at any time. So, I'd argue that the best way to move the 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 needed

The behavioural aspect can change a little bit, but once adjusted properly, the application should probably run in a more stable manner.

That said, you can be hitting a bug. Do not forget that you are using the latest patched version. The latest versions supported are:

10g Release 2 - 10.1.2.3
11g Release 1 - 11.1.1.3

Tags: Oracle Development

Similar Questions

  • Recover data from a show_view

    Hi all!

    First of all, I use forms 9.0 and I need to display a view (or window, he does not fear), were occasionally needs to write data, the problem is that the view is displayed, but after that it closes, and I want to stop the execution of the program at this time until the user press a button.

    As you can see, I want to somehow as a dialog window,

    If someone could help me it would be much appreciated.

    THX in advace!

    Hello

    Create a new window, create a new Web on this window, put buttons and items on this canvas.
    When you want to display it, use the Go_Item() or the integrated Go_Block().

    François

  • Forms of Oracle tab page display problems.

    I use oracle forms 6i, I have two table of content and canvas illustrated tabs, but when I click on the field on Web content, disappears them from the Web by tabs. How to keep it on the form of content even if I click outside of the canvas by tabs?

    I've used show_view() to display my canvas by tabs in new_form_instance.

    Also the grid on the canvas tabs does not get filled I execute the query associated with it unless I click on the first item in the tab page.


    Please help me with the same...

    Thank you...

    If your tabs in canvas will always be visible on the canvas of content I found it easier to open the Web content in the Web Editor and simply pull the canvas with the table of Contents tab.  This will cause usually forms automatically display the tabs in canvas on the fabric contained without code.  However, if this does not work you can always use the built-in SHOW_VIEW() or built-in SET_VIEW_PROPERTY().  On the thing you must make sure that your canvas of tabs is not appear in any other article that is displayed on the dashboard of your content.  In this situation, when you browse back to table of contents forms will display contained canvas 'Face' of your tabs in canvas because there are visible elements in the same location as your canvas by tabs.

    I hope this helps...
    Craig...

  • How to use the menu in a canvas shaped with 3 canvas

    Hi I have situation where I form with four canvas I just what to use my menu, I two canvas I have no what to display my menu in my first attack of Web page I just what to say [was my menu in my second painting and my third Web page how can I work around this am in form 11 GR 2]

    Hello

    PLS, try SHOW_MENU & HIDE_MENU alternately.

    You can use...

    HIDE_VIEW ('CANVAS_NAME');

    GO_BLOCK ('BLOCK_NAME');

    GO_ITEM ('ITEM_NAME'); -Visible & navigable

    SHOW_VIEW ('CANVAS_NAME');

    Amatu Allah.

  • Stacked canvas and tab canvas placed on the table of contents?

    Oracle forms 6i:

    Hi all, I am developing a form .in this I created four paintings there is

    1. table of contents

    2 canvas tab

    3 stacked canvas

    4 stacked canvas fixed field

    Here I try placed three paintings on the content canvas.i open the table of contents and here I placed all three paintings to help

    Display - > stacked views option.after, saving the form and close the content canvas.again I open the table of Contents tab stacked canvas and stacked canvas fixed field the two paintings are disappears.these paintings go to back (hide) of the canvas of the tab.

    any body please help me how to solve the problem...

    Here I am attaching how my form want to look like this.

    1.png


    I attach here how can I get...

    2.png



    Please help someone

    Kind regards

    Stevie

    The fact that you have used the utility of 'Stacked view paintings' the constructor for hide or display a canvas has nothing to do with how the form is saved or executed.  The ZOrder (stacking order) of the paintings works exactly as it does for data-block objects.  If your 'stacked' canvas is listed below your Web 'tab' in the browser of the object then the stacked will be presented behind the tabs.  If you want the stacked to appear always on top and then in the object Navigator drag it above the tabs.

    When running, you control the paintings using SHOW_VIEW and HIDE_VIEW.  However, I understand that you can't HIDE a view if the cursor is positioned in an object on the canvas.  You must move the cursor first, then HIDE the view/canvas.

  • Showing Popup advances in oracle forms 6i

    Hi gurus,

    I develop a form (6i) in which I have a requirement that

    I'll call a stored procedure in my form, procedure will return a pl/sql output data collection and collection filled in my block (block no DB). sometimes process will consume time for data extraction.

    I have a requirement to display a progress popup, before calling the procedure and once the procedure return data, I need the popup closes automatically. pop-up message to change according to the input passed to the procedure.


    To do this, I created a new dialogue window, in the Web of dialogue, block with the point of a text whose width and height is 0, I dynamically change the prompt of the text element to display the message. now the problem is if have a batim message before the go_item of the progress window, window appeared, otherwise it will not.


    Message "(veuillez prendre note de paquet Explosion processus prendra un certain temps');" (if I remove this buildin message, it does not appear under the window)

    Set_Item_Property('BLK_PROGRESS.) TEXT_BOILER_PLATE ', Prompt_Text,' Please wait a few seconds, package Explosion asks pallet / box ' |: Blk_View_Rma_Serial.Text_Package_Num | "is in progress now..." ») ;

    Go_Item('BLK_PROGRESS.) TEXT_BOILER_PLATE');

    Go_Block ('BLK_PROGRESS');

    Show_View ('CANVAS_PROGRESS');

    fnd_message. Set_string ('package is complete Explosion');

    Fnd_message. Hint;

    I change all the possible sequence of the go_item, go_block, display as well., but same result. If I add fnd_message buildin instead of message as it leads to the same result, poster not the window message.

    Please help me solve this problem.

    Thank you

    See the article from the Blog of Francois Degrelle: forms: a progress bar to track the execution of the stored procedure.

    Craig...

  • How to select it when execute_query do not work


    Hello.

    In Oracle 11g form, is there a way I could debug or check my block request?

    I have a stacked canvas, (in a table of contents), when I click on a button, I'm doing a show_view ('my_stacked_canvas'). Stacked canvas is correctly shown, but that I had coded in the (a time-new_block_instance), a "EXECUTE_QUERY", (and made a go_block, go_item before), I get this error: FRM-40505 UNABLE to EXECUTE QUERY.

    I don't know if I have because my Eastern bloc (database type) and I am viewing only 4 columns (from my 6 in my table). The table has records when I run in PL - SQL Developer (SELECT * FROM my_table)...

    Y at - it some thing like (display_error) when you perform an insert, I mean, I would select Forms internal runs, I'm a little lost.

    Thank you

    After getting the error FRM - 40505 UNABLE to RUN QUERY.

    Press Ctrl + Shift + E keyboard and post what you get?

    Hamid

  • How to specify the canvas by tabs that appear?

    Hi all

    I have three paintings both content and a tabbed, the first table of contents contains a block of data that goes to the second canvas contained by a button caontins GO_Block.

    I drew a canvas by tabs (using the specified tool) in this second table of content but this tabbed makes its appearance in the two paintings contained!

    I want this painting with tabs to appear only in the second table of content only! How, please?

    Thank you

    Note: I'm using Forms 6i

    Use SHOW_VIEW ("your tab_canvas name") programmatically display a canvas, use HIDE_VIEW ("your tab_canvas name") to hide.

  • See the stacked canvas

    Hello
    I have two Web (1: happy, 2: stacked), I used when-pressed button shutter button to show the canvas stacked using "show_view ('canv_stacked');"
    but the stacked canvas does not appear!
    I think that the problem is of dimension to the stacked canvas...

    979155 wrote:
    the problem is on the "visible" property
    explanation:
    I have 2 buttons 1: EMP (visible), 2: Insert (not visible).
    1:EMP a shutter release button when pressed: set_item_property('insert',visible,property_true);
    2:insert a when-pressed to release button: go_item ('id'); show_view ('canv_stacked');

    -Online the stacked canvas does not appear, but when I change the palette button "insert" and that it is visible, the canvas will be displayed
    Why!

    Because you must configure the property plus two.
    Try this... at EMP button

    set_item_property('insert',VISIBLE,PROPERTY_TRUE);
    set_item_property('insert',ENABLED,PROPERTY_TRUE);
    set_item_property('insert',NAVIGABLE,PROPERTY_TRUE);
    

    I hope this works...

    Hamid

    If the solution is correct mark it.

  • Tabbed pages not changed during the selection of the TAB LIST

    Hi all

    I have a form that contains 15 tabs, 1 10 Tabs are dynamic (enabled with the new instance of the form depending on the configuration) and 11 to 15 are static tabs visible for all.

    My problem is when I am clicking on tabs iam able to switch tabs, but when I select the tab in the tab list , I don't go to the selected TAB.

    Ex: when I am in 1 TAB and select TAB15 on tab list my form remains in TAB1 and don't move not TAB 15

    Please give me a Solution.


    WHEN the PAGE of TABS CHANGE my code is

    DECLARE
    l_curr_rec NUMBER;
    BEGIN
    l_curr_rec: =: SYSTEM. CURSOR_RECORD;

    -Get the Page tabs at the top of the default page to the form
    SHOW_VIEW ('HDR_CANVAS_FIXED');
    : global p:System.NET.HttpWebResponse.headers: = GET_CANVAS_PROPERTY ('TAB_CANVAS', topmost_tab_page);

    IF(:GLOBAL.) HEADERS = "AS_REC_IMAGE") THEN


    SHOW_VIEW ('AS_REC_IMAGE');
    SET_VIEW_PROPERTY ('AS_REC_IMAGE', VISIBLE, PROPERTY_TRUE);

    SET_TAB_PAGE_PROPERTY ('AS_REC_IMAGE', ENABLED, PROPERTY_TRUE);

    GO_BLOCK ('AS_REC');

    -Hide the other canvases except the canvas price


    ELSIF(:GLOBAL.) HEADERS = "TRIM_REC_IMAGE") THEN


    SHOW_VIEW ('TRIM_REC_IMAGE');
    SET_VIEW_PROPERTY ('TRIM_REC_IMAGE', VISIBLE, PROPERTY_TRUE);

    SET_TAB_PAGE_PROPERTY ('TRIM_REC_IMAGE', ENABLED, PROPERTY_TRUE);

    GO_BLOCK ('TRIM_REC');

    -Hide the other canvases except the canvas price

    ELSIF(:GLOBAL.) HEADERS = "AS_SHIP_IMAGE") THEN

    SHOW_VIEW ('AS_SHIP_IMAGE');
    SET_VIEW_PROPERTY ('AS_SHIP_IMAGE', VISIBLE, PROPERTY_TRUE);

    SET_TAB_PAGE_PROPERTY ('AS_SHIP_IMAGE', ENABLED, PROPERTY_TRUE);
    GO_BLOCK ('AS_SHIP');

    -Hide the other canvases except the canvas price

    ELSIF(:GLOBAL.) HEADERS = "TRIM_SHIP_IMAGE") THEN

    SHOW_VIEW ('TRIM_SHIP_IMAGE');
    SET_VIEW_PROPERTY ('TRIM_SHIP_IMAGE', VISIBLE, PROPERTY_TRUE);

    SET_TAB_PAGE_PROPERTY ('TRIM_SHIP_IMAGE', ENABLED, PROPERTY_TRUE);

    GO_BLOCK ('TRIM_SHIP');

    -Hide the other canvases except the canvas price


    ELSIF(:GLOBAL.) HEADERS = 'EXTRA') THEN
    -Show export Web-


    SHOW_VIEW ('EXTRA');
    SET_VIEW_PROPERTY ('EXTRA', VISIBLE, PROPERTY_TRUE);

    SET_TAB_PAGE_PROPERTY ('EXTRA', ENABLED, PROPERTY_TRUE);
    GO_BLOCK ('EXTRA');

    -Hide the other canvases except the canvas price



    ON THE OTHER - DYNAMIC TABS
    -Hide all the other static canvases


    IF (: OVERALL.) HEADERS = "TC01") THEN
    GO_BLOCK ('TC01');

    ELSIF (: OVERALL.) HEADERS = "CT02") THEN
    GO_BLOCK ('CT02');

    ELSIF (: OVERALL.) HEADERS = "CT03") THEN
    GO_BLOCK ('CT03');

    ELSIF (: OVERALL.) HEADERS = "CT04") THEN
    GO_BLOCK ('CT04');

    ELSIF (: OVERALL.) HEADERS = "CT05") THEN
    GO_BLOCK ('CT05');

    ELSIF (: OVERALL.) HEADERS = "CT06") THEN
    GO_BLOCK ('CT06');

    ELSIF (: OVERALL.) HEADERS = "CT07") THEN
    GO_BLOCK ('CT07');

    ELSIF (: OVERALL.) HEADERS = "CT08") THEN
    GO_BLOCK ('CT08');

    ELSIF (: OVERALL.) HEADERS = "CT09") THEN
    GO_BLOCK ('CT09');

    ELSE - ELSIF (: OVERALL.) HEADERS = "TM10") THEN
    GO_BLOCK ('TM10');

    END IF;

    END IF;
    END;



    Thank you
    Durga Srinivas.

    Published by: DurgaSrinivas_886836 on December 3, 2012 20:12

    In your trigger, you do a SHOW_VIEW ("HDR_CANVAS_FIXED"); before selecting the: GLOBAL. Headers information. I don't know what is HDR_CANVAS_FIXED, but I wonder if it is what you ruin. What happens if you either comment out:

    DECLARE
      l_curr_rec     NUMBER;
    BEGIN
      l_curr_rec := :SYSTEM.CURSOR_RECORD;
    
      --Get the Top Default Tab Page for the Form
      --SHOW_VIEW ('HDR_CANVAS_FIXED'); /* <-------------------------------------------------------Comment it out */
      :global.headers := GET_CANVAS_PROPERTY ('TAB_CANVAS', topmost_tab_page);
    
      IF (:GLOBAL.HEADERS = 'AS_REC_IMAGE') THEN
        SHOW_VIEW ('AS_REC_IMAGE');
        .
        .
        .
    

    or if you have to move after the: GLOBAL. HEADERS:

    DECLARE
      l_curr_rec     NUMBER;
    BEGIN
      l_curr_rec := :SYSTEM.CURSOR_RECORD;
    
      --Get the Top Default Tab Page for the Form
      :global.headers := GET_CANVAS_PROPERTY ('TAB_CANVAS', topmost_tab_page);
      SHOW_VIEW ('HDR_CANVAS_FIXED'); /* <------------------------------------ Swap it with :global.headers */
    
      IF (:GLOBAL.HEADERS = 'AS_REC_IMAGE') THEN
        SHOW_VIEW ('AS_REC_IMAGE');
        SET_VIEW_PROPERTY ('AS_REC_IMAGE', VISIBLE, PROPERTY_TRUE);
        SET_TAB_PAGE_PROPERTY ('AS_REC_IMAGE', ENABLED, PROPERTY_TRUE);
        GO_BLOCK ('AS_REC');
      --Hide the other canvases except the Pricing Canvas
      ELSIF (:GLOBAL.HEADERS = 'TRIM_REC_IMAGE') THEN
        SHOW_VIEW ('TRIM_REC_IMAGE');
        .
        .
        .
    
  • Delete_Record FRM-40405, FRM-40401

    Hi all

    I use Oracle forms 6i.
    I have a delete button to remove the current detail record. The record deletion property is 'isolated '... I just write "Delete_Record;" in the trigger WHEN_BUTTON_PRESSED of the button 'delete '. Even after pressing the button, the line as expected for deletion is always displayed. How do I remove?
    Also how can I commit like I can't give commit_form here, since it raises frm-40405 no change found error and error frm-40401.

    I have a 'Description' point that is not an element of database and update property is not, and I also point 'Information' that has been validated for 'Not Null' when-validate-item trigger.

    commit_form shows no error if I upgraded the mesg to 25... and then after validation is reset to 0.

    I have my retail block in one different canvas other than my master block. I invoke the block of detail using SHOW_VIEW ('DTL_BLK')

    Kindly help.

    Thank you
    Sri

    Published by: hokoba on August 28, 2012 05:20

    The delete button must be in the same block as the folder that you want to remove, or forms navigates away from the line and the block you want to delete. .. .or set mouse navigate the button for no.

    And never set message_level above zero. You simply hide errors you should be handling.

  • Forms of doubts

    Hi people,

    I know abt the functionality of the below keywords in oracle forms

    (1) SET_ITEM_PROPERTY
    (2) APP_ITEM_PROPERTY. SET_PROPERTY
    (3) show_view
    (4) GO_BLOCK
    (5) GO_ITEM


    Thanks in advance

    For your particular exampes, online help is very clear and precise. In addition, each of your examples should be pretty clear just by referring to their names:

    (1) SET_ITEM_PROPERTY

    Property of an element affects the desired value. For example, if you want to disable a button, follow these steps: SET_ITEM_PROPERTY ('myButton', INFLUENTIAL, PROPERTY_FALSE);

    (2) APP_ITEM_PROPERTY. SET_PROPERTY

    It is specific to Oracle e-Business, so I won't discuss it here. This isn't a command of standard forms.

    (3) show_view

    Causes a view not are currently not displayed (canvas) to display.

    (4) GO_BLOCK

    Moves the cursor from its current position to the first item in a particular block. For example: GO_BLOCK ("myBlock");

    (5) GO_ITEM

    Moves the cursor from its current position to another. This fails if the destination item is not permitted to get the focus. GO_ITEM ('someBlock.someItem');

  • Simulation Wizard in oracle forms

    Please can someone help:

    I work in a project and one of the requested forms is a wizard that guides the user to complete certain data entries.
    is it possible in oracle forms?
    I use Oracle 10 g of form. Ideas please

    Hello

    is it possible in oracle forms?

    Yes

    What kind of canvas is better for my situation: stacked canvas?

    pls use 1 table of contents which is your main canvas and then build your stacked paintings tell 3 stacked paintings

    then build your blocks of database by selecting the paintings in the block appropriate for each

    sooner or later to create time to FINISHED design buttons, THEN back and accumulate your triggers that will trigger the aid...

    SHOW_VIEW('CANVAS_NAME') ;  -- Show the Stacked Canvas in NEXT button...
    
    GO_ITEM ('Item_Name'); -- Go to the stacked canvas item ; should be navigable and visible in ur stacked canvas 
    
    HIDE_VIEW('CANVAS_NAME'); -- hide the original current canvas in synchronize 
    
     --- do this for each NEXT button all the rest depends upon ur needs...
    

    I hope this helps...

    Kind regards

    Amatu Allah

  • call cavas them when click the button

    Can you please tell me how can I call the canvas when click on the button. and position the fabric next to the button

    Hello

    try something like that.

    go_block('block_name');
    SHOW_VIEW('CV_STACKED'); ---for showing
    HIDE_VIEW('CV_STACKED'); ---- for hidding.
    

    and...

    SET_VIEW_PROPERTY('CV_STACKED', VISIBLE, PROPERTY_FALSE);
    

    I hope this helps.

    Sarah

  • Cannot display a canvas, while the form is loaded

    Hi all
    I work with form 6i and bacend is oracle 10g. I have a form that consists of 5 paintings stacked. When the charged form that I need the "HOME" page should be displayed first.so, I used,
    show_view('HOME');
    GO_BLOCK('HRMVAA_LEAVE_MATRIX1');
    go_item('DUMMY');
    But no use when the form is loaded a canvas namely 'TO_SANCT' appears.
    I even tried
    HIDE_VIEW('TO_SANCT');
    but do not know what is wrong only canvas 'to_sanct' is first.how to get rid of this and make the canvas 'Home' than the first? Kindly help me.


    Thanks in advance.


    Reg
    Vids

    Add this code to hide:

    vw_id ViewPort;
    
    vw_id := Find_View('TO_SANCT');
    hide_view(vw_id);
    Set_View_Property(vw_id, VISIBLE, PROPERTY_FALSE);
    

Maybe you are looking for