Displaying Multiple Sentences in Confirmation Dialog Box

Hi Experts,
Can anybody please tell me how to display three or multiple separate sentences in a Confirmation
Dialog box. I am able to diaplay two sentences in a single line but the dialog box is getting stretched a
lot. So i want to diaply them in separate sentences onr below the other.
Thanks a lot.

Hi shrini...
               you want to number of line display in one dialog box ..
              you have to declare one Strinh like thiss as below..
have to create one event method as OK...which is visible in eventhandler code as
findInEventHandlers("OK");
create one method in component aas showBox....
public void showBox( )
    //@@begin showBox()
     String   dialogText="welocme to""\n""India""\n".........................
      IWDEventHandlerInfo info=wdControllerAPI.getControllerInfo().findInEventHandlers("OK");
     IWDConfirmationDialog win=wdComponentAPI.getWindowManager().createConfirmationWindow(dialogText,info,"OKK");
  win.open();();
thanks
jati

Similar Messages

  • Multiple Confirmation dialog boxes event handling

    Hi all,
    I had a scenario, where i need to display two confirmation dialog boxes based on timers.
    At the first timers timeout confirmation dialog box poped up and user haven't done anything.
    second confirmation dialog popup appears after second timer timeout.
    But, my problem is closing or destroying the first dialog box, when handling the second dialog event or before second dialog popup on screen.
    Can anyone suggest the best approach to handle dialog destroy functionality.
    regards,
    Venkat

    hi!
    also refer to this link if you are going for dialog windows
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/903fed0d-7be4-2a10-cd96-9136707374e1
    thanks
    vishal

  • How to simply display resulting text in a dialog Box

    Is there a way to simply display resulting text in a dialog Box - not a text edit document?
    Doug_

    Thanks that's very helpful
    What I am trying to to is to create a workflow that opens mail and displays iCal TO DO's that I have created throughout the day tagged with the word MAIL so they can be filtered.
    At the moment the ACTIONS are:
    Launch Mail
    Get New Mail
    Find TO DOs in iCal (Who's SUMMERY includes MAIL)
    I get iCal To Do's as a result
    But then...I can find no options to display the iCal Events that result.
    Putting in the Applescript you posted displays a blank dialog box. This tells me that there is no text in the result.
    Yet if I put a SPEAK TEXT in after find TO DOs it dutifully speaks my filtered TO DO's
    I thought I might just try a NEW MAIL MESSAGE action.
    This works great in the workflow. The content of the new mail is the filtered TO DOs.
    But if I save it as an application (the form I need it in), mail simply opens blank when it reached that part of the work flow.
    What would you recommend?
    Thank again for your help,
    Doug_
    Message was edited by: Douglas Suiter
    Message was edited by: Douglas Suiter
    Message was edited by: Douglas Suiter

  • File download element in confirmation dialog box

    Hi,
    Can I use File Download elements in Confirmation Dialog Box?Please raply me as early as possible.
    Regards
    Aniruddha

    Hi
    You can not use  File-Upload UI element inside confirmation dialog ,because there is no provision to add any UI ,except Button.
    Please avoid  my previous reply .
    Best Regards
    Satish Kumar
    Edited by: satish jhariya on Mar 3, 2009 11:29 AM

  • Logout confirmation dialog box

    Hi,
    Kindly provide me some sample example for showing confirmation dialog box in ADF (jspx page) on click of of a RichCommandImageLink?
    Thnx,
    Vikas

    Here we go:
    Code for the command button
                      <af:commandButton text="Logout" id="cb2">
                        <af:showPopupBehavior popupId="p1" triggerType="action"/>
                      </af:commandButton>
                      <af:popup id="p1">
                        <af:dialog id="d2" dialogListener="#{LoginLogout.dialogLogoutListener}">
                          <af:outputText value="logout?" id="ot2"/>
                        </af:dialog>
                      </af:popup>In a managed bead (here called LoginLogout) implement the dialog listener and navigation if the user really wants to logout
        public String logoutTarget(String aTarget)
            ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
            HttpServletResponse response = (HttpServletResponse) ectx.getResponse();
            String url = ectx.getRequestContextPath() + aTarget;
            HttpSession session = (HttpSession) ectx.getSession(false);
            session.invalidate();
            try
                response.sendRedirect(url);
                FacesContext.getCurrentInstance().responseComplete();
            catch (IOException e)
                e.printStackTrace();
            return null;
        public void dialogLogoutListener(DialogEvent dialogEvent)
            if (dialogEvent.getOutcome() == DialogEvent.Outcome.ok)
              logoutTarget("/byby.html");
        }The method logoutTarget(String aTarget) does the navigation to a target which is given as parameter. This method is called by the dialogListener if the use clicks ok. In case the user closes the dialog or clicks cancel, the dialog listener is NOT called at all.
    We use a normal html page as target of the logout because using a jspx page causing trouble sometimes. The session gets invalidated in the bean, but the URL still contains the old session info in the url, resulting in some side effects.
    Timo

  • Confirmation Dialog Box

    Hi All,
    With ADF UIX, what is the recommended way to implement a confirmation dialog box to get user's confirmation before an action is actually executed? Any UIX element like <messagebox>?
    Thanks.
    Elton.

    Elton,
    The best examples we have publicly available are at http://download.oracle.com/otn/nt/ids/uix/217/uix-demo-2.1.7.zip
    (I hope the link still works)
    This is for UIX 2.1.7, which is what ships with JDev 9.0.3. You'll want to do some things a bit differently if developing with UIX 2.2 in JDeveloper 10G.
    Hope this helps,
    Ryan

  • Tooltip for buttons on Confirmation Dialog Box

    Hi,
    How can we set the tooltips for buttons on the Confirmation Dialog Box.
    Pls throw some light on it.
    Rgds
    Shashank

    Found the solution:
    I Used 'ADMRadioGroupSuite1' Suite - RadioGroupSuite ("ADM Radio Group Suite") to group them. 

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

  • Confirmation dialog box in JSf

    Hi,
    I have a Save (type 'Submit') button which onClick should give me a confirmation dialog box with Ok and Cancel.
    Ok would go ahead with the process and cancel would take me back to where the page was before the save button was clicked.
    Any help is really appreciated.
    Thanks.

    Hello,
    I hope you can invoke a javascript function when the user clicks on "Save" button (onClick event for save button). Specify window.confirm(....) inside your javascript function which will give you confirmation window. I am not well enough how you want to handle navigation in your page.

  • Confirmation Dialog Box Appears Disappears

    Hi,
    I am facing a problem here on Same os win 98 using different versions of Java run time environment.
    The code is supposed to work in this way.
    Applet is initiated by a click. a confirmation dialog box appears askign for input from a user in the form of a Yes or a No. if the user clicks Yes the applet continues otherwise it terminates.
    while using 1.4.1_02 This problem occurs that the Confirmation dialog box appears and then disappears for the jar is being downloaded.
    But using 1.3.1_04 gives no problems and the Confirmation box does not disappear.
    Regards,
    Saurabh

    Hmmm, are you running 10.6.8 or later & installed the Security updates?
    Java was an attack vector for FlashBack.
    Disable Java in your Browser settings, not JavaScript.
    http://support.apple.com/kb/HT5241?viewlocale=en_US
    http://support.google.com/chrome/bin/answer.py?hl=en-GB&answer=142064
    http://support.mozilla.org/en-US/kb/How%20to%20turn%20off%20Java%20applets
    Flashback - Detect and remove the uprising Mac OS X Trojan...
    http://www.mac-and-i.net/2012/04/flashback-detect-and-remove-uprising.html
    In order to avoid detection, the installer will first look for the presence of some antivirus tools and other utilities that might be present on a power user's system, which according to F-Secure include the following:
    /Library/Little Snitch
    /Developer/Applications/Xcode.app/Contents/MacOS/Xcode
    /Applications/VirusBarrier X6.app
    /Applications/iAntiVirus/iAntiVirus.app
    /Applications/avast!.app
    /Applications/ClamXav.app
    /Applications/HTTPScoop.app
    /Applications/Packet Peeper.app
    If these tools are found, then the malware deletes itself in an attempt to prevent detection by those who have the means and capability to do so. Many malware programs use this behavior, as was seen in others such as the Tsunami malware bot.
    http://reviews.cnet.com/8301-13727_7-57410096-263/how-to-remove-the-flashback-ma lware-from-os-x/
    http://x704.net/bbs/viewtopic.php?f=8&t=5844&p=70660#p70660
    The most current flashback removal instructions are F-Secure's Trojan-Downloader:OSX/Flashback.K.
    https://www.securelist.com/en/blog/208193454/Flashfake_Removal_Tool_and_online_c hecking_site
    More bad news...
    https://www.securelist.com/en/blog/208193467/SabPub_Mac_OS_X_Backdoor_Java_Explo its_Targeted_Attacks_and_Possible_APT_link

  • How to display multiple lines in a text box defined in  steploop.

    Hi,
    I have a requirement to display data ( which is dynamic in nature. I determine data type,length etc dynamically) in a table format. I am using step loop for the same. I am facing a problem. Some field can be as long as 256 char long. Is there  any way to display multiple lines in text box defined in a step loop so that I can display the complete string as one entity.
    I can't use custom control as custom control can't be defined in a step loop or table controlI would really appreciate your help on this.
    Regards,
    Sanjeev

    Hello Sanjeev
    Perhaps it is possible to use a <b>mixed strategy</b> consisting of a classical table control (or, even better, an ALV grid list) where you display the first 250 character of the data and next to the table control you place a simple textedit control. When the user selects one of the text fragments in the table control the entire text will be displayed in the textedit control.
    Regards
      Uwe

  • How to display a screen as Popup Dialog box in Module Pool

    Hi All,
    I have a requirement to display a popup dialoge box into module pool.
    i need to display a screen as a popup on the current screen on a button click.I have developed a screen and in atribute tab i have defined the screen type as modal dialog box but  it is displaying previous screen screen is hide i want to display on the same screen as a popup.
    Thanks
    Narendra

    Hi Narendra,
    Try to trigger the popup once it is done with the previous action might be anything.
    i have shown one sample code where after i click on save button when the data is saved successfully
    after that it has to trigger me a popup asking for conformation for the next action.
    A small piece of code
    INSERT INTO ZORMD1 VALUES WA_ZORMD1.
        IF SY-SUBRC = 0.
          G_LOCAL1 = 0.
          MESSAGE S000.  " Data saved successfully and immediately call the popup
    CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
            EXPORTING
      DEFAULTOPTION  = 'Y'
    TEXTLINE1 = 'SUCCESSFULLY SAVED'
              TITEL = 'POPUP FOR conformation'
             START_COLUMN         = 25
             START_ROW            = 10
            CANCEL_DISPLAY       = 'X'
           IMPORTING
    ANSWER  = G_PRINT
    IF G_PRINT = 'J'.
    PERFORM PRINT_OUT.
    ENDIF.
    Do the modification according to your requirement.
    Cheers!!
    VEnk@

  • Displaying Japaneese character in SaveAs Dialog box

    Hi,
    I have a problem with displaying japanese file name in 'save as' dialog box.
    I have a page that lets user to download a file. On downloading a file , the 'save as' dialog box opens up with the file name. The file name is passed to the dialog box by setting the content-disposition as given below in the jsp
    response.setHeader("Content-Disposition", "attachment;filename=" + strFileName);
    The file name string is encoded in japanese EUC-JP charset. The page content-type is also set to EUC-JP. The browser's
    encoding charset is set to EUC-JP. And also I have tried with different Charcter Encodings which Support Japanese like SJIS , Cp943C,UniCodeBig ,UniCodeLittle.
    But nothing worked out.But english FileNames are coming correctly in the FileSave Window
    but... when the dialog box opens up, the file name turns out to be junk even though the file name passed to it is a correct EUC-JP encoded string.
    I guess this is becos the 'save as' dialog box takes some default browser values...
    Here is the Code Used
    byte[] barrFile = (byte[])
    lhashToViewBean.get("ATTACHMENT_FILE");
    byte[] bFileName=lsFileName.getBytes();
    String lsNewFileName=new
    String(bFileName,"JISAutoDetect");
    goWebUtility.writeDebug("NEW2 SAIKRIS FILE NAME
    AFTER ENCODING in FILE DOWNLOAD ",">>>>>"+lsNewFileName.trim()+"<<<<<");
    res.setContentType ("application/octet-stream
    ;charset=JISAutoDetect");
    res.setContentLength ((int )barrFile.length) ;
    res.setHeader
    res.setLocale(Locale.JAPANESE);
    BufferedOutputStream buffFileStream = new
    BufferedOutputStream (res.getOutputStream ());
    buffFileStream.write (barrFile) ;
    buffFileStream.flush ();
    buffFileStream.close ();
    Pls, can someone suggest a solution to this problem.
    Thanks.
    Rgds
    Yoonus

    Hi,
    Iam the author of the post.
    I have got the solution.
    After getting the file name from Database the Japaneese String(lsFileName) is encoded using "UTF8" encoding method of java.net.URLEncoder.encode(String lsFileName,String encType) of JDK 1.4
    U can get the JDK1.4 URLEncoder class from
    http://wwws.sun.com/software/java2/download.html . Here you get the entire code for JDK1.4
    Hope this helps.I get all the duke Dollars for myself :-)
    yoonus

  • Displaying an image in a dialog box

    What i was trying to do in my last post was basically call a frame from within a frame and display an image in it. I've researching it a bit more, i think a dialog box would be the better idea(Cheers for the suggestion on the dialog box). I have the image stored in the frame below. What i would like to do is display it as the parent paremeter, but i can't seem to get it to work. Its just a normal sized picture that i need to display, i can't seem to see what to change, hope i have explained it well enough for ye
    Help would be great thanks
    Ambrose
    JFrame dummyFrame = new JFrame();
              ImageIcon icon = new ImageIcon("Standard.png");
              dummyFrame.setIconImage( icon.getImage() );
              String output7 = "The Requested Picture";
              JOptionPane.showMessageDialog(null, output7, " ", JOptionPane.INFORMATION_MESSAGE);     

    I'm a little fuzzy on what you're trying to accomplish.
    Do you understand that JFrame.setIconImage sets the image to be used for the frame on the taskbar, and as the tiny icon on the caption bar? It doesn't appear inside the frame. (I'm talking Windows here when I say "taskbar", of course, but the idea is the same in other OS's.)
    If when you say you just want to display an image in a frame, you mean, well, try this and see if it's what you want:
    JFrame myFrame=new JFrame("My Frame");
    Container content=myFrame.getContentPane();
    ImageIcon icon=new ImageIcon("Standard.png");
    JLabel imagearea=new JLabel(icon);
    content.add(imagearea,BorderLayout.CENTER);
    myFrame.pack();
    myFrame.show();

  • How to add a title to a JavaScript Confirm dialog box.

    function confirmDelete() {
    var msg = "Do you want to continue removing the items ?";
    return confirm(msg);
    Presently it says http://locahost:8080/says etc on the title bar for the dialog box. Instead I want to set the title as "Confirm Delete". How can I do this?

    You're talking about the document title as you set it in the HTML head? Just alter the title of the document accordingly in the same Javascript function.
    If you find Javascript hard, there's a nice tutorial at w3schools.com. And for Javascript related questions better use a forum devoted to Javascript. There are ones at webdeveloper.com and dynamicdrive.com.

Maybe you are looking for