Have to prevent navigation to another stacked canvas.

Dear all,
I am developing an application using forms 6i with oracle 10g.i have many stacked canvas in this application.where in one particular canvas i have a button namely 'SUBMIT' in which i have a trigger when-button-pressed
with following code.
go_block('to_sanct');
declare
g char(1);
begin
          message('value is '||:gd_ind);
     if :gd_ind is not null then
     if :gd_ind = 'Y' then
          G:='Y';
     ELSE
          G:='N';
     end if;
          MESSAGE('IN');
          MESSAGE('TRANS ID'||:c_trans);
          MESSAGE('head '||:c_head);--navigation occurs after this message.***
          MESSAGE('gd value '||G);
Leave_application.grant_or_deny_leave(:c_trans,:c_head,G);
COMMIT_form;
    MESSAGE('OUT');
          MESSAGE('TRANS ID'||:c_trans);
          MESSAGE('head '||:c_head);
          MESSAGE('gd value '||G);
end if;
if form_success then
     message('You have granted the above request');
else
     message('failed');
end if;
end;That is if i click this submit button the packaged procedure should be invoked and the values passed thru the form should be committed.in order to know the values passed i have given several messages before and after invoking the package.my problem is after this message
MESSAGE('head '||:c_head);  --navigation occurs after this message.*** navigation moves from the current canvas to another canvas.i don have any clue why its happening like this and i want to stop this navigation from current canvas to another one.all canvases in this form are stacked canvas.pls suggest me what i have to do?.

Sorry for such a late reply Hamid.I have tried commenting all code and putting the button only with
null; In such case navigation doesn't occur.then again i tried commenting each set code and i suspect that navigation occurs only in the presence of "COMMIT" statement.
declare
g char(1);
begin
     --     message('value is '||:gd_ind);
/*     if :gd_ind is not null then
     if :gd_ind = 'Y' then
          G:='Y';
     ELSE
          G:='N';
     end if;
     --     MESSAGE('IN');
     --     MESSAGE('TRANS ID'||:c_trans);
     --     MESSAGE('head '||:c_head);
          --MESSAGE('gd value '||G);
Leave_application.grant_or_deny_leave(:c_trans,:c_head,G);*/
COMMIT;
/*   -- MESSAGE('OUT');
     --     MESSAGE('TRANS ID'||:c_trans);
     --     MESSAGE('head '||:c_head);
     --     MESSAGE('gd value '||G);
--end if;*/
end;Does this COMMIT statement have any impact on the navigation?.Do u have any idea Hamid.

Similar Messages

  • (another) stacked canvas on content canvas problem

    I've searched the forums for the last 2+ hours and can't find a solution for my problem, although there are hundreds of questions on this subject.
    I have a stacked canvas on top of a content canvas. The canvases share the same window. They also share a data block. I added radio buttons on the main canvas to "show/hide" the stacked (my ultimate goal is to have 2-3 stacked and toggle. When hide, the stacked canvas is hidden, but when i click show, it is not. I understand reading all the posts that the block with focus will display, and I've added both a go_block and go_item prior to the show_view. Below is my code. MEL_DETAILS is content and MEL_LINE_ITEM is stacked.
    IF :stack = 'SHOW_STACK' THEN
    GO_BLOCK('MEL_ITEM');
    GO_ITEM('MEL_ITEM.MIS_PROJECT_NO');
    SHOW_VIEW('MEL_LINE_ITEM');
    SET_VIEW_PROPERTY('MEL_LINE_ITEM', visible, property_true);
    SET_VIEW_PROPERTY('MEL_LINE_ITEM', display_position, 718, 583);
    SET_ITEM_PROPERTY('PROJECTS.STACK',MOUSE_NAVIGATE,PROPERTY_FALSE); -- radio button
    ELSif :stack = 'HIDE_STACK' THEN
    HIDE_VIEW('MEL_LINE_ITEM');
    SET_VIEW_PROPERTY('MEL_LINE_ITEM', visible, property_false);
    SET_ITEM_PROPERTY('PROJECTS.STACK',MOUSE_NAVIGATE,PROPERTY_TRUE);
    END IF;

    user12198246 wrote:
    I've searched the forums for the last 2+ hours and can't find a solution for my problem, although there are hundreds of questions on this subject.
    I have a stacked canvas on top of a content canvas. The canvases share the same window. They also share a data block. I added radio buttons on the main canvas to "show/hide" the stacked (my ultimate goal is to have 2-3 stacked and toggle. When hide, the stacked canvas is hidden, but when i click show, it is not. I understand reading all the posts that the block with focus will display, and I've added both a go_block and go_item prior to the show_view. Below is my code. MEL_DETAILS is content and MEL_LINE_ITEM is stacked.
    IF :stack = 'SHOW_STACK' THEN
    GO_BLOCK('MEL_ITEM');
    GO_ITEM('MEL_ITEM.MIS_PROJECT_NO');
    SHOW_VIEW('MEL_LINE_ITEM');
    SET_VIEW_PROPERTY('MEL_LINE_ITEM', visible, property_true);
    SET_VIEW_PROPERTY('MEL_LINE_ITEM', display_position, 718, 583);
    SET_ITEM_PROPERTY('PROJECTS.STACK',MOUSE_NAVIGATE,PROPERTY_FALSE); -- radio button
    ELSif :stack = 'HIDE_STACK' THEN
    HIDE_VIEW('MEL_LINE_ITEM');
    SET_VIEW_PROPERTY('MEL_LINE_ITEM', visible, property_false);
    SET_ITEM_PROPERTY('PROJECTS.STACK',MOUSE_NAVIGATE,PROPERTY_TRUE);
    END IF;Here, it seems two problem..
    The line..
    SET_VIEW_PROPERTY('MEL_LINE_ITEM', visible, property_true);
    and
    SET_VIEW_PROPERTY('MEL_LINE_ITEM', visible, property_false);No needed
    Hope this helps
    Hamid

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

  • Hi stacked canvas blinking...

    Hi
    I am using oracle form 6i
    Actually i have two canvases
    1.content
    2.stack canvas
    In contend canvas i have a button when button pressed trigger
    show_view('canvas_transaction');
    when i pressed the button
    its blinging and not visible for long time...
    Thank u...

    u3 wrote:
    I appreciate the overlap issue and mentioned it in my first response, and I expect that changing the size or positon of the item or canvas is the most appropriate solution. Without knowing the full requirements I left an incomplete response, thinking that a dialogue would get the problem fixed. I don't think it's right to suggest navigating to the canvas as the only solution, omitting other possible solutions. My first response could have been better though.
    I never suggested that navigation to the canvas is The Only Solution I have always said and in many posts that: "+Beauty of Oracle is that you can reach the same result in 100s and 1000s of ways+" You can have 100s solutions for the same problem.
    No one is omitting any other solutions, You mentioned the overlapping issue in your first post asking the OP if that was the case, I merely explained to the OP why that happens, assuming if the OP knew about the overlapping issue, he/she would have solved the problem, and my second post was in response on your comments.
    It is not a must to navigate to an item that resides on the stacked canvas, but it's a good way to solve the overlapping issue in this case.
    Tony
    Edited by: Tony Garabedian on Sep 8, 2008 3:02 PM

  • Stacked canvas as a tab element

    I am working on a form say 'A'. In this form, I have a tabbed canvas 'B' with 4 tabs.
    I created another stacked canvas 'C' on which there are elements from 3 different blocks. Now I need to make this stacked canvas as an element of tab2 in canvas 'B'. I.e., if the user clicks on the tab2 of canvasB, it should show the stacked canvas C below the tab.
    How can I do this?
    Thanks,
    Chiru

    It is not possible to define stacked canvas for a tab canvas.
    To avoid such circumstances,
    in pre-form, you write
    HIDE_VIEW('STACKED_CANVAS');
    SHOW_VIEW('TAB_CANVAS');
    If tab canvas is not showing up, set the fol. property
    raise on entry : yes
    viewport x and y position to 0
    and try runing ,
    if the tab canvas is showing up, gradually return to the required position
    else check for any hide_view(tab_canvas) code in your form.
    or you can reduce the height of content canvas to view tab canvas. Check the window name of content and tab canvas is same.
    And in when tab page changed, you write for each tab page name
    IF :SYSTEM.TAB_NEW_PAGE='PAGE2' THEN
    go_item('some item in tab page 2');
    SHOW_VIEW('STACKED_CANVAS');
    ELSIF :SYSTEM.TAB_NEW_PAGE='PAGE1'
    go_item('some item in tab page 1');
    HIDE_VIEW('STACKED_CANVAS');
    END IF;
    Why that go-item is required?
    Suppose your cursor is in an item in the stacked canvas, and if you click on page 1, The stack canvas wont disappear.
    Edited by: Dora on Dec 23, 2009 8:29 AM

  • Stacked canvas dimentions problem

    Hello
    Why if i had used an inherited stacked canvas and tried 2 change the height and width of it ...
    it doesn't change it remains with the same size,can any body answer me why it behaves like this...!?
    Thanks in advance,
    Regards,
    Abdetu...

    Abdetu,
    am getting a compilation error says: identifier 'viewport_width' Must Be Declared I must apologize, I misread the Forms Help which lists "VIEWPORT HEIGHT" and "VIEWPORT WIDTH". What I failed to recognize was that there was no underscore "_" between the words. Therefore, these are Properties of the stacked canvas that can only be set through the property palette - not the SET_VIEW_PROPERTY built-in. Sorry! :8}
    1. You have a Stacked Canvas that has a property class assigned to it or you subclassed the canvas into your form when you copied it from another form (like a template form).what is the difference i would like to know ?
    >
    The difference is where the source of the referenced propertes (property class) exist. For example, if you subclass the property class from a source Form (such as a template.fmb or an Object Library.olb) then the set of properties are dependent on the source object (.fmb or .olb) and you have to ensure the source object is in the FORMS_PATH. If you manually create the property class in the form there is no dependency on other objects. For the record, it is "Best Practice" to subclass Property Classes from a common source so you can standardize and reuse common sets of properties (as well as other shared objects).
    Vertically half of The content of the canvas wasn't seen the other half was blank gray ...!!! e.g. can't scroll horizontally to see the rest of it...!!! So it is cutting off some of the items on the stacked canvas? For example:
    Stacked canvas when viewed in Layout Editor
    |---------------------------------------|
    | Item 1[              ]                |
    | Item 2[              ]                |
    | Item 3[              ]                |
    | Item 4[              ]                |
    |---------------------------------------|
    Stacked canvas when viewed during runtime
    |---------------------------------------|
    | Item 3[              ]                |
    | Item 4[              ]                |
    |                                       |
    |                                       |
    |---------------------------------------|Have you tried to copy the stacked canvas instead of subclass it just to what happens?
    Craig...

  • Wanna fix an item on stacked canvas

    Hi all,,,
    plz i 've a content canvas & upp on it thr is a stacked canvas coz in the window i've abt 10 items i wanna show 5 of them & scroll to the other five
    the point now that i wanna one item of these items to be fixed when i'm scrolling to the end of the canvas so how i can do tht while when i put it on separate stacked it comes separately , as i canot make another stacked canvas on the one i have
    waiting ur reply

    thx alot for ur concern
    the problem is i just put the item (id for example)on the content canvas & rest of items are on the stacked canvas
    as first as i open the form the the id column appear alone , & when i navigate out of it ,,, it disappears & go to the other canvas
    they r not displaying together
    while wht's required here that this item be fixed on the screen & all other items r scrolled

  • Items overlapping in Stacked canvas

    Hi,
    I have added 3 columns in a stacked canvas which is in a tabbed canvas. but the new items i have added are overlapping on the existing columns. Not able to adjust the alignment properly. Please help me resolve this issue.
    Thanks & regards,
    Pavan kumar

    the sequence of the item depends on your navigation. NEXT_ITEM or PREVIOUS_ITEM navigates to the item depending on the sequence order.
    regarding your problem: did you open the canvas in the layout editor? here you will find what items do not fit on the canvas.

  • Stacked Canvas - FRM-40202

    I having this problem with my form. I getting a FRM-40202 error when trying to run my
    form which has two stacked and 1 content canvas.I have tried hiding the canvas.
    hide_view('canvas150'); go_item('control_block.pwo_nbr');
    AURUT is the content one.
    canvas150 is the stacked canvas I don't want to see.
    AWR is the stacked canvas i would like to see.
    the data blocks are as followed:
    reports
    range1 and range 2 are associated with the canvas150.
    range 3 and range 4 are associated with the AWR canvas.
    The first problem I have is that the AURUT canvas has the canvas150 canvas on top of it
    I tried deleted the canvas150 canvas and recreated it but it is still on top.of the content one and I also have a stacked canvas(canvas150) in my form.
    I think that my form is corrupt. How can I fixed this problem without redoing the whole form? I tried created a contol_block and assigning the items to the control_block in my program unit. But I still see canvas150. I getting frm-40202 error. What I have read about this error is that a field in my canvas150 needs to be filled in before it will allowed me to continue to the next canvas(AWR). I don't even want to see canvas150 while I processing the items on AWR. I'm lost as to what i can do to fixed this problem. If I changed the field in question in canvas150 to "NOT REQUIRED" my form crashes.
    I didn't have this problem with my first stacked canvas. Introducing my second stacked canvas has cause this problem.
    Thanking in advanced

    If I changed the field in question in canvas150 to "NOT REQUIRED" my form crashes.This should not happen. What happens when it crashes? Is there an error message when the crash occurs?

  • Open form in a stacked canvas

    Hello all,
    I have a content canvas which has a stacked canvas on it. the content canvas i want to use as background and there will be buttons to navigate through different forms and have those forms called on the stacked canvas. Can u please tell me how to go about doing this. thanks

    no they're just buttons which calls different forms..

  • Can we put a button on stack canvas

    Hi
    can we put a button on stack canvas
    and if we write hide_view it works??
    Please guide
    Vikas

    Vikas,
    We can put button on Stacked Canvas, and if you want to use HIDE_VIEW the stacked canvas in that button, then first you have to move the cursor to another item which belongs to other canvas,
    OR
    you have to set the Mouse Navigable and Keyboard Navigable properties of that button to FALSE.
    If this is not what you want then please explain what you actually want to achieve.
    Regards,
    Manu.
    If my response or the response of another was helpful or Correct, please mark it accordingly

  • Stack canvas is hiding...

    Hi guys.
    I have around 20 + items in a block and am showing few items in the content canvas and the remaining items in a scrollable stack canvas. Iam having show_view code in When-New-block-instance of that block.
    My problem is, when i navigate from stack canvas to the content canvas, the stack canvas is hiding.
    i.e. say my content canas has 4 items and stack has 5 to 20 items, then when i navigate from 5th to 4th or from 20th to 1st item, my stack canvas is hiding.
    Please help me in this.
    Thnx and Regards
    Sriram

    What about if you navigate from the 3rd to 4th item or from 19th to 20th? Does it happen the same? If yes, it means that the stack canvas and the 4th item(and 20th) are one below/behind each other (at least for a very small area).
    Usually this is happening when an item(from the content canvas), which is below the stacked canvas, is "navigated". Because of this, the whole stacked canvas is hidden.
    Another posibility is that some "additional" navigation happens because of some programmatic defined navigation...

  • Stacked Canvas issue

    1st issue:-
    I have created 3 pages layout under same .fmb
    Out of those , page1 I have made in content canvas & 2 layout(Say page2 & page3) I have made in two different stack canvas.Page1 contain two text field- 1.NAME 2. PROFILE CODE.
    when user open it page1 (content canvas) & page2 (1st stack canvas) should show .For a specific value in PROFILE CODE (say JAPAN) profile code (page1+page3) should open.& for all other profile codes (page 1+page2) should remain,irrespective of whatever value in NAME.
    Please tell me how can I do this??
    1. Please help me with a sample code & also where (in which trigger) I should write the condition.
    2. What all changes are required in property palette?
    3. will both the canvas will be on the same window?
    2nd issue:-
    I have tried
    In the Object Navigator, under the Canvases node, double-click the content canvas' object icon. In the Layout Editor, choose View | Stacked Views.
    and could see both the page1+page2 there from layout editor.
    BUT while I run it its showing only the page1(content canvas)
    Please help me out.....
    Thanks in advance..
    Edited by: 977083 on Dec 29, 2012 5:09 AM

    If I put it like this In WHEN-NEW-FORM-INSTANCE trigger check the PROFILE CODE and display the stacked canvas based on the value in PROFILE CODE---
    Then content canvas will be shown first(Page1) ,then user will select profile code, depending upon the profile code selected ,either page2 (stacked canvas) or page3(stacked canvas) will be shown.
    But I want whenever user opening the form ,page1 & page2 should show by default.then user will select profile code.if profile code is for page2 ,it should stay in that (default) page only.If profile code is for page3 then it will automatically go to page3 along with page1.

  • Stacked Canvas Problem in oracle 6i form builder

    Hello,
    i have 2 content canvas "DTL and PUNCH",1 tab,1 horizontal canvas in window1 and 1 another content canvas "parameter" in window2.
    i have created a stacked canvas under dtl canvas because
    I have a master-details form. my details has more columns so im planing to use stack canvas.
    but at run time it is not displaying?
    please help me regarding that?
    Thanks
    With Regards
    Vishal Agrawal

    hello,
    then you should set viewport x and y position of stack canvas below the height of button in DTL block.
    means If button y position = 170 then
    viewport position of x = 5,
    viewport position of Y = (y position of button + height of button+5) . (for Stack canvas)
    Same way,
    If stack canvas height = 270 then
    viewport position of x = 5,
    viewport position of Y = (viewport position of Y of stack canvas + height of stack canvas+5) . (for Tab canvas)
    PS

  • BOSSY STACKED CANVAS

    I have a simple form with two canvases, one content and one stacked.
    When I run the form, the stocked canvas always displays first despite having the property 'display on entry' set to 'no'.
    I have only encountered this problem having converted the form from version 4.5 to version 6i! It worked fine in version 4.5!
    What am I missing??

    Maybe, while opening your form, you're navigating to an item on the stacked canvas as first action (or you have no navigable item on the content)...
    Check out what happens using hide_view/show_view built-ins.
    Bye Marco

Maybe you are looking for

  • Values from Flash to PHP

    I am using AS2 and passing some values from flash to php,  flash files is on page file1.php   values are passing fine , it pass values when user click button when button is pressed {  var myVal:LoadVars = new LoadVars(); myVal.flieName = "fileid1 ";

  • Itunes was unable to load data class information from sync services.Reconnect and try again later.

    when I open itunes I get message " itunes was unable to load data class information from sync services. reconnect or try again later " I am unable to sync my ipad 2 or iphone 4 through itunes. I have tried all suggested options, removing itunes and r

  • Editing online

    Hi, I have seen a similar question, but I am not sure if that's the answer I was looking for. We have purchased a subscription online and the person who purchased it said they read something about being able to edit PDFs that have been uploaded onto

  • Cannot use QuickTime functions in a plain C++ application

    Hi, Im new to QuickTime.Now i need to use quicktime7.1 SDK functionalities in my plain C++ application.Hence I started with a plain C++ application just to check whether i can access the quick time functions there.Im currently using Dev-cpp IDE for d

  • Forefox is not printing using the specified margins.

    Page setup margins are specified as .5 inch width. Page is printing with an effective .88 inch margin. That throws off the formatting causing the document (an invoice generated by our web based software) to print incorrectly. The print preview on our