Pop up in Webdynpro??

I am implementing delete operation in webdynpro. On submitting delete, I want a pop up window to accept confirmation. How can this be done in WebDynpro.
Regards,
Pawan.

HI Pawan,
INorder to get the popups u have to first import the poupcomponentcontrollers(TutWD_Popup_Init) into ur nwds.
if u click on the delete button then u have to get the popup dialog conformation box with yes and no buttons.
its like this....
Creating Event Handlers yes and no...
1. Open the EmailView controller (Web Dynpro Components �� PopupComp
EmailView).
2. Choose the Methods tab page.
3. Choose New. In the wizard that appears, select Event handler and choose
confirm.
4. Enter the name ok and choose Finish to confirm.
after creating event handlers...
onActiondeletebutton(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent
wdEvent )
//@@begin onActionSendMail(ServerEvent)
String dialogText= "Please confirm to delete or not!";
IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialogText,wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("yes"),"yes");
    dialog.addChoice(wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("no"),"no");
    dialog.open();
    //@@end
hope u r satisfied with this....!
points please
REGARDS,
KRISHNAM RAJU

Similar Messages

  • Procedure to how to create a pop up in webdynpro

    hi all,
      will anybody guide me the procedure to how to create a pop up in webdynpro application..plz as am new to it and i had requirement of creating pop up window in starting the application.
    thanks in advance.

    hi suman,
    thanks for ur reply.
    i want my pop up when i clk on button ok on my 1st view.
    so i included the code in the method of ONACTION OK.
    but am not able to display any sort of pop up.
    my code is
    DATA lo_nd_node TYPE REF TO if_wd_context_node.
          data: lr_popup type ref to if_wd_window,
            lr_view_controller type ref to if_wd_view_controller.
    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(
                       window_name            = 'WW_POP'
                      title                  = 'my first message'
                      close_in_any_case      = abap_true
                       message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                      close_button           = abap_true
                       button_kind            = if_wd_window=>co_buttons_ok
                       message_type           = if_wd_window=>co_msg_type_none
                       default_button         = if_wd_window=>co_button_ok
    lo_window->open( ).
    will u help me out in this.

  • Chaging Height and Width of POP UP in Webdynpro

    Hi,
    I want to change the height and width of pop up in webdynpro.
    Pop up is designed of view which is embeded in window.
    then i am calling
    lo_window         = lo_window_manager->create_window(
                         window_name                = 'UPLOAD_FILE'
                         title                                   =      'Upload target file'
                         close_in_any_case         = abap_true
                         message_display_mode  = if_wd_window=>co_msg_display_mode_selected
                         close_button                    = abap_true
                         button_kind                      = if_wd_window=>co_button_none
                         message_type                 = if_wd_window=>co_msg_type_none
                         default_button                  = if_wd_window=>co_button_none
                         is_resizable                      = abap_true
    I have also tried
      lo_window->set_window_size(   width = '999px' height = '999px'  ).
    But it is also not working..
    How i will resize the pop up.
    I have also change the view height and weight but the height is adjusted to some standard level.
    Looking for your feedback.
    Thanks
    Ankesh
    Moderator message: please have a look and ask again if necessary in the dedicated "Web Dynpro ABAP" forum.
    Edited by: Thomas Zloch on Feb 14, 2011 11:35 AM

    Hi Vedant,
    check the below given thread
    Is there anyway to make a popup window MODAL in APEX using JavaScript
    Hope this will helps you,
    Regards,
    Jitendra

  • Webdynpro pop up text change

    Hi All,
    I have created a pop up window by using method create_popup_to_confirm of if_wd_window_manager . I have created the OK button by using if_wd_window=>co_button_ok of if_wd_window .
    I need to change the default button text " OK  " to " EDIT ". I am following the below approach .
            view_controller = wd_this->wd_get_api( ).
            lo_window->subscribe_to_button_event(
            button = if_wd_window=>co_button_ok
            button_text = 'EDIT'
            action_name = 'MSG'
            action_view = view_controller ).
    Note : Action " MSG "  is a dummy action which I have created just to change the default button text .
    This works if the control is in the same view where pop up is called . If we have to go back to other webdynpro component/ view then , after clicking on EDIT button in pop up , it gives the dump with the error " Controller for View, Window, Interface, and Configuration Cannot Be Created " .
    Please let me know if there is any other way to change the default text in the pop up screen or any other solution . I am ok to use any other method which creates pop up window and default text should be modified .
    Thanks,
    Kiran.

    Hi Kiran,
    If its that important for you to change the button label, I would suggest creating a new view and calling it as a popup.
    Please follow below steps to do so:
    1) Create a new view with your respective design having message and EDIT button.
    2) Create a new window say Popup_Window
    3) Add the new view to this window and add below code
    4)Create a
    Data: context_node type ref to if_wd_context_node.
      data: lr_popup type ref to if_wd_window,
            lr_view_controller type ref to if_wd_view_controller.
      data: lr_api_comp_controller type ref to if_wd_component,
            lr_window_manager type ref to if_wd_window_manager.
      lr_api_comp_controller = wd_comp_controller->wd_get_api( ).
      lr_window_manager = lr_api_comp_controller->get_window_manager( ).
      lr_popup = lr_window_manager->create_window(
      MODAL               = ABAP_TRUE
      window_name         = 'POPUP_WINDOW'  "Name of the window created in step 2
      TITLE               = Confirmation Message"
      CLOSE_BUTTON        = ABAP_TRUE
      BUTTON_KIND         = if_wd_window=>CO_BUTTONS_OKCANCEL
    MESSAGE_TYPE        = if_wd_window=>co_msg_type_error
      CLOSE_IN_ANY_CASE   = ABAP_TRUE
    *MESSAGE_DISPLAY_MODE = MESSAGE_DISPLAY_MODE
    Adds an action to the popup screen buttons
    lr_view_controller = wd_this->wd_get_api( ).
    lr_popup->subscribe_to_button_event(
    button = if_wd_window=>co_button_ok
    button_text = 'EDIT'
    action_name = 'EDIT'
    action_view = lr_view_controller ).
      lr_popup->open( ).
    I hope it helps.
    Please revert back in case of issues.
    Regards,
    Sumit

  • WebDynpro ABAP Pop-Ups don't pick up the theme

    Hi everyone,
    I've developed a WebDynpro ABAP component that makes use of a Freely Programmed Input Help.
    This input help is shown in a pop-up which doesn't inherit the portal theme. Actually it inherits only parts of it and not the whole look and feel (for instance labels are rendered fine but page background is the standard blue colour).
    Unfortunately I cannot use the parameter:
    WDFORCEEXTERNALSTYLESHEET=X&sap-cssurl=
    because I have no control on the window (free style Input Value Help Windows are opened automatically by the framework and I parameters can't be added to the URL).
    Any ideas?
    Thank you.

    Hi,
    Refer Portal Theme in Webdynpro ABAP
    This might give you some idea.
    Thanks,
    Chandra

  • Resizing pop-up window in webdynpro abap

    Hi,
    I am a newbie to abap webdynpro.I would like to know how to resize
    a pop-up window.
    I have used the method 'SET_WINDOW_POSITION'
    from interface 'IF_WD_WINDOW'
    Below seen is my coding, but this is not working. Can anybody  clarify!
    L_FINAL_WINDOW->SET_WINDOW_POSITION(
    LEFT = 200
    TOP = 200
    *position =  ).
    L_FINAL_WINDOW->SET_WINDOW_SIZE(
    WIDTH = '3000px'
    HEIGHT = '3000px' ).
    Regards,
    Sathish kumar

    L_FINAL_WINDOW->SET_WINDOW_POSITION(
    LEFT = 200
    TOP = 200
    L_FINAL_WINDOW->SET_WINDOW_SIZE(
    WIDTH = '30em'
    HEIGHT = '10em' ).
    L_FINAL_WINDOW->open( ).
    also you can use pixels.
    don't use 3000px, use less.
    L_FINAL_WINDOW->set_window_size( width = '300px' height = '' ).

  • Login pop-up when launching Webdynpro ABAP application from SAP Inbox

    Hello All,
    We have configured our workflow to trigger WD ABAP application from SAP Inbox.
    However when we launch the workitem from SAP Inbox, we are getting a login pop-up screen in IE which prompts us to enter SAP password.
    Can you please help how can we avoid getting that login screen and how the WD ABAP application can single sign on from SAP GUI to IE for that user-id.
    Appreciate all your help.
    Regards,
    Samta.

    Hi Samta,
    You can configure User(RFC) and password for your webdynpro appl'n using SICF tcode.
    Path : /default_host/sap/bc/webdynpro/sap/(your wdp appln)
    Thanks
    Katrice

  • Adobe Form NOT getting displayed in WebDynpro Modal Window  (Pop Up)

    Hi,
    I am trying to display the table data in a Interactive Form. I have used TABLE UI element in Interactive Form. When the user clicks on a EXPORT button this form is displayed in a pop up window (Modal Window). This form is not getting displayed for most of the users. In some PC's it is getting displayed, strange is all their browser versions and OS versions are same.
    Portal Version: NW04s SP8
    NWDS Version : NW04s SP8
    Adobe Live Designer: 7.1
    Acrobat Reader: 7.0.8
    I tried changing the display type (property of Interactive Form Element) to NATIVE, it is not working at all. If i change it to "activeX", then it works in some PC's.No logs are found in the server as well as in the client PC as well.
    Please let me know if you have come across this problem, looking forward to your solution.
    Thanks
    Senthil

    Hi,
    It seems to be available only for ABAP version. I cant find it in the java version.. check this..
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/656442a1c4de54e10000000a155106/frameset.htm">Help SAP Link for Java Reference</a>
    And even in ABAP , the pre-requisite seems to be installation of ACF,
    The exact words
    <i>
      Adobe Reader (>= 7.0) and, if you are creating interactive forms, also the ActiveX Control Framework (ACF) installed on your computer. Also see SAP note 834573.</i>

  • Calling Component details in Webdynpro Component Usage Pop-up

    Hi Experts,
    We have a WD component, say ZWD1, which has been re-used(component usage) in many other WD components.
    In all the usages the main window of ZWD1 is being called as a pop-up.
    Now we have a requirement wherein i need to write certain logic in ZWD1 view method which should be executed only when
    ZWD1 is called as a pop-up from 2 particular components out of all the components in which it has been reused.
    Is there any way in which we can get the details of the Parent window (or) component from which ZWD1 has been called, in the methods of ZWD1? (Apart from calling an interface method of ZWD1 or setting the value of an interface node of ZWD1, from the parent component)
    Thanks in advance.
    Best Regards,
    Sampath A.

    Hi,
    for your requirement you could use Assistance Classes in your Parent component and Used Component.
    Use the Same Assistance class in all the components and set an Attribute in Assistance class while in Parent component.
    Now in your Used Component , you can access that Attribute of Assistance class and check which Parent component it is calling.
    To call the attribute/method use the instance wd_assist.
    For more info on Assistance  class and its usage Refer the SAP Online Help :
    http://help.sap.com/saphelp_nw70/helpdata/EN/43/1f6442a3d9e72ce10000000a1550b0/frameset.htm
    I hope it helps.

  • Issue with Pop Up window in Webdynpro java

    Hi Folks
    i am trying to use the below code for my test application.
    I took the below code from SDN.
    public void showAddressbookPopup() {
    // @@begin showAddressbookPopup()
    // get the repository content at runtime of the Web-Dynpro-
    // Window u201CAddressbookWindowu201D
    IWDWindowInfo windowInfo = (IWDWindowInfo) wdComponentAPI
    .getComponentInfo().findInWindows("AddressbookWindow");
    // create the u201CAddressbookWindowu201D
    IWDWindow window = wdComponentAPI.getWindowManager()
    .createModalWindow(windowInfo);
    // set the WindowPosition on the screen
    window.setWindowPosition(300, 150);
    // and show the window
    window.show();
    Here i dont find the function show under window.
    window.show();
    My NWDS prompts me with the Error msg as
    The Method show() is undefined for the type IWDWindow.
    Can anyone provide some pointer over this.
    Thanks
    Kumar T

    You found it? Use "Open" instead of "show" and it will work like ours.

  • Portal Session Timeout - ICM/Webdynpro/POWL

    Hi Experts,
    We are having SRM Portal which has POWL Webdynpro and other applications running.
    SRM Portal is a seperate JAVA Instance and integrated to backend with SSO enabled.
    We have Logon Ticket Timeout set as default 8 Hours and the Session Timeout in Portal set as 2 Hours (Server>services>webcontainer>properties>Session Timeout).
    For the ABAP backend, we have rdisp/plugin_auto_logout-->7200 (2 Hours) and ICM timeout as remommeded by SAP as icm/server_port_0     = PROT=HTTP,PORT=8012,TIMEOUT=90,PROCTIMEOUT=600
    Now the problem is:
    1. Users connected to portal and work on any POWL Iviews has an idle time of two hours-->we get the ICM session timeout error page.
    2. Sometimes Users get the Login screen of portal within the Navigation Frame which can be identified as the Ticket Expiration
    Is there a possibility to control the behavior of portal to avoid these error pages to Users like if the timeout happened in backend, there should be auto refresh if the user clicks the application.
    And if the ticket expired, the portal should refresh to the home screen on clicking any Iview.
    We tried the IDLE timeout pop up and in Vain, you could see my another post on the same.
    Portal Idle Pop Up
    Regards,
    Sethu

    Hi,
    Read SAP note 705013,
    I think adjusting the kernel parameters, rdisp/gui_auto_logout and  rdisp/plugin_auto_logout will help.
    Try adding below parameters in the Instance profile.
    icm/keep_alive_timeout 3600
    icm/conn_timeout 5000
    Regards,
    Venkata S Pagolu

  • POWL OBN links do not open a pop up window in one domain

    Hi
    I am hoping to get some helpful information on a problem with a POWL OBN links not opening a pop-up only in one domain. The issue is described below.
    We have deployed the BP for Buyer 1.0, SP15. One of the iViews we use is the My Purchasing Documents and we have enabled the query POWL_PR_MY. Our Portal Version is 7.0 SP21, ECC6 (no EHP).
    Query POWL_PR_MY (My Purchase Requisitions) of POWL Application OPS-BUYER-POWL-PURDOC has links with the Purchase Requisition Number. Ideally when the links are clicked on, it should open up the Purchase Requisition transaction with the details of the item. This does not happen in our case.
    Our Portal Server is on the domain main.nex.com, but is accessed from the domain drs.nex.com. The ECC is also on the main.nex.com domain.
    When we access this application using "portal.main.nex.com", the links work fine as they should. But when we access the application using "portal.drs.nex.com", they do not open at all. There is no error message displayed. It just simply does not do anything.
    We have added *.main.nex.com to our local intranet trusted sites and have enabled pop-ups, added the proxy exception
    *.main.nex.com. All the Pop-ups are working from the other Custom Webdynpro application and from the other SAP GUI for HTML transactions in the portal from domain "drs.nex.com".
    I am not sure what the problem is, but we are facing a problem ONLY with this application's links. I am not able to see anything in the nwa logs too.
    Any pointers as to where I can look for issues?
    Thanks
    OJ

    Hi Malte
    No luck yet - so we are currently using portal.main.nex.com to access our portal until we find a solution. Will keep you posted. In the meanwhile, if you do find some information, please update.
    Thanks
    OJ

  • Follow-up webdynpro for abap using portal theme nw2004s, sp12

    Hello,
    I wanted to get a follow up to this thread,
    Re: webdynpro for abap using portal theme nw2004s, sp12
    We are having a problem with the way reports developed in Web Dynpro for ABAP displayed in the portal (the pop-ups and dropdowns look out of wack).  The issue appears when we wrap the reports into portal themes (either standard or custom).  As per the thread (the link for which I posted above), the suggestion was to apply WDFORCEEXTERNALSTYLESHEET parameter to the WDP, however our system doesn't have this parameter in the system, but it seems like I can create my own parameter. Can some on give me all of the properties assigned to WDFORCEEXTERNALSTYLESHEET in table WDY_APP_PROP_DEF.
    Thank you

    Hi Brad, I was trying to apply the note 1033496 but our ABAP servers does not have the WDFORCEEXTERNALSTYLESHEET parameter available in WDY_APP_PROP_DEF table.  All other notes are not applicable to our issue.
    The portal is NW2004s SP12, the ABAP server is NW2004 SP11
    Regards.
    Message was edited by:
            Aleks Ozerov

  • Kind of URGENT - WebDynpro F4 help in portal

    Hi, we developed a WebDynpro ABAP solution and everything was fine including portal, however after transport to new system enviroment F4 help is not working anymore only in portal. When calling WebDynpro directly it's fine.
    We thought that the note 997989 could solve it, but without success; The Error Pop Up still occurs when a F4 is pressed.
    Any ideas??? Thanks ...

    Hi,
    have you tried SAP note 1059450 ?
    Regards, Heidi

  • Help needed: Download to excel without pop-up

    Hi All,
    In a particular scenario, I require to trigger an action once a file have been successfully downloaded to EXCEL from Webdynpro UI. But in case of download functionilty, once the MS window pop-up for download comes up, the control is lost from Webdynpro and its impossible to track whether user have saved, opened or canceled the file.
    Is there any functionality to directly download internal table content to EXCEL, without facing the download popup. Please let me know any function module or functionality for this.
    Thanks in advance to all.
    Regards,
    Mainak

    yes there are many tutorials on SDN regarding this
    u may procced like this :
    get the contents in internal table  and then use the FM 'SCMS_STRING_TO_XSTRING'
    DATA text   TYPE string.
      DATA xtext  TYPE xstring.
    *   get all declared attributes
      lo_nd_sbook->get_static_attributes_table(
        IMPORTING
         table = lt_sbook ).
      LOOP AT lt_sbook INTO ls_sbook.
    CONCATENATE text ls_sbook-carrid
    ls_sbook-connid
    ls_sbook-fldate
    ls_sbook-bookid
    ls_sbook-order_date
    ls_sbook-counter
    ls_sbook-passname
    cl_abap_char_utilities=>newline INTO text SEPARATED BY
    cl_abap_char_utilities=>horizontal_tab.
    ENDLOOP.
        CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
          EXPORTING
            text   = text
          IMPORTING
            buffer = xtext.
        wdr_task=>client_window->client->attach_file_to_response(
    **path to the word file
    i_filename = 'WDP.xls'
    * String Variable
    i_content =  xtext
    * File Type
    i_mime_type = 'EXCEL' ).
    here it_sbook is the inernal table and ls_sbook is the structure type of the attributes declared in the context node sbook
      DATA ls_sbook TYPE wd_this->element_sbook.
    *  data LT_SFLIGHT type WD_THIS->ELEMENTS_SFLIGHT.
      DATA lt_sbook TYPE wd_this->elements_sbook.
    Edited by: amit saini on Oct 14, 2009 1:30 PM

Maybe you are looking for