Simple popup confirm in Button in WAD ?

Hi, we try set popup for confirm push button in WAD.
Any idea how implementing in WAD ?

Hello,
Yes this can be achived through Javascript function.
this function can be called onclick event of a button.
logic of this function cane be defined in btwn Script tags..
let me knw in details what are you trying yo achive and before what you wnt to call the code..
Also what should be the action after the Alert or confirm Popup
waiting for your feedback
Regards
Nitin Bhatia

Similar Messages

  • Simple popup alert

    I need to tell my users to set their printer to landscape. I
    can't control their print orientation and I can't change my print
    parameters in a way that allows portrait to work.
    I wanted to use a simple popup when they roll over the print
    button, but when I do the print button no longer works. I've tried
    the Alert and Window components. I've also tried createTextField.
    In all cases the message appears but then the print button no
    longer responds to the mouse. Please, what's going on?

    Alert has the potential to be modal and that would prevent
    you from interacting with any UI while it was up. Or, since you
    mentioned that it's in a rollover, I can't help but think that
    you're throwing up this window as an defensible shield whenever
    they try to click the button. Instead, make the button's
    on(release) handler create an Alert window, and make the handler
    that you pass to the show() method call your printing
    routine.

  • How i create popup menu when button onclick

    how i create popup menu when button onclick

    You try adding a scrip tag in your jsp code, and calling the function in the onclick attribute.
    Example:
    <script><![CDATA[
                    function confirmDelete(){
                    if(confirm("Are you sure you want to delete selected user")){
                    return true;
                    } else{
    return false;
    ]]></script>
    <ui:button action="#{View.delete_action}" binding="#{View.delete}" id="delete" onclick="confirmDelete"/>
    Cheers
    Daniel
    null

  • Refresh Button on WAD

    Hi friends !
    How can i make to put a refresh button on wad ?
    Thanks.
    Fabrício

    Hi,
    you could use standard HTML to hide the button group.
    <div style="display:none">
    </div>
    Regards
    Steve

  • Problem with Information button in WAD

    Dear Mates,
    I have a problem with Information button in WAD template.
    I have two queries in web template. those two queries are in two tabs( i used Tabstrip ) respectively.
    if i press first tab it shows query1 and if i press second tab it shows query2 absolutely.
    problem
    when i am in first tab, if i click information it will show information about query1, but when i am in second tab,
    if i click information it will show information about query1 only..
    i need it to show information about second tab.
    Please help. Its urgent. Full Reward points will be given.
    Thanks in advance.
    Regards,
    Ranganath

    check out this link
    http://www.mhprofessional.com/downloads/products/0071640266/0071640266_chap01.pdf

  • Can we automatically  follow up WBT w/o "Confirm Participation" button?

    Has anyone figured out how to automatically follow up WBT w/o using the "Confirm Participation" button?
    We have found that it is not intuitive for the user to complete a WBT course and then still have to click "Confirm Participation" on the portal page.
    In cases where the user used the "Start Course Now" link on the "My Training Activities" page, they are not returned to the Course Details page where the "Confirm Participation" link is available.

    Hi Carol,
    Two things...
    1) I also find the Start Course Now link to be a problem...I will probably remove it from page so that the only open for starting is to click the hyperlink to the Course Type page from the Current Training Activities page.
    2) We have a batch program which runs nightly, looking for situations where person has successfully completed Elearning or an Online test, but neglects to Confirm Participation.  In that case, the system will confirm participation for them.
    HTH,
    Gary

  • Disable Popup confirmation on station globals modified externally

    Hi,
    Is there any way to Disable the Popup confirmation Message saying the staiton globals are modified externally from TestStand?
    Regards,
    Ramjee V

    Hey Ramjee,
    Unfortunately, I don't believe there is any way to disable the dialog. I saw your other thread about the station globals, and would be happy to try and help figure out a different way to accomplish what you're trying to do that wouldn't require you to keep updating the globals. Let us know if we can do anything to help!
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • Send (eMail) button in WAD 7.x.

    Hi,
    I need some javascripting help for creating a button in WAD 7.x which sends a report as attachment by mail (default mail program).
    I cant use the broadcaster, because it's gives me the option to send a link.
    Can I use BSP instead and if so, howto setup this in WAD 7x?
    Thanks for your help. Regards,
    Coen.

    Hi,
    I can't get it to work. I created javascript function Testbla() . The parameters for the webitem button Action="Script Function" and Script Function = "Testbla". When I execute the template and click on the button, nothing happens in Mozzilla. In IE I receive a error on page. (Error "Object expected")
    Still the question exits:
    Howto create a "Send"-button that's sending the report by mail as a link or as a PDF attached?
    Thanks for your help,
    Coen.

  • Where can i find simple flash play/stop button tutorial

    Can anyone help me where can i find simple flash play/stop
    button tutorial. All i need to import a icon play/stop button, when
    click it load wav file.
    How can i attach media.fla
    when u click btn
    on(release) {
    CodePlayer.start();
    on(release) {
    CodePlayer.stop();
    action script
    CodePlayer = new Sound();
    CodePlayer.loadSound("ContactUs.wav",true);

    OK your sorta close. the .wav file "ContactUs.wav" couldn't
    be too large a file, and you can't use 'loadSound' with a .wav, it
    would need to be an mp3 file and you also have it set to be a
    streaming file, which I would image is not necessary.
    So under File>>import select the wav file and add it to
    the Library. Select it, right click, and select 'linkage'. Enter a
    name for the identifier like 'contact_id' and hit OK. Now go back
    to your code on frame one, main timeline and change the code you
    have to:
    var CodePlayer:Sound = new Sound();
    CodePlayer.attachSound("contact_id");
    Now in your button handlers change to:
    on(release) {
    _parent.CodePlayer.start();
    on(release) {
    _parent.CodePlayer.stop();
    }

  • Simple up/down scroll button to control overflow

    I.
    I´m trying to do a simple up/down scroll button to control the overflow of a div with text inside it.
    My code:
    Mousedown:
    sym.getComposition().getStage().$("section_article_nosContigo_container").animate({ scrollTop: '+=40' });
    Mouseup:
    sym.getComposition().getStage().$("section_article_nosContigo_container").animate({ scrollTop: "+=0" });
    This is Heathrowe's original code - all credit to him -, but I want the buttons to do a continuously scroll until I Mouseup and not bit by bit ('+=40').
    How do I do it?
    Thanx.

    This should help
    View sample here - http://www.heathrowe.com/edge/scroll_continuous/scrollcontinuous.html
    Detail Code/Description below: I have all the code in Stage > compositionComplete
    Simply remap the elements (content, up, down) to match yours.
    //////////////////Code ////////////////////////////////////////////////
    // Function to to animate scroll up using jquery animate (properties [, duration] [, easing] [, complete])
    // animates at 20 pixel increments from Top, 300 hundreds of a second, linear easing, repeat function on complete
    // http://api.jquery.com/animate/
    // Change the the duration/easing value for speed
    function scrollContDn(){
        sym.$("content").stop().animate({scrollTop:'+=20'}, 300, 'linear', scrollContDn);
    // Function to to animate scroll down using jquery animate (properties [, duration] [, easing] [, complete])
    // animates at 20 pixel decrements from Top, 300 hundreds of a second, linear easing, repeat function on complete
    function scrollContUp(){
        sym.$("content").stop().animate({scrollTop:'-=20'}, 300, 'linear', scrollContUp);
    // Function to stop scroll
    function stopScroll(){
        sym.$("content").stop();
    // Event for Down Button/Element
    sym.$("down").mousedown(function(e){        // mousedown
       scrollContDn();                                         // call scrollContDn function
       }).mouseup(function(e){                           // sequential chain mouseup function
       stopScroll();                                             // call stopScroll function
    // Event for Up Button/Element
    sym.$("up").mousedown(function(e){
       scrollContUp();
       }).mouseup(function(e){
       stopScroll();
    Download sample here.

  • Alert popup confirmation BADI

    Hi guys I'm very new to ABAP and BADIs. We created a BPM session in SolMan and created alerts. The problem now is that we want to send sms alerts but we want a compact version of the alert where we only get the date, the time, the job name and the error.
    We also want to setup a e-mail alert the same way. Is it also possible to setup a email popup confirmation where you have to type in what you did when you click 'confirm' on the alert..
    Any help on this will be greatly appreciated.
    Regards
    Vincent

    Hi Volker
    The problem I'm having with the sms notifications is that the sms are limited to 300bytes or 160 characters. Now I need the notification to be formatted in such a way that it can fit into the sms. So i figured if i put the Alert rating and the time stamp as the sms subject, and then put the alert message as  the body of the sms it would fit.. But now I'm stuck as to how I'm gonna get that done..
    Any help would be greatly appreciated..

  • Javascript Confirm popup Yes, No button instead of OK and Cancel?

    Hi,
    I wrote javascript for confirm popup like below:
    var answer = confirm ("Are you sure you want to delete this item ?");
    It is showing OK Cancel button popup , but I want to display Yes No buttons on popup insted of OK Cancel buttons...
    Appreciate if anyone give proper solution.
    Thank you.
    Still I could not get proper solution.... Please any one help me solve this... need js solution not jquery..

    Hi Praveen
    There is not direct option in JavaScript to get Yes/No buttons in a Confirm dialog.
    But, we can create a customized dialog box with our own HTML tags, controls and scripts and show it as a confirmation dialog using
    window.showModalDialog() function
    Here is the sample HTML to demonstrate how to create a customized confirmation dialog.
    Dialog.HTML (This contains the UI for the confirmation dialog. Message, Yes No buttons etc)
    <!DOCTYPE>
    <html>
    <head>
    <title>Confirmation Message</title>
    <script language="javascript" type="text/javascript">
    window.onload = function()
    var messageDiv = document.getElementById('dlgMessage');
    if ( messageDiv != null && typeof(messageDiv) != "undefined" )
    messageDiv.innerHTML = window.dialogArguments;
    function confirmClick(args)
    window.returnValue = args;
    window.close();
    </script>
    </head>
    <body>
    <div id="dlgMessage">
    </div>
    <input type="button" value="Yes" id="btnYes" onclick="javascript:confirmClick('yes')"/>
    <input type="button" value="No" id="btnNo" onclick="javascript:confirmClick('no');"/>
    </body>
    </html>
    MainPage.HTML (From where the confirmation dialog will be shown. In your case, u can use the script in this html and customize it according to ur needs)
    <!DOCTYPE>
    <html>
    <head>
    <title>Main Page</title>
    <script language="javascript" type="text/javascript">
    function showConfirmDlg(message)
    var returnValue = window.showModalDialog("dialog.html",message,"dialogHeight:150px;dialogWidth:200px");
    if ( returnValue == 'yes' )
    alert('Yes button is clicked in the dialog');
    else
    alert('No button is clicked in the dialog');
    </script>
    </head>
    <body>
    <input id="btnConfirm" type="button" value="Confirm" onclick="javascript:showConfirmDlg('Do you want to continue?');" />
    </body>
    </html>
    Hope this helps.
    See this MSDN Link for more information on how to use and customize the showModalDialog() function
    http://msdn.microsoft.com/en-us/library/ie/ms536759(v=vs.85).aspx

  • Data loss popup for cancel button on overview page

    Hi Experts,
    Data loss popup generally appears on UI, when i try to navigate with out saving the changes. This is a standard SAP behaviour.
    But, i come across the requirement where this data loss popup should also appear on clicking the 'Cancel' button on overview page on UI.
    I understood that, this popup will be triggered by the methods ON_BEFORE_WA_CONTENT_CHANGE & IF_BSP_WD_EVENT_HANDLER~HANDLE_EVENT of the window impl class.
    Please suggest how can i make this popup work in case of Cancel button as well.
    Thanks....

    Hi bkvs,
    Usually when you click the "Cancel" button that means you don't want to save your entry... hence displaying the dataloss popup doesn't make really sense to me. However, you may want the user to confirm that he really wants to cancel.
    So I would suggest to redefine the EH_ON_CANCEL method of your view, to display a simple confirmation popup before you actually cancel everything. This wiki will show you how to do it:
    Creating popup message in webclient UI - CRM - SCN Wiki
    Regards,
    Nicolas.

  • POPUP after selecting button in ALV

    Hello everyone.
    I have an ALV (called with FM 'REUSE_ALV...') with a gui status of its own. I added a new button that must popup a window with information on some variables i just ended calculating.
    I allready tried using 'call screen' and the command 'window', but i'm having some troubles with it. Can someone please give me a simple example on doing this ?
    Message was edited by: Nuno Santos

    Hi
    Use the ALV popup in that u can specify screen size.
      CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
           EXPORTING
                 I_TITLE      = 'details'(050)
            I_SELECTION             = 'X'
            I_ZEBRA                 = ' '
                I_SCREEN_START_COLUMN   = 1
                I_SCREEN_START_LINE     = 1
                I_SCREEN_END_COLUMN     = 150
                I_SCREEN_END_LINE       = 70
            I_CHECKBOX_FIELDNAME    =
            I_LINEMARK_FIELDNAME    =
               I_SCROLL_TO_SEL_LINE    = 'X'
                I_TABNAME               = 'IT_table'
            I_STRUCTURE_NAME        =
               IT_FIELDCAT             = IT_FIELDCAT_POP[]
            IT_EXCLUDING            =
            I_CALLBACK_PROGRAM      =
            I_CALLBACK_USER_COMMAND =
            IS_PRIVATE              =
       IMPORTING
            ES_SELFIELD             =
            E_EXIT                  =
           TABLES
                T_OUTTAB                =  IT_IDOCMESS2
          EXCEPTIONS
               PROGRAM_ERROR           = 1
               OTHERS                  = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    regards
    vijay

  • How to prevent action (lead selection change) with popup (confirmation)?

    Hello all,
    I have an application where I want the user to confirm when he selects a new line in a table. When the user selects a new line in the table an other used component reloads its data based on the new line selected. If the user has not pressed the save button before selecting a new line, any changes in the used component will be lost.
    Currently I use onLeadSelect action on the table to call the load_data method(id=xxx) on the used component in order to display data relevant for id=xxx based the new line.
    I can open a popup to confirm from the onLeadSelect-action or the WDDoBeforeAction, but the action still happens; it doesn't wait for the user to respond. And then any changes are lost...
    I may have to store the parameters sent to the onLeadSelect method in context and continue when the button action from the pop-up returns via subscribed method, but I think this is an unelegant way of doing this.
    There must be a better way...? Any ideas?
    Regards,
    Christian Frier

    on the lead select event handler you can show the popup and no other logic. Move your logic to the ok and cancel button handlers of the pop up.

Maybe you are looking for

  • How to change the dimensions of a display (not resolution)?

    I use a 27" iMac with a 27" Dell Monitor (1920x1080). Physically, the displays are nearly the same size, even though the resolutions are very different. This means that in 'Displays > Arrangement', the Dell monitor appears much smaller than the iMac

  • 0FI_AR_4 extractor bringing zero records

    Hi, We are using extractor 0FI_AR_4 as delta. At times it is bringing zero records but the next time it brings data along with the daata missed the previous day. For ex Monday it brought records until previous week Tuesday it brought zero record Wedn

  • JMS 6.1 vs 7.0 interoperability

              Hello           I can't conntect to jms topic running on true64/weblogic6.1sp3 from windows2000/weblogic7.0           if on windows2000 i use weblogic 6.1 it works fine.           Here are stack traces i got:           Client side :        

  • Publish subscribe model with plsql

    Hi, I did not find any sample that shows how to use the publish subscribe model with plsql. Enqueueing is possible and know how to do it, but how can I subscribe to a topic with plsql. All samples I found are for Java JMS. Thanks Günther

  • Why can't I use this file?

    A friend sent me a song he made in an MPEG4 format. There's no video though, just audio. I've got a regular "old" 40G click-wheel iPod, and iTunes won't let me store the file there, saying it "cannot be played by this iPod." I know my iPod can't play