Trigger fired on clickin Close(X) button on a content Canvas

Hi Everyone,
Could you please help me in this scenario, we have written validations in our custom library code and attached it to
the Person-Assignment form of Oracle HRMS. Ther Person Assignment form is a single form, but having two different canvases, one
showing the Person Canvas and the other showing the Assignment Canvas. On the Assignment form, we put a validation saying that the
user would not be able to save their information if there is validation fail. But when the user clicks on the close button, user is prompted,
'Do you want to save the Changes, Yes/No', and upon selecting 'Yes', my validation message is displayed, but the control moves to the Person Block.
Here is where the problem arises, I would like to stop the user from navigating away from the Block until and unless he resolves the issue or
rollback the changes when he clicks on 'Close' button. any suggestion/help in this matter would be much appreciated.
Thanks,
Prathima.

You confuse me. First you said:
I would like to stop the user from navigating away from the Block until and unless he resolves the issueand now the problem is:
now the user is not able to navigate away from the record until the issue is resolved.Isn't that what you want?

Similar Messages

  • Forms trigger Firing Sequence

    Does anyone know where I can find details on firing sequence of each type of triggers on Item, Block and Form levels?
    Can I set the Debugger to trace the actual sequence of firing of triggers at run-time?
    Message was edited by:
    wyfwong

    i hope that the document may help!
    (V45) Trigger Execution Sequence in Forms 4.5
    =============================================
    Introduction
    This document lists the order in which triggers fire in Oracle Forms 4.5:
    o The first column, Action, describes the function to be performed
    (e.g. deleting a record).
    o The second column, Trigger Firing Order, describes the order
    in which triggers fire after a function is performed.
    o The third column, Level, describes the level (form, block, item)
    at which the trigger fires. This was accomplished by creating a form
    with all the triggers invoked. If a trigger could fire at all levels,
    it was included at all levels. Such a trigger fires at the lowest level
    at which it is defined.
    Key triggers and triggers which fire via buttons or check boxes are
    not included.
    This bulletin does not cover every contingency and covers only the
    most commonly used actions.
    Action Trigger Firing Order Level
    Runform 1. Pre-Logon Form
    2. On-Logon Form
    3. Post-Logon Form
    4. Pre-Form Form
    5. When-Create-Record Block
    6. Pre-Block Block
    7. Pre-Record Block
    8. Pre-Text-Item Item
    9. When-New-Form-Instance Form
    10. When-New-Block-Instance Block
    11. When-New-Record-Instance Block
    12. When-New-Item-Instance Item
    Enter Query 1. Post-Text-Item Item
    2. Post-Record Block
    3. When-Clear-Block Block
    4. When-New-Record-Instance Block
    5. When-New-Item-Instance Item
    Note: If you define the Key-ENTQRY trigger, this is the only trigger
    which fires in an Enter Query situation.
    Execute Query
    After Enter Query 1. Pre-Query Block
    2. Pre-Select Block
    3. On-Select Block
    4. When-Clear-Block Block
    5. Post-Select Block
    6. On-Fetch Block
    7. On-Close Form
    8. When-Clear-Block Block
    Note: If you define the Key-EXEQRY trigger, this is the only trigger
    which fires in an Execute Query situation.
    Execute Query
    Without Enter
    Query 1. Post-Text-Item Block
    2. Pre-Query Block
    3. Pre-Select Block
    4. On-Select Block
    5. Post-Select Block
    6. On-Fetch Block
    7. On-Close Form
    8. When_Create_Record Block
    9. Pre-Record Block
    10. Pre-Text-Item Item
    11. When-New-Record-Instance Block
    12. When-New-Item-Instance Item
    Exit 1. Post-Text-Item Item
    2. Post-Record Block
    3. Post-Block Block
    4. Post-Form Form
    5. On-Rollback Form
    6. Pre-Logout Form
    7. On-Logout Form
    8. Post-Logout Form
    Next Field and
    Previous field 1. When-New-Item-Instance Item
    Next Record and
    Previous Record 1. When-New-Record-Instance Block
    2. When-New-Item-Instance Item
    Next Block and
    Previous Block 1. Post-Text-Item Item
    2. Post-Record Block
    3. Post-Block Block
    4. When-Create-Record Block
    5. Pre-Block Block
    6. Pre-Record Block
    7. Pre-Text-Item Block
    8. When-New-Block-Instance Block
    9. When-New-Record-Instance Block
    10. When-New-Item-Instance Form
    Records Are Queried 1. Post-Query Block
    2. Post-Change Block
    3. Post-Change Item
    4. Post-Change Block
    5. Post-Change Block
    Go back to Post-Query
    NOTE: This cycle is repeated for each record retrieved.
    No Records Are Queried 1. When-New-Record-Instance Block
    2. When-New-Item-Instance Item
    NOTE: To observe this Trigger Firing Order:
    a. Enter a query.
    b. Enter a nonexistent record.
    c. Execute the query.
    The two triggers listed above, the Enter Query triggers, and
    the Execute Query triggers fire.
    Create Record 1. Post-Change Block
    2. When-Validate-Item Block
    3. Post-Text-Item Block
    4. When-Validate-Record Block
    5. Post-Record Block
    6. Post-Block Block
    7. On-Savepoint Form
    8. Pre-Commit Form
    9. Pre-Insert Block
    10. On-Insert Form
    11. Post-Insert Block
    12. Post-Forms-Commit Form
    13. On-Commit Form
    14. Post-Database-Commit Form
    15. Pre-Block Block
    16. Pre-Record Block
    17. Pre-Text-Item Block
    18. When-New-Item-Instance Form
    Update Record 1. When-Database-Record Block
    2. Post-Change Block
    3. When-Validate-Item Block
    4. Post-Text-Item Block
    5. When-Validate-Record Block
    6. Post-Record Block
    7. Post-Block Block
    8. On-Savepoint Form
    9. Pre-Commit Form
    10. Pre-Update Block
    11. On-Update Block
    12. Post-Update Block
    13. Post-Forms-Commit Form
    14. On-Commit Form
    Here the transaction is complete and one record added.
    15. Post-Database-Commit Form
    16. Pre-Text-Item Block
    17. When-New-Item-Instance Form
    NOTE: To observe this Trigger Firing Order:
    a. Execute a query.
    b. Change a value.
    c. Choose Action->Save from the menu.
    d. Record the triggers from that point.
    Delete Record 1. On-Lock Block
    2. When-Remove-Record Block
    3. Post-Change Block
    4. Post-Change Block
    5. Post-Change Block
    6. Post-Change Block
    7. Post-Change Block
    8. Post-Change Block
    9. Post-Change Item
    10. Post-Query Block
    11. Post-Text-Item Block
    12. Post-Record Block
    13. Pre-Record Block
    14. Pre-Text-Item Block
    15. When-New-Record-Instance Block
    16. When-New-Item-Instance Form
    NOTE: To observe this Trigger Firing Order, delete a detail record.

  • Collapse panels - close all button

    I am trying to use the Collapsible Panels widget for a FAQ
    page. Each Q/A is in its own CollapsablePanel group, so there are
    about 30 of them. I just created unique IDs for each -
    ID="CollapsiblePanel1", ID="CollapsiblePanel2", etc.
    Any idea how to create buttons to open/close all the panels
    at once? I am not that good with Javascript, so any input would be
    great and helpful.
    Thanks

    Hi MiloZ69,
    30 panels? Yikes!!! One of the widgets I have on my plate is
    a CollapsiblePanelGroup, which is basically the same markup as an
    accordion but it allows you to open/close *any* panel. Sounds like
    you could sure use that widget right now since it only requires a
    single constructor call and object to control all panels.
    Until then, you'll have to manage this manually. Make sure
    all your collapsible panels have a predictable id like "cp1",
    "cp2", etc., then try using this:
    <script language="JavaScript" type="text/javascript">
    function PanelGroup(idPrefixStr, startIndex, lastIndex,
    options)
    this.idPrefixStr = idPrefixStr;
    this.startIndex = startIndex;
    this.lastIndex = lastIndex;
    for (i = this.startIndex; i <= this.lastIndex; i++)
    var id = this.idPrefixStr + i;
    var ele = $(id);
    // Call the CP constructor and store the object
    // on the element itself so we can retrieve it later.
    if (ele)
    ele.spryCP = new Spry.Widget.CollapsiblePanel(id, options);
    PanelGroup.prototype.getWidget = function(panelIndex)
    var widget = null;
    var ele = $(this.idPrefixStr + panelIndex);
    if (ele)
    widget = ele.spryCP;
    return widget;
    PanelGroup.prototype.openPanel = function(panelIndex)
    var w = this.getWidget(panelIndex);
    if (w)
    w.open();
    PanelGroup.prototype.closePanel = function(panelIndex)
    var w = this.getWidget(panelIndex);
    if (w)
    w.close();
    PanelGroup.prototype.openAllPanels = function()
    for (var i = this.startIndex; i < this.lastIndex; i++)
    this.openPanel(i);
    PanelGroup.prototype.closeAllPanels = function()
    for (var i = this.startIndex; i < this.lastIndex; i++)
    this.closePanel(i);
    </script>
    Instead of calling a constructor for each collapsible panel,
    you can then use the PanelGroup constructor which will
    automatically call the constructor for each one:
    <script language="JavaScript" type="text/javascript">
    var cpg = new PanelGroup("cp", 1, 30, { contentIsOpen: false
    </script>
    Then add your buttons to trigger the appropriate function:
    <input type="button" value="Open"
    onclick="cpg.openPanel(3);" />
    <input type="button" value="Close"
    onclick="cpg.closePanel(3);" />
    <input type="button" value="Open All"
    onclick="cpg.openAllPanels();" />
    <input type="button" value="Close All"
    onclick="cpg.closeAllPanels();" />
    --== Kin ==--

  • Trigger Firing in Form6i

    Hi all
    ill explain detail my situation
    In my forms
    my menu contain icons like new(+),save,e.t.c.
    when I click on new(+) icon one additional record comes for inserting
    But i don't want it. I tried to know the trigger fired for adding record to disabling the trigger action.
    ex;
    icons: new ,save,cut and so.on
    My form records are like this e.g.
    A
    B
    C
    If I click on NEW icon, one record was added like this for inserting
    A
    B
    C
    My requirement is even if I click on NEW icon, no action will be performed. Can you Plz give me the idea?
    Thanks
    RangaReddy

    Instead of breaking the WHEN-BUTTON-PRESSED trigger that fires for that button, you should disable the button. Otherwise, a user may think the form is "broken."
      set_item_property ('ADD', ENABLED, PROPERTY_FALSE);Replace "ADD" with whatever your button is named.

  • I cannot open my firefox broswer. The message box appeared that said a problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. Under that there are debug and close program buttons.

    I cannot open my firefox broswer. The message box appeared that said a problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. Under that there are debug and close program buttons.

    JackieMars71 I would recommend reviewing your installation log files to determine if there are any errors during the installation process.  You can find information on how to locate and interpret your installation log files at Troubleshoot install issues with log files | CC - http://helpx.adobe.com/creative-cloud/kb/troubleshoot-install-logs-cc.html.  You are welcome to post any specific errors you discover to this discussion.

  • How do I add a close window button/image

    All I want to do: Add a close window button (round/square with an "x" through it) to either one or many html files. I don't see how to do this.
    Using RoboHelp 8 HTML and WinXP. Thanks.

    Ahh I see now. You are asking where to obtain such an image!
    The RoboHelp Gallery doesn't contain one. Sorry. You will need to obtain one from any number of other locations.
    You might look at the following link for one possibility.
    Icon Archive
    Here are a couple from my own colloection. You might right-click and save as.
    There are also a number of packages you may purchase or find. Perhaps the following link will help.
    Click here to search Google
    I cannot advise on the legal implications of using said images.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcererStone Blog
    RoboHelp eBooks

  • The 'close pdf' button gone in cs 5.5

    hi
    I have indesign cs3 files utilising the interactive buttons and are then exported to pdf. I have upgraded to cs5.5 and  the 'close pdf' button I created in cs3 no longer works. On double checking the button panel, the option for 'next page, previous page, etc' is still there but the 'close' option is gone. This means the close button on every page of the 24 page documents no longer works. These files are outputed to pdf. Why has this been removed. This is the second button option removed in the cs5.5 upgarde. We lost the email to a friend option 'attached to email' in acrobat and now functions are missing in inDesign!
    Beside our clients still wanting this function, there is no way you can close a full page pdf (without menu bar) unless clicking the Esc button on your keybaord. If you are on a tablet it is then really awkard

    I did that with Acrobat 10. Are you using Acrobat 8 or 9? This is a quote from Acrobat 8 help:
    Select the form field that you want to duplicate.
    Choose Forms > Edit Fields > Duplicate.
    Note:  The Duplicate command isn’t available for forms with only one page. 
    Do one of the following:
    To duplicate the form field on every page in the form, select All, and click OK. 
    To duplicate the form field on a limited range of pages, click the From button, and type the start and ending pages on which you want the form field to appear.
    Note:  Including or not including the page on which the form field originally appears doesn’t affect the duplication process. Including that page won’t create a second copy on top of the original one, and not including it won’t remove the original form field. 

  • Custom close / exit button in HTML widget

    Hi,
    how to set a custom close / exit button in a HTML widget for iBooks Author? I want to replace or hide the standard button in the top left corner.
    I already tried some JavaScript but nothing seems to work so far. Where can this button be modified or disabled and how to create a custom one?
    Best regards

    Hi Ken,
    thanks for your reply.
    It's good to hear that this button can be changed.
    It would be interesting to know how this can be achieved. Any hints?
    Best regards

  • Open/Close chart button not working in Account Fact Sheet

    Hi,
    My requirement is like this:
    There are some standard assignment blocks like Contacts and custom assignment blocks like Sales order details in  Account Fact Sheet(AFS). There is one Open/Close chart button present at the top of each assignment block. When it is clicked, a pictorial representation of data in AFS is displayed.
    My question is where is the code written for this functionality. The tool bar based buttons defined in the implementation class of corresponding component like get_buttons, get_system_buttons etc are not at all defined Also there is no coding written in the HTML page of the view.
    Please let me know if anybody worked on this.
    Regards,
    Narendra

    Hi All.
      We are working on SAP CRM 7.0 EHP2.We need to show account factsheet on Account Overview page in IC-Agent Role.
      We are using account factsheet BP_ACCOUNT_FS.In this account sheet,data is not populated or not able to select the org data in view " Sales Organization Selector".same data is appearing  in Account Overview page.
    Same type of issue (Account Shipping data, Account Sales data, Account Billing Data etc is not coming in factsheet)was posted eariler and status of post is resolved but solution is not given.
    Please help us in this issue.
    Regards,
    Urvashi

  • Sequence of trigger firing in forms 6i

    hai,
    please reply soon ..
    i need full details about sequence of trigger firing when form initiate,
    query mode,modify mode,delete mode and insert mode in forms 6i .
    regards,
    B.prakash

    please look into the forms 6i online help manuals. There are the trigger flows of all events

  • Sequence of trigger firing in Forms

    hi all,
    can any one tell me sequence of trigger firing in forms
    regards,
    Ajay

    Sorry boss,
    the actual link is:-
    Forms trigger Firing Sequence

  • How can I adjust size of 'close tab' button?

    I'm using 12.5" fullhd touch laptop and close tab button so small that it's real pain to hit.
    I need it at least 4 times larger for somewhat comfortable touch navigation.
    Add-ons and CSS is OK.
    Windows 8, Firefox 20, also tried Aurora

    In the ancient days of Firefox 1, a button to close the current tab appeared at the far right end of the tab bar instead of on the individual tab. If you need a much bigger button, and you find that too much of the page title is crowded out by having the button on the tab, you could switch to the old style so your wider/taller button doesn't impinge. My old page on the setting to change is here if you're interested: [http://jeffersonscher.com/FxPrefs/tabClose.html].

  • Firefox 4 the "close tab" button is missing from the "File" pull down

    In Firefox 4 the "close tab" button does not appear in the "File" pull down.
    This button does appear in Firefox 3.6.16 but is now gone.
    I need it when I have two windows open, each with one tab open and I want to close one window.
    The only option presented to me is "Quit" which closes both windows...

    I agree with what you said,
    "OK. While of nuisance value [why isn't this the default?]"
    Why isn't it the default?
    Why force users to switch from a mouse to a keyboard (control-w) just to close a tab?

  • Is it possible to change trigger firing sequence by program?

    Hi,
    I would like to know if there is a command like set_item_property or set_block_property or set_lov_property which can allow to change by program a trigger firing sequence. I do not find any, so i think i have to do it manually in property palette of the trigger. Thanks for your answer.

    Thx
    To change Execution Hierarchy of a trigger, we go into Property palette of that trigger to change this property, i want to know if it is possible to change this property by program without need to go into Property palette of that trigger, EXECUTE_TRIGGER executes an indicated trigger but how to change Execution Hierarchy (for example set_lov_property sets the given LOV property for the given LOV, we use set_lov_property in the program and do not need to go into property palette of this lov), hope you understand what i would like to do. thanks for your help.
    Edited by: Tabit7 on Mar 20, 2011 4:40 AM

  • Oracle Forms Trigger firing hierarchy flowchart

    Greetings,
    In 1994, there was a "Oracle Forms Processing Manual" (Oracle part# A11990-2).
    This book contained the visual representation of Oracle Forms processes showing where each trigger fires.
    Where is this "flow-chart" in documentation available today?
    I need to know the explicit chronological sequence of each trigger firing....
    Pre-Form trigger fires first...then the When-New-Form-Instance....etc
    Thank you for your support!

    Sorry.
    Let me clarify.
    Need to know where it is defined about which trigger fires before or after which other trigger….
    The whole sequence…every trigger…
    Example:
    Document must show stuff like ON-COMMIT fires before(or after) POST-DELETE.
    So I am certain that when a delete is initiated by the user, the ON-COMMIT fires before(or after), and so data in the database record is still available(or not available) to the code in the ON_COMMIT trigger.
    This helps me know for certain what really happens, step-by-step, when Forms deletes a record.
    So the document must show a visual representation of the DELETE EVENT.
    This visual representation must explicitly show the ON-COMMIT trigger and the PRE-DELETE trigger and the ON-DELETE trigger and the POST-DELETE trigger…
    Thank you!

Maybe you are looking for

  • URGENT: Oracle EBS 12.1.3 to Apex 4.1.1

    Hi Friends, I am trying to open Apex page via Oracle EBS responsibility. I performed steps as given by Oracle White paper on Integrating Oracle EBS to APEX http://www.oracle.com/technetwork/developer-tools/apex/learnmore/apex-ebs-extension-white-pape

  • Shipment cost calculation based on HU's allowed packaging weight

    Hi all, I need to calculate a shipment cost based on the Means of Transport's Allowed Packaging Weight (MARA-ERGEW). After condition record determination of cost per ton in each case, the system must multiply this value times the allowed packaging we

  • Ipod:dead. Me:crying

    I have a 2nd gen 20 gig, scroll wheel, using a firewire. My ipod is no longer detected by windows or itunes. I plug it in and hear the 'du-du' - my computer recognizing new hardware BUT I cannot see anything under My Computer and of course itunes. I'

  • Screen has yellow tint

    Whenever I turn my imac on it has a yellow tint. I've done the color calibration. Sometimes it'll turn back to normal, but when I shutdown/sleep and turn it back on it'll turn yellow again. Then other times when I do the color calibration, it won't e

  • My macbook pro mid 2012 keeps crashing.

    Hi people. I just converted to mac and bought a second hand mac book pro. Its a mid 2012 model.retina. 2.7ghz, intel i7. 16gb ram. 500gb storage. Its running yosemite. and it for some reason crashes quite regularly when using photoshop. in the spec n