Change Confirmation Dialog Title

Hi all,
Does anyone know how can I change the title of a confirmation dialog ?
Thanks,
Jesus.

Hi Jesus,
IWDWindow has the setTitle() method only from SP12 onwards (https://media.sdn.sap.com/javadocs/NW04/SP12/webdynpro/com/sap/tc/webdynpro/services/session/api/IWDWindow.html).
So it all depends on your version. If you are using an older version, you have no <b>recommended</b> method for this (check the following links )
Title Change of the confirmation dialogue
Confirmation Dialog setTitle
setTitle Method of interface IWDConfirmationDialog
Best Regards,
Nibu.

Similar Messages

  • HT1343 Is there a shortcut for "Revert Changes" in the Close/Save confirmation dialog box?

    In OS X 10.8 Mountain Lion, the Close/Save confirmation dialog asks the user:
    Do you want to save the changes made to the document “Screen Shot 2012-10-12 at 12.35.12.png”?
    Revert Changes          Cancel     Save
    Is there a keyboard shortcut for this command, as there is one for Delete (Cmd+Delete) in new document closing confirmations?

    I'm not sure if there is a shortcut (I didn't find one), but if you turn on Full Keyboard Access in the Keyboard system prefs, all controls can be accessed from the keyboard. You can tab through (or arrow keys) the buttons. The active button will be outlined and can be activated with space bar. Since Revert Changes is the first button, it will come up outlined and you can just hit the spacebar to choose it.

  • How to popup confirm dialog trying to navigate away with unsaved changes

    Is there any generic or built-in solutions for this common requirement?
    JDev: 11g
    any idea or material on this is appreciated.
    Thanks.
    Kevin.

    try capturing the onBeforeUnload event and display a modal confirmation dialog asking the user if he really wants to navigate away from the page; and warning him that if he does so, all the changes he made hitherto will be gone.
    However, you need to handle this intelligently since you need to identify if any fields in the form have changed and only then warn the user to confirm his decision to go away from this page.
    You can do this by having a flag which is initialized to false but when onBeforeUnload event is fired, you would check if any of the form fields in the page have changed by iterating over each and every form field,and then setting the flag to true if some thing changed
    the onBeforeUnload Handler will always return this flag, if it is true, you will get this confirmation popup, else the page will go away. To show a customized confirmation dialog, perhaps you would have to invoke the custom dialog call from with in the onBeforeUnload handler. When the user says yes, return false;else true.

  • Confirmation Dialog when clicking on Tree Node.

    I am working on Oracle Apex 4.2.0.00.27 and I have the following problem:
    The code below shows the definition of a tree. The tree displays records from the table ACTIVITIES in hierarchical structure.
    When user clicks on a leaf/node of the tree he will be redirected to another page where the details of each Activity/leaf/node are displayed.
    The tree is part of a page where I have established a functionality to check for changes on the input fields of the page and inform the user when he tries to redirect without first saving the changes he made.
    What I want to do is:
    WHEN user clicks on a node of the tree AND he hasn't saved any changes he made
    THEN
    trigger a confirmation dialog.
    IF
    he clicks OK he is redirected to the node details page as defined on the tree definition:
    f?p=&APP_ID.:10:'||:APP_SESSION||'::::P10_ID:'||"ID"
    ELSE if he clicks CANCEL
    he stays on the same page.
    The condition to trigger the confirmation box is:
    if (document.getElementById('P0_CHANGES_DETECTED').value == 1)
    where P0_CHANGES_DETECTED is a universal hidden text field that is set to +'1'+ every time a change is made.
    and here is the tree definition:
    select case when connect_by_isleaf = 1 then 0
    when level = 1             then 1
    else                           -1
    end as status,
    level,
    +"NAME" as title,+
    null as icon,
    +"ID" as value,+
    null as tooltip,
    decode(PARENT_ID,null,null, 'f?p=&APP_ID.:10:'||:APP_SESSION||'::::P10_ID:'||"ID") as link
    from "#OWNER#"."ACTIVITIES"
    where GROUP_ID = :P20_GROUP_ID
    start with "ID" in (select ID from "#OWNER#"."ACTIVITIES" where GROUP_ID = :P20_GROUP_ID and PARENT_ID is null)
    connect by prior "ID" = "PARENT_ID"
    order siblings by "ID"
    I hope it is clear what I want to achieve. Thanks in advance.

    So you'll want to bind an event to all tree nodes that checks for the value and then fires the confirmation if there value is 1.
    Try something like this:
    - first, give your static ID attribute in your tree the value of tree_static_id (or whatever you want. just replace the id selector below with what you choose).
    - In your Page Function and Variable Declaration Javascript:
    function confirmSave() {
    var changeDetected = jQuery('#P0_CHANGES_DETECTED').val();
    if(changeDetected == 1) {
    //only do this if change is detected
    if(confirm('You have unsaved changes. Do you want to leave this page?')) {
    window.location('[your url here]');
    jQuery(document).ready(function() {
    //bind function to the click event
    $('#tree_static_id').find('li a').bind('click', function() { confirmSave(); } });
    });Hope this helps

  • Confirm Dialog (JavaScript)

    Hi,
    I'm using the JavaScript confirm dialog attached to a button (return confirm('xxxxxxxxxxxxxxx').
    It works fine but I need two things:
    1. How can I change the window title?
    2. How can I change the titles of the two buttons? (I need them in Spanish).
    Thanks a lot for your help

    Hi!
    As far as I know, there is no possibility to change title of standard dialogs like alert, confirm etc. You can use window JavaScript object and set title in it's parameter name.
    And since JavaScript is realized in browser, it seems that change of your locale should change button's title to language of locale.
    Thanks,
    Roman.

  • Confirm Dialog?

    As a flex newbie with a pretty good understanding of
    Javascript, I was thrilled to find the Alert.show() function
    available to replace the alert() function I often used in
    Javascript. That got me wondering... is there a corresponding
    function for the confirm() function as well? I tried
    Confirm.show(), but with no luck, as that shows up as an undefined
    property.
    I was hoping there's a simple way to activate modal
    confirmation dialogs, as I'd hate to have to build an entire
    component just for that.
    Thanks,
    Josh

    Well, there is an relative simply solution for this:
    Make a button with calls a function when clicking:
    <mx:Button label="Click Me"
    click="clickHandler(event);"/>
    Use the following implementation of the eventhandler:
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.events.CloseEvent;
    // Event handler function uses a static method to show
    // a pop-up window with the title, message, and requested
    buttons.
    private function clickHandler(event:Event):void {
    Alert.show("Do you want to save your changes?", "Save
    Changes", 3, this, alertClickHandler);
    // Event handler function for displaying the selected Alert
    button.
    private function alertClickHandler(event:CloseEvent):void {
    if (event.detail==Alert.YES)
    status.text="You answered Yes";
    else
    status.text="You answered No";
    ]]>
    </mx:Script>

  • Code of confirmation dialog window

    Hi all,
          I have a component in which, I need to display confirmation dialog window when am trying to close a  window  with three buttons like YES,NO and CANCEL ...Its not like an pop-up window..can anybody provide source code for this..Thanks in advance

    Use Work Protect mode if you are running in Portal environment.
    SAP Online Help : http://help.sap.com/saphelp_nw70/helpdata/en/45/b76f4169e25858e10000000a1550b0/content.htm
    Thread which discuss the same :
    Re: Save Changes before leaving a web dynpro application

  • Midnight Commander confirmation dialogs default to "yes"

    I finally found a file manager that I like. Yay.
    However, Midnight Commander's confirmation dialogs (e.g. when deleting a file) always pop up with "yes" preselected, which means that your data is toast (or whatever) if you accidentally hit Enter. Guarding against accidental keystrokes is IMO a Big Deal, and I consider this a rather serious issue.
    I've yet to come up with anything on this on Google... So, does anyone here know how to make those dialogs default to "no"?

    you are welcome,
    Nope, there is no config option for such thing. However you can change the source, in src/filemanager/panel.c then add query_set_sel (1); just before:
    if (query_dialog
    (_("The Midnight Commander"),
    _("Do you really want to execute?"), D_NORMAL, 2, _("&Yes"), _("&No")) != 0)

  • How to change the Window Title on a per build spec basis?

    I would like to be able to make 4 "build specificiations" against the same Startup-VI and be able to have the Window Title different in each of the output executables.   I know how to change the Window Title for the VI itself, but for some reason, I don't see the ability to override this information in Source File Settings --> Customize VI Properties dialog of the build specification.    Is there perhaps a way to do this programattically with VI server?  Perhaps there is a way I can define a unique symbol on each of the build specs and then do a case statement in code to determine which title to display based on the symbol that was defined?
    Thanks,

    You can use the appropriately named Window Title property. In your project you can define conditional disable symbols (right-click on the project node and select Properties) and then use a conditional disable structure in your code. However, these symbols apply to the entire project, not to a specific executable. Thus, a better route would be to use the executable name (also accessible via a property), if possible, or some other distinction between the executables. What makes the executables different?

  • Confirmation Dialog Problem

    Hello!
    I am facing a peculiar problem in the production system where in the confirmation dialog isn't working and the NullPointerException is getting thrown. For some reason the production server isn’t getting the handle for the event even though they are defined and the same piece of code is working fine in both Dev & QA.
    Could someone look into the code and let me know what I can do to make it work.
        try
              String dialogTxt =     "Are you sure you want to ignore changes? ";
              IWDEventHandlerInfo eventIgnore               =     wdControllerAPI.getViewInfo().getViewController().findInEventHandlers("evtIgnoreChanges");
              IWDConfirmationDialog dialog               =     wdComponentAPI.getWindowManager().createConfirmationWindow(dialogTxt,eventIgnore,"Yes");
              IWDEventHandlerInfo eventIgnoreCancel     =     wdControllerAPI.getViewInfo().getViewController().findInEventHandlers("evtIgnoreCancel");
              dialog.addChoice(eventIgnoreCancel,"No");
              dialog.setWindowPosition(WDWindowPos.CENTER);
              dialog.setWindowSize(250,50);
              dialog.open();
        }catch(Exception ex)
             wdComponentAPI.getMessageManager().reportException("Error ignoring changes",true);
             ex.printStackTrace();
    Thank you very much in advance.
    Regards,
    Vikram

    Hi,
    Use this code:
    IWDControllerInfo controllerInfo =
            wdControllerAPI.getViewInfo().getViewController();
          String dialogText = "Are you sure you want to ignore changes?";
          IWDConfirmationDialog dialog =
            wdComponentAPI.getWindowManager().createConfirmationWindow(
              dialogText,
              controllerInfo.findInEventHandlers("evtIgnoreChanges"),
              "Yes");
          dialog.addChoice(
            controllerInfo.findInEventHandlers("evtIgnoreCancel"), "No");
          dialog.open();
    check if you have created events with name evtIgnoreChanges & evtIgnoreCancel in your view controller.
    Regards,
    Rajeev

  • Confirmation Dialog setTitle

    Hello,
    Is it possible to set the title of an IWDConfirmationDialog? I want to replace the standard title "Confirmation Dialog" by my own title.
    Thanks,
    Thomas Morandell

    Hallo,
    although I have pity with your situation I insist on the following rule and not to hijack IWindow in your case:
    <u><b>Never Ever Hijack Internal Web Dynpro Classes and Interfaces</b></u>, described in https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1222. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    Regards, Bertram

  • Confirmation Dialog which saving any settings at OCI Mapping

    Hi Experts,
    OCI Mapping:
    when i change and settings at OCI and when i click on Save button, I used to get popup(Confirmation Dialog) window with messaage as " Price fields are not configured consistently across all views".
    I am not able to findout what is exact problem and why it is showing such message?
    You help will be rewarded in points..
    Thanks
    Bharat

    that happens when the same price setting fields (contract and list price) are not set for all the views in the catalog .
    you should have the same fields (settings) for price - in all the views in the catalog (Resultset , Itemdetials, context, compare and Shopping list) to ignore the warning
    thanks
    -Adrivit

  • Submiting JSF form on clicking ok of Confirm dialog box

    Hi,
    We are using JSF 1.2 and Seam 2 in our project.
    We have set of requirements
    1)To throw a confirmation dialog box when user tries to navigate away from page with out saving the data changes. It includes browser closure, back button and refresh as well along with other application navigation links.
    2) upon clicking ok we need to save the current JSF form and redirect to where user is intended to navigate.
    Please let me know the best ways of implementing the above requirements.

    For the first point, I totally agree with Raymond and you can use the javascript function like this:
    <script>
    window.onbeforeunload =
    function(){
    if((window.event.clientX<0) || (window.event.clientY<0)){
    //create new confirm window here
    //I guess you can check on opening a new JSF page itself as a pop up.
    //in that page with normal form and submit buttons, I guess you can call JSF action methods.
    </script>

  • Confirm Dialog on Closing Web Application with unsaved data?

    Hi all,
    I am searching for best-practices or official solutions for implementing the following functionalty:
    User is trying to close the browser window or tab (Mozilla Firefox) by hitting the "X". We need to ask him if he is sure cause there might be unsaved data.
    The only solution we now see is the following:
    - event "onbeforeunlad":
    window.onbeforeunload = function (oEvent) {
      oEvent.returnValue = 'Sure? Unchanged data might be lost'
    Problem is that this event also runs, when youre navigating in the analysis item, e.g. expanding a hierarchy. You have to switch it of for every single Item with onmouseover and switch it on again later.
    And further on: It still has to be bound to the data... if data hasn't changed, it shouldnt pop up.
    Question: Are there any official suggestions from SAP? Seems to be a standard requirement. If not, do you know any better solutions for implementing this functionality?
    Thanks in advance for your help,
    Michael

    try capturing the onBeforeUnload event and display a modal confirmation dialog asking the user if he really wants to navigate away from the page; and warning him that if he does so, all the changes he made hitherto will be gone.
    However, you need to handle this intelligently since you need to identify if any fields in the form have changed and only then warn the user to confirm his decision to go away from this page.
    You can do this by having a flag which is initialized to false but when onBeforeUnload event is fired, you would check if any of the form fields in the page have changed by iterating over each and every form field,and then setting the flag to true if some thing changed
    the onBeforeUnload Handler will always return this flag, if it is true, you will get this confirmation popup, else the page will go away. To show a customized confirmation dialog, perhaps you would have to invoke the custom dialog call from with in the onBeforeUnload handler. When the user says yes, return false;else true.

  • Change the Report Title for XML Publisher, depending on the field value.

    I want to change the Report Title as below.
    if the field_A='B' then the report title as it is defined in report defination
    else the report title is 'XXX"
    Please let me know whether it is possible, if yes please guide me. how can we do it.
    Thanks
    Venkat

    Tim covered the inline if statement, though not specifically regarding a title, in his blog recently:
    http://blogs.oracle.com/xmlpublisher/2007/12/18#a723
    The syntax is:
    xdoxslt:ifelse(.//WM_FLAG='C’,'Canceled','Approved')

Maybe you are looking for

  • Installation problem with CS5.5 on my new Windows 8.1 laptop

    I downloaded CS 5.5 Design Premium to my new Windows 8.1 laptop. When launching the Set-up.exe file I get the error message "Installer Failed to Initialize. One or more files could be missing."  I downloaded the Adobe Support diagnostic tool but it d

  • Create a link within a photoshop image?

    forgive me if this topic has been beaten to death but i couldnt find what i was looking for in a search: i'm importing photoshop images as each of my webpages but would like to create links from text within the .jpg file. i'm pulling out my hair tryi

  • Error when invoking webservice from ODI

    Hi all, When I execute my ODI scenario ( This scenario call a BPEL websevrice ) ,I Have this error , please have you any idea, com.sunopsis.wsinvocation.SnpsWSInvocationException: Error doing JNDI lookup on target jdbc/PRT_DBDS      at com.sunopsis.w

  • Ethernet acting up.

    About 2PM yesterday, my ethernet started acting very strange. It was working fine and then all of the sudden it switched off. Then on again. It switches from connected and active to not plugged in about every other second. The connection is fine and

  • Upgrading Macbook 4,1 to SSD. Worth it?

    Hi everyone, I just failed at swapping out my Macbook Pro 4,1 (that is, the last 2008 Aluminim macbook pro model before unibody came out) 's Superdrive for a SSD drive. It turns out the data doubler I purchased from OWC is only for models newer than