Multiple buttons on popup window

Hi Experts,
    Is there any possible way to add 4 buttons on webdynpro poup window.Iam already adding 2 buttons
submit(yes),reject(No)...is there any way to add two more like cancel,change...
                         if any one could u give solution is grately appreciated thanks in advance...
Regards,
kranthi

Hi Kranthi,
If you are using standard buttons from window manager ( IF_WD_WINDOW_MANAGER) while generating popup window, we can have maximum of 3 buttons.
Other way:
You can add as many buttons you want inside the view and do not use standard buttons.
Please follow the below steps
Create a view V_POPUP and add your ui elements
create 4 buttons YES, NO, CANCEL & CHANGE inside the view and create actions for each button
Create a window W_POPUP & embed the view V_POPUP inside the window
Create an attribute GO_WINDOW ( ref to IF_WD_WINDOW ) inside view-->attributes tab
Now, call the popup window as below
CALL METHOD lo_window_manager->create_window(
    EXPORTING
      window_name       = 'W_POPUP'
      title             = 'My Popup Window with custom buttons'
      close_button      = abap_true
      button_kind       = if_wd_window=>CO_BUTTONS_NONE " no std buttons
      close_in_any_case = abap_false
    RECEIVING
      window            = wd_comp_controller->go_window
     wd_comp_controller->go_window->open( ).
Now, if you want to close the popup window inside the CANCEL button, write the below code
          wd_comp_controller->go_window->close( ).
Hope this helps you.
Regards,
Rama

Similar Messages

  • 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 create multiple items in popup window

    Hi,
    i am using apex3.2.
    i want to create page as a popup and that popup page has multiple of select list items .i have 8 select list item on popup page.i have a link on other page.when i click on this link popup page should open .after selecting values from select list when i click on submit button on popup page. all select list return values concatenation should display in a text box item.
    How can i do this? if you have any tutorial or link please send me.
    Thanks & Regards
    Vedant

    Hi,
    try this example from Denes Kubicek:
    http://htmldb.oracle.com/pls/otn/f?p=31517:93:678982863984901: (Close PopUp + Refresh)
    Best regards,
    Tobias

  • Buttons for popup windows

    I have created a button in a "region position" that opens a popup window, this works fine. How do I do this for a button amoungst the "region's items"?
    I have created a button in the regions items that runs a branch process, but this does not work. Where should I be putting the javascript?
    javascript:popupURL('/pls/apexuat/f?P=&APP_ID.:7:&SESSION.')

    Hi,
    <br>
    Create a Display As Text Item and in the Source Value add:-
    <br>
    <td colspan="1" rowspan="1" align="left"><a_href="javascript:popupURL('/pls/apexuat/f?P=&APP_ID.:7:&SESSION.')" class="t12Button">Some Button</a></td>
    <br>
    You will need to change the class value 't12Button' to whatever theme you are using.
    <br>
    Change a_href to remove the _ (Added to show correctly in this thread)
    <br>
    Regards
    <br>
    Paul

  • Remove Maximize button from popup window using Webdynpro ABAP

    Hi,
    Is there a way to remove the maximize button from a popup window using Webdynpro ABAP?
    Thanks,
    Jay

    Hi Jayanth,
    I think by setting is_resizable parameter pass abap_false. try this
    lo_window = lo_window_manager->create_window(
    window_name = 'POPUP'
    title = 'Window'
    close_in_any_case      = abap_true
    message_display_mode = if_wd_window=>co_msg_display_mode_selected
    message_type = if_wd_window=>co_msg_type_none
    is_resizable    = ABAP_FALSE ).
    Cheers,
    Kris.

  • Radio button in popup window

    Hi experts,
    I have displayed a popup using POPUP_WITH_TABLE_DISPLAY, with two fields tvag-abgru (reason for rejection code) and tvagt-bezei (description for reason for rejection code) so as to reject the sales orders.
    But now my client want the popup with selection box ( may be radio button)  along with the field values in the popup.
    can anybody tell me is there any option with this function module. or else how can we do this.
    thanks,
    sudheer.

    But now my client want the popup with selection box ( may be radio button) along with the field values in the popup.
    It is  not possible that function here , but you can try this...
    We can use the check box instead of Radiobutton.
    Please check the sample code.
    REPORT ztest_alv_check MESSAGE-ID zz .
    TYPE-POOLS: slis.
    DATA: x_fieldcat TYPE slis_fieldcat_alv,
    it_fieldcat TYPE slis_t_fieldcat_alv,
    l_layout TYPE slis_layout_alv,
    x_events TYPE slis_alv_event,
    it_events TYPE slis_t_event.
    DATA: BEGIN OF itab OCCURS 0,
    vbeln LIKE vbak-vbeln,
    posnr LIKE vbap-posnr,
    chk(1),
    color(4),
    END OF itab.
    SELECT vbeln
    posnr
    FROM vbap
    UP TO 20 ROWS
    INTO TABLE itab.
    x_fieldcat-fieldname = 'CHK'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 1.
    x_fieldcat-input = 'X'.
    x_fieldcat-edit = 'X'.
    x_fieldcat-checkbox = 'X'.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'VBELN'.
    x_fieldcat-seltext_l = 'VBELN'.
    x_fieldcat-hotspot = 'X'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 2.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'POSNR'.
    x_fieldcat-seltext_l = 'POSNR'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 3.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    DATA selfield TYPE  slis_selfield.
    CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
      EXPORTING
        i_title                 = 'Select Data'
        i_selection             = 'X'
        i_zebra                 = 'X'
        i_screen_start_column   = 5
        i_screen_start_line     = 5
        i_screen_end_column     = 50
        i_screen_end_line       = 10
        i_checkbox_fieldname    = 'CHK'
        i_tabname               = 'ITAB'
        i_scroll_to_sel_line    = 'X'
        it_fieldcat             = it_fieldcat
        i_callback_program      = sy-repid
        i_callback_user_command = 'USER_COMMAND'
      IMPORTING
        es_selfield             = selfield
      TABLES
        t_outtab                = itab
      EXCEPTIONS
        program_error           = 1.
    *&      Form  STATUS
    *       text
    *      -->P_EXTAB    text
    FORM status USING p_extab TYPE slis_t_extab.
      SET PF-STATUS 'STATUS'.
    ENDFORM. " STATUS
    *&      Form  USER_COMMAND
    *       text
    *      -->R_UCOMM      text
    *      -->RS_SELFIELD  text
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
      DATA: gd_repid LIKE sy-repid, "Exists
      ref_grid TYPE REF TO cl_gui_alv_grid.
      IF ref_grid IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = ref_grid.
      ENDIF.
      IF NOT ref_grid IS INITIAL.
        CALL METHOD ref_grid->check_changed_data .
      ENDIF.
      LOOP AT itab WHERE chk = 'X'.
        itab-color = 'C300'.
        MODIFY itab INDEX sy-tabix TRANSPORTING color.
      ENDLOOP.
      rs_selfield-refresh = 'X'.
      BREAK-POINT.
    ENDFORM. "USER_COMMAND
    Regards
    Vijay Babu Dudla

  • How i can dissable/remove close buttons from popup window

    We have an web application so i want to dissable/remove the close button , so please help me as soon as possible.
    we are using only firefox for our web application and also for private use.
    Thank you.

    Just to be sure, you want to '''Remove''' the close button?
    I called the big guys for you.

  • How can we create a popup window for confirmation while clicking of button

    HI Friends,
    I am creating a application, In which I want to create a popup window for confirmation on clicking of a button.
    I also need two buttons on popup window i.e. 'Yes' & 'No'.
    On yes i want to perform some operation and on No i want to cancel that operation.

    Hi Narendra,
    try using the following code in ONACTION of ur button for popup :
    * Popup
       *  Generate Popup
        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          = 'W_POPUP'
         window_position = if_wd_window=>co_center
          message_display_mode = if_wd_window=>co_msg_display_mode_selected
          button_kind          = if_wd_window=>co_buttons_yesno
          message_type         = if_wd_window=>co_msg_type_none
          default_button       = if_wd_window=>co_button_yes
        DATA:  l_api TYPE REF TO if_wd_view_controller.
        l_api = wd_this->wd_get_api( ).
        " subscribe action for Ok button
        lo_window->subscribe_to_button_event(
                     button            = if_wd_window=>co_button_yes
                     action_name       = 'OK_POPUP'
                     action_view       = l_api
                     is_default_button = abap_true ).
        lo_window->open( ).
    regds,
    amit

  • InputListofValue PopUp window CANCEL button event capture ?

    HI All ,
    Jdeveloper version 11.X.6.
    i have explained the outline of issue below:
    User enter some data on InpuLIstOfValue text field and click on the maginfied Glass, the pop opens and selects some data and click 'OK' ,it will display appropriately on below fields.
    but if user enters the wrong data on InpuLIstOfValue text field and clicks on maginfier Glass,no results found on the popup window, so upon click of "CANCEL" button on popup window ,
    is there any way to remove the old data on InpuLIstOfValue Filed ?
    Basicaly i am looking for the capturing the CANCEL button event on the popUpwindow ,based on event status .
    PLase let us know if any hints ?
    Thanks

    Step by step:
    1. Create the converter class:
    package view.converters;
    import java.util.Collection;
    import java.util.Collections;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import javax.faces.convert.Converter;
    import org.apache.myfaces.trinidad.convert.ClientConverter;
    import org.apache.commons.lang.StringUtils;
    public class LOVConverter implements Converter, ClientConverter {
      public Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String value) {
        if (StringUtils.isBlank(value)) {
          // cancel event was triggered, so do something
        return value; // if value is not an instance of String you need to convert it to its primary type (Number, Date, String, etc)
      public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object value)
        if (value == null || /* value is empty in its primary type */) {
          // cancel event was triggered, so do something
        return value.toString();
      public String getClientLibrarySource(FacesContext facesContext)
        return null;
      public Collection<String> getClientImportNames()
        return Collections.emptySet();
      public String getClientScript(FacesContext facesContext, UIComponent uiComponent)
        return null;
      public String getClientConversion(FacesContext facesContext, UIComponent uiComponent)
        return null;
    }2. Declare the converter in faces-config.xml:
    <converter>
      <converter-id>LOVConverter</converter-id>
      <converter-class>view.converters.LOVConverter</converter-class>
    </converter>3. Your inputListOfValues should look like this (see the property converter="LOVConverter"):
    <af:inputListOfValues popupTitle="Search"
                          value="#{row.bindings.DepartmentId.inputValue}"
                          model="#{row.bindings.DepartmentId.listOfValuesModel}"
                          required="#{bindings.EmployeesView1.hints.DepartmentId.mandatory}"
                          columns="#{bindings.EmployeesView1.hints.DepartmentId.displayWidth}"
                          shortDesc="#{bindings.EmployeesView1.hints.DepartmentId.tooltip}"
                          converter="LOVConverter"
                          id="ilov1">After that, when the user clicks the Cancel button, both methods (getAsObject and getAsString) should be invoked, and then you would be able to reset the component value (using uiComponent parameter).
    AP

  • ABAP Web Dynpro Window Inactive After Closing Popup Window

    Hello ABAP'ers
    I have a custom ABAP Web dynpro applications that uses multiple tiers of popup windows.  This application was functioning properly in our ECC6.0, Basis release 7.00 Service level 15 environment.  However, we are currently installing EHP4 and moving or basis release to 7.01 service level 5. In this new environment, when multiple popup window tiers are closed simultaneously, the underlining window is not re-activated.
    Here's a more specific description:
    The application starts with a control panel window presenting a series of buttons.  Selecting one of these buttons activates a modal (I know... all web dynpro popups are modal) popup window for the purpose of maintaining some object.  If the user attempts to exit this window without saving the changes, another popup window appears asking if they want to save their changes.  If they say no, both the popup window asking the question and the popup maintenance window are closed, thus returning the user to the switchboard.
    The problem is that none of the functionality on the switchboard is active. the user must manually refresh the URL to "reactivate" the switchboard. 
    When only a single popup window is closed, the underlying window is properly reactivated.  The problem only occurs when multiple popups are closed together.
    Has anybody else seen this occur? Any ideas / notes around to correct it?
    Any info is greatly appreciated.
    R/
    Jim M

    Hello Jim, hello everyone,
    I am encountering the same issue.
    Is a solution known already?
    Thanks
    Johannes

  • How to send data from popup window to parent window

    Hi,
    I need help some like this
    I have parent window ,in that i am clicking + button one dynamic row should add and one popup window has to diplay .Popup window contain 3 comboboxes and 5 text boxes. Once i am clicking OK button in popup window those values has to display at specified row in parent window
    Kindly help me ,
    Thanks
    jyothi

    See this
    http://www.oracle.com/technology/products/jdev/101/howtos/jsfdrilldown/index.html

  • Close button in popup

    hi,
    how can i add button in popup window to close it? and i also want to display the value of element mapped to that window. i am new to web dynpro.
    thanx...

    Hi,
    If you want a popup to have options save or exit then
    you need to have two event handlers
    1) Create two event handlers Ok,close. Under methods tap select eventhandler radio button.
    2)In action button you write the following code
    IWDControllerInfo cntrl_info = wdControllerAPI.getViewInfo().getViewController();
    IWDConfirmationDialog confirm = wdComponentAPI.getWindowManager().createConfirmationWindow("You are going to Exit, Want to Proceed?", cntrl_info.findInEventHandlers("cancel"),"Cancel");
    confirm.addChoice(cntrl_info.findInEventHandlers"ok"),"Confirm");
    confirm.setWindowSize(250,100); confirm.setWindowPosition(100,100);
    confirm.show();
    3) In "ok" method in implementation you write your code to save
    --appreciate needfull answer with points before closing the thread
    Regards
    Raghu

  • Open popup window and redirect user to home page in sandboxed solution

    i've created a sandboxed solution visual webpart and it has submit button so when user fills the information in the text boxes availble in webpart and clicks submit button so I want to open popup button containg success message and ok button so when user
    clicks ok button in popup window i want user to be redirected to the home page of the site.
    i tried to open popup and showed success message by below code
     string gotohomepage = "http://sp2013:1111/Pages/home.aspx";
                    ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('Your Record has been submitted successfully,you will be redirected to home Page shortly');location.href =
    '" + gotohomepage + "';", true);
    but it's not opening popup window can anyone help how do i open popup window and redirect user to home page in sandboxed solution

    Page class and script manager are not supported in sandbox solution
    You can create model popup to achieve this
    below are the reference links
    http://blogs.msdn.com/b/chaks/archive/2011/09/14/modal-dialog-box-in-sharepoint-sandbox.aspx
    http://social.msdn.microsoft.com/Forums/en-US/9427db4d-60f2-4b2a-8db6-b50d01ac4f23/how-to-create-modal-popup-using-sandboxed-solution

  • RE: Getting multiple values from more than one multiple select popup window

    I have a button on a JSP of mine that when clicked creates a popup window (right now it is called popup.html) with a multiple select menu.
    My question is how do I get all the values selected from the menu into my JSP (sample.jsp) so that I can set each of the values for my bean.
    The other problem is that I have more than one select multiple menu.
    Please help if you can. Any advice or suggestions here would be greatly appreciated!
    Thank you!

    I realize that I can use request.getParameterValues to get the values selected from my html because I am passing them to the hidden inputs I have and then using the request.getParameterValues to get each of the values.
    MY PROBLEM IS WHAT IF I HAVE 4 MULTIPLE SELECTS??? How can I use the same html popup menu to get the values from the 4 different multiple selects????
    I look forward to your response.
    This code is from my JSP:
    <INPUT TYPE="TEXT" NAME="Field1" SIZE="15">
    <INPUT TYPE="hidden" name="F1Rad1">
    <INPUT TYPE="hidden" name="Permission">
    <input type=button name=choice onClick="window.open('optionPicker.html','popuppage','width=250,height=100');" value="Options"></TD>
    Here is my optionPicker.html code for the pop up menu:
    <html>
    <head>
    <script language="JavaScript">
    function sendValue(s)
    var boxSize= s.options[0].value;
    var restrict     = s.options[1].value;
    window.opener.document.addNewForm.F1Rad1.value = boxSize;
    window.opener.document.addNewForm.Permission.value = restrict;
    window.close();
    </script>
    </head>
    <body>
    <center>
    <form name=selectform>
    <select multiple name=selectmenu size="2">
    <option value="large">Large Text Input Area
    <option value="restrict">Restricted Access
    </select>
    <p></p>
    <input type=button value="Select Option(s) For Field" onClick="sendValue(this.form.selectmenu);">
    </form>
    </center>
    </body>
    </html>

  • Can I add a Close button to a popup window?

    My RoboHelp 10 project has nested popup windows (that is, I can open a popup window within a popup window within a popup window). The problem is, when I close the popup window at the lowest level, all of them close simultaneously. This is not good for navigation, particularly if the user is following instructions in the popup window and needs to go back up one popup window level.
    Is there a method by which I can close each individual popup window, for example, by adding a Close button to them? In other words, can I change the format of the popup windows?
    Your help will be much appreciated in finding a solution to this problem because it is fundamental to the way we want our Help to function. If a solution can not be found, we may have to change to another product to produce our Help.

    Hi,
    You can create a close buton by creating a link as follows with the following address:
    javascript:self.close()
    But I'm not sure whether this will work correctly with RoboHelp generated popups.
    Another question: why would you want multiple popups? Wouldn't it be better to create a popup that can tthen redirect to another topic? Having lots of windows wil become very confusing very fast.
    Greet,
    Willam

Maybe you are looking for

  • Early watch report from SAP

    Hi all Experts, Early watch report from SAP has suggested to delete data from BW statics table but has not specified any frequency of deleting data like 15 days, 30 days. at present we have Number of entries in table RSDDSTAT_OLAP is 1095081 and Numb

  • Application/vnd.ms-excel dropping leading 0's

    I have a jsp page that successfully displays my data in an excel window on the browser. My user then will cut and paste the data from the screen to Excel running on their desktop. My problem now is the leading zeroes are dropping off. The data being

  • Reverse Financial Document

    Hi, We have a scenario where in the account did not have a Cost Element earlier and we made a financial entry ( the data was uploaded earlier and it had a Cost Center associated with it, and when it errored out, we removed the CC, as we did not have

  • SDDM 4.1 - Physical Storage Properties Not Appearing in DDL

    I have only had this problem while using 4.1, not 4.0. In Tools > Preferences > Data Modeler > DDL if have the "Include Storage in DDL" box checked, and I have a Storage Template assigned to my table in my physical model. However, when I preview my t

  • How can I change the software language?

    The software is now in dutch, but I want it in English. I can't seem to find it. Can somebody help me with this?