Message on popup window

Hi,
Can anyone suggest how to create message(error/warning) on a popup window(Zwindow) in crm?
Thanks in Advance.

Hi Ginger,
If i understand correctly you would need a message depending on some validation of data that is displayed in popup
So when ever your validation fails you want to display an error message.
Write this code to add your message in the Core Messages.
lr_core = cl_crm_bol_core=>get_instance( ).
    CHECK lr_core IS BOUND.
    lr_global_messages ?= lr_core->get_global_message_cont( ).
    CHECK lr_global_messages IS BOUND.
CALL METHOD lr_global_messages->add_message
      EXPORTING
        iv_msg_type       = 'E'
        iv_msg_id         = 'ZTEST'
        iv_msg_number     = 800
        iv_show_only_once = 'X'.
Now if you do this the message would be displayed in the View that is actually calling the POPUP.
To avoid that use this statment while calling the popup.
lr_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).
Edited by: Ratna Rajesh .P on Aug 6, 2011 12:50 PM

Similar Messages

  • How to display the return message in popup window

    Hi Experts,
    In WDA i want to display the return message through popup window.
    Regards,
    M.Chella Meenal.

    hi Chella Meenal ,
    you can generate the popup using popup factory class also , look at the below sample code for displaying message in a popup , and you can do your own configurating like visible , enable the buttons you want ..
    data:
        lr_component type ref to if_wd_component,
        ls_conf type wdr_popup_to_confirm,
        lt_texts     type string_table.
      ls_conf-window_position = '1'.
      ls_conf-button_1-text = 'OK'.
      ls_conf-button_1-icon = 'ICON_OKAY'.
      ls_conf-button_1-enabled = 'X'.
      ls_conf-button_1-visible = CL_WD_UIELEMENT=>E_VISIBLE-VISIBLE.
      ls_conf-button_2-visible = CL_WD_UIELEMENT=>E_VISIBLE-NONE.
      ls_conf-button_cancel-visible = CL_WD_UIELEMENT=>E_VISIBLE-NONE.
      lr_component = wd_comp_controller->wd_get_api( ).
      append 'some text' to lt_texts.
      cl_wd_popup_factory=>popup_to_confirm(
          component        = lr_component
          text             = lt_texts
          CONFIGURATION    = ls_conf
          window_title     = 'some title' ).
    Regards
    Chinnaiya P

  • Message in Popup window?

    Hi EXperts,
    I have a button, when user click on this button one popup will opens, in that i have one check box and in popup i have two buttons Yes and No, if user click on yes without checking checkbox "i want to display error message" and after checking and click on yes then only i want to close popup, otherwise pouup should be active?... For this i created popup window and messages also... but message is not displaying...?window is closing if u click yes or no buttons.. any help.
    Thanks,
    kris.

    Hello,
    To check whether checkbox is selected or not. Please go through below link.
    [http://wiki.sdn.sap.com/wiki/display/WDABAP/ImplementingcheckforRequiredfieldsinLayout]
    Regards,
    Tejaswini.

  • How to display error message in Popup window

    Hi,
    I have main view and when I click button I opened new pop up window.
    I have some validation for the form in pop up window. I want to display the error message in pop up window.
    Please let me know how to get it.
    Thanks

    Hi mami,
           Is is very difficulty to request focus to the POP window..in our case we are trying lot of time ..but we are not success to display massage in pop window.
    you will  put TEXTView in you pop window where you want to display massage in you POPWINDOW.
    and Create one context value Attribute as Massage
    Value Attribute-----ErrMassage.
    ErrMassage Attribute set your Text property of TEXTVIEW  UI Element.
    If(your condition is TRUE){
    //Excute Your code perfectly.
    else
    wdContext.currentContextElement().setErrMassage("Please provide proper name");
    In this way we were this massage showing in our popwindow..
    thanks
    jati

  • How to put the messages getting in popup window on statusbar facet:

    In panelcollection i dragged a table.in toolbar i have createinsert and committ buttons.
    i am able to display the messages like "*Dupliacte rows not allowed* " using customErrorhandler by ovveriding the getdisplaymessage() when JBO,SQl exceptions occured.
    and also able to display message like "*record saved successfully* " using managed bean method.
    i am getting these messages in popup window.but i want to get these messages in statusbar of panelcolletion.
    please anyone help me what i need to do.
    Thanks
    Sailaja.

    Hi,
    Check the below sample code
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Style>
            @namespace s "library://ns.adobe.com/flex/spark";
            @namespace mx "library://ns.adobe.com/flex/mx";
            s|BorderContainer {
                background-image:Embed(source="image/wheres_the_green_rez.jpg");
                background-image-fill-mode:clip;
        </fx:Style>
        <s:TitleWindow width="100%" height="100%">
            <s:BorderContainer width="100%" height="100%"/>
        </s:TitleWindow>
    </s:Application>
    Regards,
    Anitha

  • Reg:Internal Popup Window:Error messages

    Hi All,
            I am using a Internal Popup Window, but the error messages of "Popup window" is shown in the "Parent Window" instead of showing in "Popup Window". please suggest me to get the Error messages in "Internal Popup Window"
    Thanks
    Nagaraju

    Hi Naga,
    Disable the parent iviews message area before calling the child(popup) window. Then you can get the message in the child(popup) window.
    According to documentation, oldest (parent) message area would be used if there are more than one windows (in a layout).
    see this thread also How to display messages in pop up windows?
    PradeeP

  • Hello, I have creative cloud installed on my Mac Book Pro - OS X 10.9. 5 When trying to download trial version, a popup window shows the message " you have been disconnected"  Connect to continue. No way to access to the download programs after entering t

    Hello, I have creative cloud installed on my Mac Book Pro - OS X 10.9. 5 When trying to download trial programs, a popup window shows the message " you have been disconnected"  Connect to continue. The same message comes after repeated attempt to entering the login and password info. How can I solve this?

    Hi Jeff,
    Here is the screenshot of the window which comes after any attempt to download a trial version.  It is in French, it means you have been disconnected, connect to continue.

  • I upgraded to Mountain Lion (MacbookPro). Now when I open ical I get a popup window with a list I had added to Reminders app with the message 'Your calendar couldn't be refreshed' it won't go away-'delete' is greyed out-can't access calendar! Help!

    I upgraded to Mountain Lion (MacbookPro). Now when I open ical I get a popup window with a list I had added to Reminders app with the message 'Your calendar couldn't be refreshed' i--t won't go away-'delete' is greyed out--can't access calendar! Help!

    I upgraded to Mountain Lion (MacbookPro). Now when I open ical I get a popup window with a list I had added to Reminders app with the message 'Your calendar couldn't be refreshed' i--t won't go away-'delete' is greyed out--can't access calendar! Help!

  • Vba to dismiss an IE8 or IE9 "message from webpage" popup window

    In excel or word, paste the following code into a vba normal module and run it.   The code goes to a public web site and tries to lookup a school.  The website pops up a "message from webpage" dialog that warns me that the the school
    number is not valid.
    My program can detect that popup, but how can I reliably and automatically dismiss it?
    I have a workaround that uses sendkeys but about 10% of the time the popup remains.
    Does anybody have a solution that does NOT require sendkeys? The ideal solution would also work when objie.visible = false.
    option Explicit
    Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
    Sub t1022()
    Dim objie As Object
    Dim i As Long
    Dim htmlTable As htmlTable ' set reference to microsoft html object library
    Set objie = CreateObject("InternetExplorer.Application")
    objie.Visible = True
    objie.navigate "http://www.slforms.universalservice.org/Form471Expert/471StatusCheck.aspx"
    Do: Sleep 100: Loop While objie.busy
    Set htmlTable = objie.Document.getElementsByName("txtBenId")(0)
    htmlTable.Value = 12345
    With objie.Document.getElementById("txtFundingYear")
    .Click
    .Value = 2013
    End With
    objie.Document.getElementById("btnSearch").Click
    For i = 1 To 10
    Sleep 100
    If Not objie.busy Then Exit For
    Next i
    If objie.busy Then
    MsgBox "popup detected"
    End If
    End Sub

    Hi,
    If there is a will, there is definitely as way. The following definitely works!
    Copy and paste the following code in a module.
    Option Explicit
    Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
    'Sends the specified message to a window or windows. The SendMessage function calls the window procedure
    'for the specified window and does not return until the window procedure has processed the message.
    Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" _
    (ByVal hWND As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
    'Retrieves a handle to the top-level window whose class name and window name match the specified strings.
    'This function does not search child windows. This function does not perform a case-sensitive search.
    Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
    (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
    'Retrieves a handle to a window whose class name and window name match the specified strings.
    'The function searches child windows, beginning with the one following the specified child window.
    'This function does not perform a case-sensitive search.
    Public Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" _
    (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, _
    ByVal lpsz2 As String) As Long
    Public Const BM_CLICK = &HF5&
    Sub t1022()
    Dim objie As Object
    Dim i As Long, hWND As Long, childHWND As Long
    Dim htmlTable As htmlTable ' set reference to microsoft html object library
    Set objie = CreateObject("InternetExplorer.Application")
    objie.Visible = True
    objie.navigate "http://www.slforms.universalservice.org/Form471Expert/471StatusCheck.aspx"
    Do: Sleep 100: Loop While objie.busy
    Set htmlTable = objie.Document.getElementsByName("txtBenId")(0)
    htmlTable.Value = 12345
    With objie.Document.getElementById("txtFundingYear")
    .Click
    .Value = 2013
    End With
    objie.Document.getElementById("btnSearch").Click
    For i = 1 To 10
    Sleep 100
    If Not objie.busy Then Exit For
    Next i
    If objie.busy Then
    'MsgBox "popup detected"
    DoEvents
    hWND = FindWindow(vbNullString, "Message from webpage")
    If hWND <> 0 Then childHWND = FindWindowEx(hWND, ByVal 0&, "Button", "OK")
    If childHWND <> 0 Then SendMessage childHWND, BM_CLICK, 0, 0
    End If

  • Dynamic message with Alert popup window?

    I'm using the simplest form of Alert popup window. Is there a way I can put a dynamic alert message in the window? For example,
    the Alert shows the "XYZ" at beginning, and then change to "ABC" by an event before the OK button is clicked.

    First you need to create a refernce to the Alert window.
    alert  = Alert.show("Hello");
    To change the text
    alert.mx_internal::alertForm.mx_internal::textField.text = "New Text";
    ( had to use mx_internals because the following code is not updating the text alert.text = "New text"; )

  • Message (of message manager) gets lost by opening a popup window

    Hi all,
    On behalf of a better error/exception handling, I would like to show the stacktrace in a popup window, that means, if the application reports an error message (through the message manager in the view controller), the user (administrator, developer) can optionally click a link (LinkToAction => opening a modal window) to see the stacktrace in a separat popup window.
    Unfortunately if the popup window now gets displayed, the error message on the main view (background of the popup window) will be cleared, so this - for the common user more readable - information is not anymore displayed, also when the popup will be cleared.
    Of course, I could backup the error message in a context value and redisplay it after closing the popup window, but I suppose that's not a very cool solution...
    Other any good ideas?
    Thanks,
    Stefan

    Hi Stefan
    Usually showing a stack-trace to the end-user of your application is not so helpful as might appear. My experience shows that the information is too technical for the end-user and does not help him/her to resolve the issue/problem. It's better to display error messages pointing him to some solution or directions that he might do in order to fix the error.
    If you still want to show a stack-trace I'd advise the following. You have to prepare the UI control with the stack-trace in the same server response (round trip) which shows the message manager's messages. The messages will not disappear until a client sends a new request to the server. When you open the popup such request definitely takes place.
    Maybe try to display the stack-trace in the bottom of the screen so user have to scroll down a little bit to show the trace.
    Or maybe Tray control will help in the case. Try to put the trace in a text view and put the view in a tray. Then user has to expand the tray to see the trace. But do not assign any event handlers to the tray to avoid additional request to the server while it's expanding.
    BR, Sergei

  • Internet Explorer message "refer to popup window"

    Hi everyone,
    Value some help please. When visiting my work's website with Internet Explorer on a new Lumia 625, the message "refer to popup window" appears after I log in. Unfortunately, unlike using a desktop or laptop, no new tab appears. A new tab does appear when I log on with an Android device, so I know it is possible for a mobile phone. Grateful in advance for ideas.
    Andrew

    Hi Andrew29,
    Welcome to Nokia Support Discussions.
    You can try changing the website preference from the mobile version to desktop version under settings> swipe left to applications and select Internet Explorer. Also, try downloading another web browser from the Store and see if it works.

  • Vba: separate popup windows for messages and reminders?

    One of the things I miss, and know that many probably don't, but I do, is the separate popup windows that Outlook used to deploy for reminders and incoming email notifications.  They weren't all lumped in together as in recent Outlook versions. 
    I'm sure this new way works for many people but for power users such as myself, it was much easier to control things when each reminder or notification was separate.  Tedious, sure, when there were a lot, but certainly much easier than today's environment,
    ultimately.
    As I've found and implemented more and more vb, I'm getting back a lot of lost functionality from the past.  I went looking and thought I'd found a macro a couple of weeks ago that would do the job but it's actually not turned as I'd hoped.  Here
    it is, the one that I use for emails from the folks, to give an example; it's invoked through a rule:
    ' HOME Emails:
    Sub CustomMailMessageRule_Mom_or_Dad(Item As Outlook.MailItem)
    MsgBox "Mail Received from Mom or Dad: " & Item.Subject
    End Sub
    The above does sort of give me a separate window popup but it's one that stops everything else in its tracks.  I have to accept it before more notifications pop up but they also stop any notifications from Outlook, period, yet don't give me separate
    notification popups that can then be snoozed or even just minimized! Not good.
    Can anyone suggest something that would help?  I recently moved all my reminders that were on a third party application to a secondary calendar that I created in Outlook where I saw, to my delight, that now will fire up reminders - something that wasn't
    possible in the past (one tiny good thing we've received in exchange for so much lost functionality from a user standpoint! <g>).  It's just now even more difficult to work through everything that is lumped in under one window - And no custom boxes
    with different colours or _anything_ to help differentiate them.
    So, is there any way, perhaps vb, to have notifications fired from different popup windows somehow, emulating older Outlook versions?
    Thanks so much!

    Hello SGFan,
    The MsgBox call stops the current thread until it is closed, i.e. the modal form is displayed. But you are interested in a non-modal form which doesn't stop the thread.
    You can try to display a user form instead using the Show method.
    UserForm1.Show vbModeless
    However, it will not let the Outlook running. You need to display the form on another thread, it is possible with add-ins (not VBA).  See  Modeless
    form that still pauses code execution for more information.
    So sorry for the delay.  I'm still with the same problem so the above was not encouraging.  Though we come here to this forum to deal with vba, unlike the old NGs, it seems there are less users and more real developers, which I am not.  Just 
    a power user.  And the above is not something I have yet crossed into.  It sounds like, but I'm guessing here, that this method requires a form (am I right)?  I haven't a clue how to do those yet, if that's the case <sigh>.  All I
    know is that there are too many emails coming in with no easy way to make sure we don't miss something important.
    This answer shows me that this particular approach isn't the solution.  This type of message box wasn't ideal, either.  Lordy but I miss so many features of Outlook 2000 all the time.  All these popups getting launched together is great for
    a lot of people, but I'm not one of them.
    Okay, back to trying to find a solution.
    Thank you!!

  • [Forum FAQ] How do I display disclaimer message popup window before display the SSRS report?

    Question:
    The requirements is that when you click the report on report manager you will get an popup window with the disclaimer message, only after you read this message you can click the “Agree” button, then you can continue to read the content of the report, if you
    disagree with it, you can click the “Disagree” button to back to the home or other path you want.
    Answer:
    To achieve this goal, we can add some JS or JQuery code in the report.aspx file in the path like:”C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportManager\Pages”
    Find the path of the report.aspx file and add these code in to it.
    <script type="text/javascript" src="</script">http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script>
    <link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
     $(function() {
            var result = new RegExp('[\?&]ItemPath=([^&#]*)').exec(window.location.href)[1];
    //get the path of the folder which the report exists
            var reportFolder = result.split('%2f')[1];
    //get the report name which you want to add this pop up window.
    var reportName = result.split('%2f')[result.split('%2f').length - 1]; 
     //hide the report before you click the agree button
           document.getElementById("ui_form").style.display = "none";
                //alert(result);
                //alert(reportFolder); //test the report folder name to see if it is correct
           if (reportName == "your report name" && reportFolder=="your folder name") {           
     $("#dialog").dialog({
                    title: "jQuery Dialog Popup",
                    height: "250",
                    modal: true,
                    buttons: {
                        "Agree": {
                            text: "Agree",
                            id: "my-button-id1",
                            click: function() {
                                $(this).dialog('close');
    //display the report after you click the agree button.
    document.getElementById("ui_form").style.display = "block";                         }
                        "Disagree": {
                            text: "Disagree",
                            id: "my-button-id2",
                            click: function() {
                                location.href = '/Reports'
            else {
                document.getElementById("ui_form").style.display = "Block";
    </script>
    <div id="dialog" style="display: none; z-index:20001">
     Please make sure you have read this information and understand clearly before enter the report.
    </div>
    When you click the report you will the popup window as below:
    when you click “Agree” the report will display and when you click “Disagree” it will back to the home page.
    Applies to:
    Reporting Services 2005
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012
    Reporting Services 2014
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Question:
    The requirements is that when you click the report on report manager you will get an popup window with the disclaimer message, only after you read this message you can click the “Agree” button, then you can continue to read the content of the report, if you
    disagree with it, you can click the “Disagree” button to back to the home or other path you want.
    Answer:
    To achieve this goal, we can add some JS or JQuery code in the report.aspx file in the path like:”C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportManager\Pages”
    Find the path of the report.aspx file and add these code in to it.
    <script type="text/javascript" src="</script">http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script>
    <link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
     $(function() {
            var result = new RegExp('[\?&]ItemPath=([^&#]*)').exec(window.location.href)[1];
    //get the path of the folder which the report exists
            var reportFolder = result.split('%2f')[1];
    //get the report name which you want to add this pop up window.
    var reportName = result.split('%2f')[result.split('%2f').length - 1]; 
     //hide the report before you click the agree button
           document.getElementById("ui_form").style.display = "none";
                //alert(result);
                //alert(reportFolder); //test the report folder name to see if it is correct
           if (reportName == "your report name" && reportFolder=="your folder name") {           
     $("#dialog").dialog({
                    title: "jQuery Dialog Popup",
                    height: "250",
                    modal: true,
                    buttons: {
                        "Agree": {
                            text: "Agree",
                            id: "my-button-id1",
                            click: function() {
                                $(this).dialog('close');
    //display the report after you click the agree button.
    document.getElementById("ui_form").style.display = "block";                         }
                        "Disagree": {
                            text: "Disagree",
                            id: "my-button-id2",
                            click: function() {
                                location.href = '/Reports'
            else {
                document.getElementById("ui_form").style.display = "Block";
    </script>
    <div id="dialog" style="display: none; z-index:20001">
     Please make sure you have read this information and understand clearly before enter the report.
    </div>
    When you click the report you will the popup window as below:
    when you click “Agree” the report will display and when you click “Disagree” it will back to the home page.
    Applies to:
    Reporting Services 2005
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012
    Reporting Services 2014
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

  • How to show a popup window to display an error message

    Hi,
    I want a popup window to popup when an error occurs on pressing an "OK" button in my GUI. What should I use for that? Is it a JWindow?

    A JOptionPane is probably easiest:
    http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html

Maybe you are looking for

  • How to use the after_line_output event in ALV

    Hi experts, My requirement is to show the purchase order details including taxes amount. But my user ask me to highlight the tax details and it should be under the purchase order item details. I am having separate internal table for tax amount for ev

  • Can't import an Image into flash

    When I tyr to import an Image onto Adobe Flash CS5, the image is balnk with grey outlines. Same thing happens when I try and copy and paste a image onto flash.

  • Changing logical client name in BW system

    Hi, We want to change the logical client for BW system from BWDCLNT200 to BWDCLNT100 in our BWD system. When I change it through BDLS the source system connections disappearing. Can you please let us know how do we do that without disturbing source s

  • I want to make a title!!-published parameters

    I want to make a title, but many of the titles include more than one text sequence, title, subtitle, date, etc....how am i able to just use it one time for the title? like getting rid of the two other texts in that title

  • When you take a snapshot of the desk top where is it saved?

    When you press Control-Command-3 for a snapshot where can I find it?