Pop Up Window on click of save button

Hi ,
I am very new to WebDynpro Java.
Can somebody plz help me??
My Requirement-
On Click of the Save Button ,a Pop Up window should get displayed with a message saying "SUCCESSFULLY SAVED".
Plz reply soon
Thanks In advance!!
Regards
Smita

hi!
1.create a action on the button click
2.create a value node(popup)--> value attribute
set the cardinallity as 1..1 and type as com.sap.tc.webdynpro.
services.session.api.IWDWindow
3.
public void okPopup() {
// @@begin okPopup()
// get the repository content at runtime of the Web-Dynpro-
IWDWindowInfo windowInfo = (IWDWindowInfo) wdComponentAPI
.getComponentInfo().findInWindows("okWindow");//give your window name
// create the u201CokWindowu201D
IWDWindow window = wdComponentAPI.getWindowManager()
.createModalWindow(windowInfo);
// set the WindowPosition on the screen
window.setWindowPosition(300, 150);
// and show the window
window.show();
// Save WindowInstance in Context
wdContext.currentPopupElement().setWindowInstance(window);
// @@end
4.now you can take text views to show the required message in the popup window.for that you can take the message from message pool and also you can directly write the message in the text property of text view.
please get back to me if any further clarification is required.
thanks
vishal

Similar Messages

  • Closing a Pop Up Window on click of a button

    Hi Forum,
    In the parent view there is a button, on click of this button a new pop up window is opened.
    This pop up window also has a button (Submit). Onclick of the submit button in pop up window I need to performe some code execution and then close this pop up window.
    I tried the steps given in the weblog
    /people/mohammed.anzys/blog/2007/06/05/how-to-close-parent-window-in-webdynpro-applications
    But it does not seem to be working.
    Any other way to achieve this or what might I be doing wrong here?
    Thanks,
    Anubhav.

    Hi,
    I missed a parameter in parent window while calling the pop up window
    DATA lo_window_manager TYPE REF TO if_wd_window_manager.
    DATA lo_api_component  TYPE REF TO if_wd_component.
    DATA lo_window         TYPE REF TO if_wd_window.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window         = lo_window_manager->create_window_for_cmp_usage(
                       interface_view_name    = 'WD_VALUE_HELP'
                       component_usage_name   = 'ZUSAGE_FORMNUM'
                       title                  = 'Additional Information For Item'
                      close_in_any_case      = abap_true <----Missed this earlier
                       message_display_mode   = if_wd_window=>co_msg_display_mode_selected
    lo_window->open( ).
    Now it is working fine.
    Many thanks to all.

  • Session should logoff on click of save button in webgui window

    Hi All
    I am directly changing section 80 details using WEBGUI ervices( PA30 tcode with infotype 585 in change mode) WITH BELOW URL
    'http://XXXXXXXXXXXXXXX/sap/bc/gui/sap/its/webgui?~transaction=*pa30%20RP50G-PERNR=' lv_aempid
    ';RP50G-choic=0006;RP50G-SUBTY=4;RP50G-begda=01.01.1800;RP50G-endda=31.12.9999;DYNP_OKCODE=CHG'
    So user able to change their details using above URL, but when user clicks on save button, it is showing PA30 main screen..I want o know how to avoid this screen...
    My requirement is when user clicks on Save button, it should save and logoff from session.*
    Regards
    Srinivas

    Try to use CALL FUNCTION 'ITS_END_SESSION' in the user-exit.
    Of couse you must check that it is webgui session (not sapgui).
    Hope this helps

  • Adobe reader opens "save as" box when clicking on save button rather than saving in the same file

    Hi everybody,
    I have a fillable PDF form designed in Livecycle designer and it is reader extended. When I fill that form on MAC it let me fill and save the form as many times as I like. Everytime I make any change I just click the save button it saves changes in the same form. BUT is is behaving differently on Windows. After filling the form out when I click on save button it opens up "Save as " dialogue box to save a new copy with those changes. I have Adobe reader XI and Adobe Acrobat XI installed on windows. I know I can do that with Acrobat but I want that in reader for users who dont have acrobat.
    Please help me.....
    Thanks

    What are you filling out the form with on the MAC?

  • Pop up window with yes & no push buttons

    hi
    i want to display a pop up window with yes & no push buttons
    can anyone help for this

    Hi,
    call function POPUP_TO_CONFIRM
    exporting
    TITLEBAR = pop_up' (for pop-up header)
    TEXT_QUESTION = 'do you want to save data'
    TEXT_BUTTON_1 = 'Yes'
    ICON_BUTTON_1 = ' '
    TEXT_BUTTON_2 = 'No'
    ICON_BUTTON_2 = ' '
    DEFAULT_BUTTON = '1'
    DISPLAY_CANCEL_BUTTON = ' '
    USERDEFINED_F1_HELP = ' '
    START_COLUMN = 25
    START_ROW = 6
    POPUP_TYPE = ' '
    IV_QUICKINFO_BUTTON_1 = ' '
    IV_QUICKINFO_BUTTON_2 = ' '
    importing
    ANSWER = ANS
    OR.
    Use POPUP_TO_DECIDE.
    call function 'POPUP_TO_DECIDE'
           exporting
                defaultoption  = '1'
                textline1      = text1
                textline2      = ' '
                textline3      = text-202
                text_option1   = 'YES'
                text_option2   = 'NO'
                titel          = text-114
                start_column   = 15
                start_row      = 6
                cancel_display = ' '
           importing
                answer         = zanswer.
    hope this helps.
    plz take a look on this function modules also:
    POPUP_TO_CONFIRM_LOSS_OF_DATA Create a dialog box in which you make a question whether the user wishes to perform a processing step with loss of data.
    POPUP_TO_CONFIRM_STEP Create a dialog box in which you make a question whether the user wishes to perform the step.
    POPUP_TO_CONFIRM_WITH_MESSAGE Create a dialog box in which you inform the user about a specific decision point during an action.
    POPUP_TO_CONFIRM_WITH_VALUE Create a dialog box in which you make a question whether the user wishes to perform a processing step with a particular object.
    POPUP_TO_DECIDE Provide user with several choices as radio buttons
    POPUP_TO_DECIDE_WITH_MESSAGE Create a dialog box in which you inform the user about a specific decision point via a diagnosis text.
    POPUP_TO_DISPLAY_TEXT Create a dialog box in which you display a two line message
    thanx,
    dhanashri.
    Edited by: Dhanashri Pawar on Aug 19, 2008 2:20 PM
    Edited by: Dhanashri Pawar on Aug 19, 2008 2:25 PM
    Edited by: Dhanashri Pawar on Aug 19, 2008 2:26 PM

  • Report is Blank after Click on Save button

    Hi All,
    I am having a Real Time Infocube, which is been used by Monthly and Yearly report separately using different Aggregation Levels.
    During Monthly report testing, I made changes in Yearly Report (common for monthly as well) and clicked on SAVE button.
    As a result, a new request generated into the Cube, whereas my old request (yellow one) was still there and was containing only 700 records.
    Step1:
    Now,  after that when I activated aggregation level. The output of the report was blank.
    Same thing happened with monthly report also.
    Step2:
    So, I deleted that new request from Cube after changing its behaviour from Planned mode --> Load mode.
    Now, when I tried to get it back. It was asking me to green the existing request (old request).
    Step3:
    when the cube was containing only old yellow request (before changing the behaviour) monthly report was showing me correct data. But, Yearly report was blank.
    So, I manually green the request and changed the behaviour to Planned mode.
    Whereas, Now (after changing behavior to Planned mode) both reports are blank.
    Please help!!
    Best Regards,
    Jatin

    Hi,
    first you the correct settings in transaction RSDIPROP for your InfoCube:
    On tab 'Roll Up' you should set the flag Set Quality Status to OK Automatically.
    Second delete the cache for the planbuffer query; the name of the plan buffer queries are as follows
    - if your aggregation level is defined on InfoCube CUBE the name is CUBE/!!1CUBE
    - if your aggregation level is defined on MultiProvider IPROV the name is IPROV/!!1IPROV
    - if you are using a query on a MultiProvider containing aggregatiion levels delete also the cache of the query.
    Now check the values of your query again.
    Note 1136163 contains the recommended cache settings in RSRT.
    Regards,
    Gregor

  • When a third party program creates a new Google calendar event using a http link I cannot click the save button in Firefox 9.01 or 10b2.

    I use a TV listings program called DigiGuide. This has a script that opens a new Google Calendar event page in my browser for a specified TV program with all fields already completed. I then just have to click the SAVE button on the Google Calendar site to save the event - but since updating to 9.01 from 8.xx this button and others (Discard, Search) has no effect, although the cursor changes when over the button as if it recognised a link. Opening the same page in Chrome works fine. I have also noticed that Calendar's other buttons (e.g. next/previous period) can stop working on the main Calendar page, which I have as a pinned tab - in this event navigating away from Calendar and back again regains that functionality. The issue persists in Firefox 10b2.

    Further investigation reveals this only happens when the event is created from within WP native calendar app and disappears when I make an edit to the event in any other calendar client including Google web. So a more appropriate description of the problem would be:
    "Native calendar app keeps subtracting 1h off a Google calendar event on EVERY edit"
    Create an event at 2013/07/17 15:00 in WP native calendar app. Result: Event shows as 2013/07/17 15:00 in the calendar app for a few seconds, then updates itself to 2013/07/17 14:00.
    Edit the event title and save in WP native calendar app. Event time moves by -1h again to 2013/07/17 13:00.
    Edit the event title in Google web calendar.
    Subsequent edits in WP native calendar do not mess up the time any longer. If I fix the time to what I originally intended (2013/07/17 15:00) in WP native calendar app, it stays there and shows correctly in all previously mentioned calendar viewers.
    I just learned that Lumia 925 was released with GDR2 update pre-installed. This update is only now being made generally available. If the issue is secific to the CalDAV implementation in GDR2 rather than specific to my phone only, this would make a lot of angry people. I hope I'm wrong on this though as it's an extremely frustrating problem.

  • CS02, On click of SAVE button, need to capture some event related with this

    Hi,
    My requirement is like,
    I change the material BOM using CS02 tcode.
    When, I complete the changes, and click on SAVE button, I dont find any event triggering in the system.
    Can any help in capturing some event related to this?
    The reason why I need this is ..during  the workflow runtime, the user is presented with the workitem to change the Material BOM with CS02 tcode. And, if sometimes, by mistake, the user is unable to complete the changes of the workitem, and comes back of CS02 without change completion, then the workitem is disapperaing from the inbox, with out completing the intended task of the workitem. So I want to make the workitem appear repeatedly in the user's inbox, till the desired action is done.
    Thanks

    Sai,
    You need to use a Loop..While statement by validating the decision step.
    Use a varaiable to store 'Y' or 'N'.
    intially, have the value as 'N' and if the required outcome is taken. Eg: Accept,Reject.. then change the value to 'Y', which will go to the next step of workflow.
    if 'N', it will again create a new workitem with the same content to the same agent.
    Hope this helps.
    bye,
    Sudhir.

  • Disable Checkbox, once i select checkbox & click on save button

    Hi All,
    Once i select checkbox & click on save button
    then Checkbox will Disable, in moodule pool programming.
    Thanks

    Hi,
    Add the below code in PBO.
    loop at screen.
       if screen-name = 'CH1'
         if g_save = 'X'.
           screen-input = 0.
         else.
           screen-input = 1.
         endif.
         modify screen.
       endif.
    endloop.
    Add the below code In PAI
    case okcode.
      when 'SAVE'.
        g_save = 'X'.
    *code for saving data
    endcase.
    Hope this helps.
    Thanks,
    Balaji

  • Destroy Portal Window on click on Logoff button

    Hi Experts,
    My requirement is a simple one. I simply need to destroy the portal window on click of logoff button. Initially i followed a few blogs and did the following.
    Created an HTML KM document and copied its link under the ume.logoff.redirect.url property. But this link is getting appended twice when i click the logoff button.
    Please let me know if there is some other way or if I need to make changes in the current approach. We access the portal within our own network i,e intranet.

    Hi Kaustubh,
    Below is the way we did -
    Create a logoff.html and place it inside km at any folder location. make sure everyuser group has full permission to this km folder. below is the code -
    use html head and start script language then -
    function closeWindow()
            window.opener = top;
            window.close();
    end script language
    call onload closewindow
    end body and end html.
    now, open visual admin and goto propery name - ume.logoff.redirect.url and write property value as -
    Property Value =
    http://<Server hostname:port>/irj/go/km/docs/.../.../logoff.html
    and restart the server.
    hope it helps.
    Regards,
    Sen

  • How can we open a New Window on click of a button

    Dear All,
    Please can anyone guide me how to open a page in A new pop up window.
    Application Express 4.0.1.00.03
    Thanks & regards
    Arif Khadas

    Assalamwalkeum Tauceef,
    Thanks for your reply.
    For the second query where you want to refresh parent window and close the popup window,
    Create a html region and give a condition to this region that it should display on a particular request and pass that request on your button click and write this javascript code in your Region SourceAccordingly I created a Region on the Calling Page and have the condition Request = REFRESH.
    Now my problem is on the pop-up window how can I pass the Request as the action when button pressed is Submit and I am using an SQL Insert Action.
    For such an action for button click the Request field is hidden.
    Also please help me through this one for setting the Item values in the pop up window:
    I have the following in Execute When Page Loads
      var total = 0;
      var inv   = '';
      var selected_inv = '';
      total        = opener.document.getElementById('P24_PAY_AMOUNT');
      selected_inv = opener.document.getElementById('P24_PAY_INV');
      $s('P23_RCP_AMOUNT_PAID', total);
      //setSessionValue ('P23_RCP_AMOUNT_PAID', total);
      $s('P23_INVOICES', selected_inv);
      //setSessionValue ('P23_INVOICES', selected_inv);The value that I am getting for the above Items is "     [object HTMLInputElement]" in Mozilla Firefox and "[object]" in Internet explorer, not sure why?
    Please guide.
    Thanks & Regards
    Arif Khadas
    Edited by: Arif Khadas on Apr 27, 2011 9:51 AM

  • How to save data in html format while user click a save button in jsp page

    Hi All,
    I have the following requirement
    If user click on the Save Button it should display a window which allows the user to select the directory and the data is stored in the Internet Explorer Format.
    Could please anybody suggest me how to impletment the above requirment in jsp page.
    It's very urgent. Please replay ASAP.
    Thanks
    Rajeshwari

    Analyzing ur ques ...
    If user click on the Save Button it should display a window which allows the user to select the directory and the data is stored in the Internet Explorer Format.hmmm..
    There is no html object type which supports directory selection for download. There is only an input type="file" which however is related to an upload scenario.
    By downloading the file using output stream u can achieve what you want.
    You simply need to do the following things ..
    a) Write to an output stream
    b) Set the content type to "text/html" for your response
    Example ....
    response.setContentType("text/html");
    response.setHeader("Content-disposition",
    "attachment; filename" +
    "Example.html" );
    javax.servlet.ServletOutputStream stream = res.getOutputStream();
    StringBuffer text = new StringBuffer(1024);
    text.append("some text . . . ");
    text.append("more text . . . ");
    stream.write(data);
    stream.close();

  • Bookmark pop up window incomplete-missing right side buttons

    When I use the Bookmark Button and select "Bookmark This Page" the pop up window to place the bookmark is incomplete. The right side is cut off and the buttons to select or add folders is not shown.

    You can try to disable hardware acceleration in Firefox (you need to close and restart Firefox).
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How to close main window on click of a button on popup window

    Hi All,
    I have created a web page which on certain condition display a popup window to to provide information. Wht i want is that when i click on close button on my popup window, my main window should also close.
    Can anyone please help with this requierment!!!
    Regards,
    tushar

    Hi All,
    Could anyone of you please help me by answering the thread
    WDDOEXIT method not called when the application is closed from the portal
    Thanks,
    Subash M

  • How to open a new pop-up window on click of a link using OAFunctions

    Hi ,
    I have a requirement to open a new pop-window on click of the responsibility name(functions available under responsibilities). The current URL /link is driven using OAFunctions.
    Any idea, how can i open a new window while still keeping the parent window as it is?
    Regards
    Puja

    This can be achieved, you need to first create the javascript function which will open the popup and add that to the HomePage through and then call that function during onLoad of the HomePage. Here is a code sample,
    1. Extend the page level controller and write a new controller
    2. Write the following code in processRequest before calling super.
    StringBuffer popupScript = new StringBuffer("function customPopUp() { ");
    popupScript.append("newWindow = window.open(theURL,'newWindow','toolbar=no,menubar=no,resizable=no,scrollbars=no,status=no,location=no,width=300,height=500);}");
    pageContext.putJavaScriptFunction("customPopUp", new String(popupScript));
    OABodyBean bodyBean = pageContext.getRootWebBean();
    bodyBean.setOnLoad("customPopUp");
    3. Use personalization to replace the existing controller with your extended controller and the popup should be launched whenever you enter the homepage.

Maybe you are looking for

  • How do I get my music back on my device

    Out of over 3000 songs that used to be on my iPad, I now only have 134. How do I get the files back so I can run them on other programs IE Serato or Record box. Unfortunately I don't always have he luxury of wifi or even 3G etc and I am a professiona

  • JDBC Adapter / Acknowledgements

    Hello all My scenario is the following : IDOC > XI > Oracle database. I want to update a table. As I use UPDATE_INSERT actions on database, I think there can't be errors if database is reached by adapter. So I decided to use an asynchronous interface

  • Ship to Party Query

    Hi all, If I have 3 ship to parties for a sold to party, i have an option of selecting one ship to party when i create a sales order. can i have a default ship to party for the sold to party? i.e the system should automatically propose the default sh

  • Getting Started error  when starting messaging Gateway on Unix

    HI all. We are having difficulties with getting messaging gateway set up on unix. We are following the DocId Note:212587.1 The error we are getting is when we try and start the gateway. ORA 6520 pl/sql error loading external library line 33 ORA 6512

  • Grants across table spaces

    I'm trying to write a report that selects data from two schemas in two different HTMLDB tablespaces (or workspaces). How do I gain access from one workspace to the other? I've tried dblink and grants, but I'm unable to see users from one workspace to