Trigger event in alv without button in web dynpro

Hi Friends,
in alv list I can trigger an evant by declaring field i.g. "CONNID" as button.
Is it possible without create a button.
I mean, when I have several fields like matnr, bukrs etc. I want for each calling the details, but without
to declare a button, because it looks not very smart when each field has a button.
Thanks in advance
Jimbob.

hi ,
using LINK TO ACTION , u can triger the events in ur ALV
* Display link in column connid
DATA: lr_link TYPE REF TO cl_salv_wd_uie_link_to_action.
lr_column = l_value->if_salv_wd_column_settings~get_column( 'CONNID' ).
CREATE OBJECT lr_link.
lr_link->set_text_fieldname( 'CONNID' ).
lr_column->set_cell_editor( lr_link ).
refer this tutorial :
Using Events with ALV Tables in Web Dynpro for ABAP
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bd28494a-0801-0010-45a3-fc359d82d3e8?overridelayout=true
regards,
amit

Similar Messages

  • Detail Button in Web Dynpro ALV

    Hi at all,
    when I create an ALV in Standard ABAP there is a small "Detail" button on the left side of the button row without any additional complex programming.
    How can I get this button in Web Dynpro ALV?
    Dirk

    The standard ALV Component in Web Dynpro doesn't have this features.  It wouldn't be too difficult to add manually.  You could simply bind a custom view to the lead selection of the same context you are using in the ALV and use the form wizard to generate the UI elements.  It isn't quite as nice becuase it woudl require a few manual steps for each usage of the ALV where you want this functionality.

  • Dynamic radio button in web dynpro abao

    Hi expert,
    I want to dynamic radio button by  web dynpro abap .
    Kindly give me a soulation ASAP.
    Thanks and regard's
    Vikash

    hi,
    method wddomodifyview .
    if first_time eq abap_true.
    data: LR_CONTAINER         type ref to CL_WD_UIELEMENT_CONTAINER,
          LR_RADIOBUTTON1            type ref to CL_WD_RADIOBUTTON,
          LR_RADIOBUTTON2            type ref to CL_WD_RADIOBUTTON,     
          LR_FLOW_DATA         type ref to CL_WD_FLOW_DATA.
    " bind text property will give TEXT that appears next to Radio Button
    CALL METHOD cl_wd_radiobutton=>new_radiobutton
      EXPORTING
       bind_selected_key   =  '01' 
       BIND_TEXT           =  'saurav'
      receiving
        control             = LR_RADIOBUTTON1.
    " bind text property will give TEXT that appears next to Radio Button
    CALL METHOD cl_wd_radiobutton=>new_radiobutton
      EXPORTING
        bind_selected_key   = '02'
       BIND_TEXT           = 'mago'
      receiving
        control             = LR_RADIOBUTTON2.
    LR_FLOW_DATA        =  CL_WD_FLOW_DATA=>NEW_FLOW_DATA( element = LR_RADIOBUTTON1  ).
    LR_FLOW_DATA        =  CL_WD_FLOW_DATA=>NEW_FLOW_DATA( element = LR_RADIOBUTTON2  ).
    LR_CONTAINER ?= view->GET_ELEMENT( 'ROOTUIELEMENTCONTAINER' ).
    LR_CONTAINER->ADD_CHILD( LR_RADIOBUTTON1  ).
    LR_CONTAINER->ADD_CHILD( LR_RADIOBUTTON2  ).
    endif.
    endmethod.
    Thanx.

  • Work on tasks without using the Web-Dynpro

    Hello everybody,
    i´m new at BPM and i have a question about tasks. Is there a way to work on tasks with the BPM API or something without using the Web-Dynpro? The System i work with is the CE 7.2. I can also use a CE 7.3 test System.
    thanks
    Edited by: jtrebess on Oct 5, 2011 3:57 PM

    Here ist the scenario: I have to write an application which has its own UWL. I know that it is possible to read tasks for the current user. Is it also possible to manage the task with the BPM-API? Is it possible to get the output parameter and to transfer the required Input parameter?

  • Add check box in alv  output list in web dynpro

    Dear Friends,
    I want to Add check box in begining  of  each row  of alv output list for WEB DYNPRO  Program.
    ISHA

    Lalsha - you need an attribute (I will named check_box) in your context node to be in the 1st position of your ALV context node
    Data: lv_check_box          type ref to cl_salv_wd_uie_checkbox,
             lr_table_settigns      type ref to if_salv_wd_table_settings,
             l_value                     type ref to cl_salv_wd_config_table,
             lt_columns               type salv_wd_t_column_ref,
             ls_column                type salv_wd_s_column_ref,
             l_col_name              type string.
    if l_value is not initial.
    lr_table_settings ?= l_value.
    lt_columns = l_value->if_salv_wd_column_settings~get_columns( ).
    Loop AT lt_columns into ls_column.
    l_col_name = ls_column-r_column->get_id( ).
    IF l_col_name = 'check_box'   *your attribute name*
    CREATE OBJECT lv_check_box
    EXPORTING
    checked_fieldname = l_col_name.
    ls_column-r-column->set_cell_editor( value = lv_check_box ).
    endif.
    endloop
    Hope this help
    Jason P-V

  • How to add button ui element in alv table data in web Dynpro ABAP

    Hi Experts,
    I have one requirement,
    Actually I was devloped normal table in web Dynpro ABAP
    in that i have one column Display as a button .
    when i select that button need to display some data.
    same requirement i need to devlope in alv table.
    i am going to attach file please check.
    Thanks in advance.
    Regards,
    Subba Reddy.

    Hi,
    You can create Button in your ALV table column with below code
    DATA lo_button              TYPE REF TO cl_salv_wd_uie_button.
    CREATE OBJECT lo_button.
        CALL METHOD lv_value->if_salv_wd_column_settings~get_column
          EXPORTING
            id    = <your column name>
          RECEIVING
            value = lo_system_select_hdr.
        lo_button->set_enabled( value = abap_true ).
       lo_button->set_text( value = 'Avaliable List'  ).
        lo_button->set_tooltip( value = 'Avaliable List' ).
        lo_system_select_hdr->set_cell_editor( value = lo_button ).
    And for button click action,
    Create a method (say SHOW_DATA( ) ) with on_click event handler.And when you click button on your ALV table, SHOW_DATA( ) method will trigger.
    Thanks
    KH

  • Submit Button In Web Dynpro Layout not working.

    Hi All,
             I have integrated an adobe form in my web dynpro application.According to my requirement the view of screen should change when the user clicks on submit button.So I have given the submit button as one of the UI element in my WD object along with the form.But when I click on the submit button the functionality doesnot work.
    The same submit button works when there is no adobe form integrated in my WD application.
    Please let me know what needs tyo be done so make that submit button work.
    Thanks and Regards,
    Sarang

    Sarang,
    Lets go step-by-step.
    1. Create two views in your applications lets say the names are View1 and View2.
    2. Goto Diagram View of the Window in under Windows node in your Web Dynpro Explorer in NWDS.
    3. Create Inbound and Outbound plugs for View1 namely inbView1 and outView1
    4. Repeat the same for View2. So names will be inbView2 and outView2.
    5. Create a navigational link between the Vies by creating a link from outView1 plug to inView2 plug.
    6. Goto Layout tab for the View1. This is where you have embedded the Interactive form element.
    7. Set the displayType property to native.
    8. Under Events there will be onSubmit method, craete a new method called navigateToView2 and click Go. This will take you where you can implement your logic.
    9. Fire the outbound plug of View1. See following code snippet:-
    public void onActiong navigateToView2(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActiongotoView2(ServerEvent)
        wdThis.wdFirePlugOutView1();
        //@@end
    10. Edit the Interactive form, it should open Adove LiveCycle Designer.
    11. Drag-drop Submit button from WD Native library ontot the form.
    11. Don't modify anything and check if you see below code snippet in the Editor.
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 705.20051114114126.253659.250577 - SubmitToSAP.xfo
                          ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
                          // END OF DO NOT MODIFY
    12. Now whenever you click submit button on the form, what it does is that it makes call to WD framework and the onSubmit action handler is called where you have written the code to navigate to View2.
    Chintan

  • Print Button in Web Dynpro ABAP

    Hi Everybody,
    i hope that someone know or have a code sample how i can set a print button to the Web Dynpro for ABAP. On click on this it should open the print window from the Internet Explorer.
    Please let me know if there is any information about this.
    Thanks
    Best regards
    Markus

    Hi,
    If you are using the Internet Explorer 7, you can use CTRL + P to invoke print directly on any WebDynpro ABAP view.  This is IE 7.0 browser featute & always has print preview & print options available from File Menu's. So you dont require any additional buttons on view :).
    For table data if you use ALV you get options to export data to excel or fire print directly
    Greetings
    Prashant

  • Submit button in Web Dynpro Native and ActiveX tab

    We use LiveCycle Designer 7.1 in a SAP environment (CRM5.0/NW2004S 7.0.06). We are creating an online Interactive Form via Web Dynpro for Java using NW2004S.
    In NW2004 you have to possibility to select the 'Submit to SAP' button from the Web Dynpro tab. However, in NW2004S this has been changed into 2 submit buttons, one on Web Dynpro Native and one on Web Dynpro ActiveX tab. Does somebody know what the differences are compared to NW2004? When to choose what button and what kind of code you need to enter to send the data the SAP?
    kind regards
    Angelique Heutinck

    Sarang,
    Lets go step-by-step.
    1. Create two views in your applications lets say the names are View1 and View2.
    2. Goto Diagram View of the Window in under Windows node in your Web Dynpro Explorer in NWDS.
    3. Create Inbound and Outbound plugs for View1 namely inbView1 and outView1
    4. Repeat the same for View2. So names will be inbView2 and outView2.
    5. Create a navigational link between the Vies by creating a link from outView1 plug to inView2 plug.
    6. Goto Layout tab for the View1. This is where you have embedded the Interactive form element.
    7. Set the displayType property to native.
    8. Under Events there will be onSubmit method, craete a new method called navigateToView2 and click Go. This will take you where you can implement your logic.
    9. Fire the outbound plug of View1. See following code snippet:-
    public void onActiong navigateToView2(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActiongotoView2(ServerEvent)
        wdThis.wdFirePlugOutView1();
        //@@end
    10. Edit the Interactive form, it should open Adove LiveCycle Designer.
    11. Drag-drop Submit button from WD Native library ontot the form.
    11. Don't modify anything and check if you see below code snippet in the Editor.
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 705.20051114114126.253659.250577 - SubmitToSAP.xfo
                          ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
                          // END OF DO NOT MODIFY
    12. Now whenever you click submit button on the form, what it does is that it makes call to WD framework and the onSubmit action handler is called where you have written the code to navigate to View2.
    Chintan

  • Close OVS Help via Button in Web Dynpro for ABAP

    Hello!
    Is it possible to use a close-button in a "ovs help popup"? I tried to fire a "Type-Exit Outbound-Plug" of window controller of the "ovs help window" but it didn't work.
    Thanks for help
    Joerg

    Hello Joerg,
    in Web Dynpro for ABAP there is currently no possibility to subscribe to the close event of the OVS popup.
    Regards, Ariane.

  • Calling a smart form on click of a button in web dynpro abap

    Hi experts,
    I have a requirement like if I click a button in a view i need ti generate a PDF through smart form.
    Is this possible. If so please tell me the way..
    Thanks & Regards

    Hi Sharma,
    Create Interactive form in your view, create one node say PDF_SOURCE under this one attribute PDF_SOURCE of type XSTRING.
    Bind this to IF form Datasource and pdfsource.
    in your button action write code to call your smartform
    using SSF_FUNCTION_MODULE_NAME
    using FM  CONVERT_OTF and attach_file_to_response
    *convert to pdf
      call function 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
        IMPORTING
          bin_filesize          = lv_bytecount
        TABLES
          otf                   = ls_job_output_info-otfdata
          lines                 = lt_lines
        EXCEPTIONS
          err_conv_not_possible = 1
          err_bad_otf           = 2.
      loop at lt_lines into ls_line.
        lv_string = ls_line.
        export mydata = lv_string to data buffer lv_buffer.
        import mydata to l_xline from data buffer lv_buffer in char-to-hex
        mode.
        concatenate l_pdfstring l_xline into l_pdfstring in byte mode.
      endloop.
      call method cl_wd_runtime_services=>attach_file_to_response
        EXPORTING
          i_filename      = 'ZWTY_PACKINGSLIP'
          i_content       = l_pdfstring
          i_mime_type     = 'BIN'
          i_in_new_window = abap_false
          i_inplace       = abap_false.
    also check this..
    http://abapcodexperiments.wordpress.com/2011/03/20/smartform-pdf-webdynpro-abap/
    Call smartform in web dynpro abap
    Cheers,
    Kris.

  • Calling URL when click on buttons using web dynpro - ABAP

    Hi All,
    I am new to web dynpro application development and i am facing issue when i try to test my application.
    simple require when i click on button i should direct the to one of url say 'http://www.google.co.in/' my application is activate with no error but when i test the application i am getting below error , can someone please provide me the solution or way out.
    The URL http://ides47:8062/sap/bc/webdynpro/sap/zwa_calling_url/ was not called due to an error.
    Note
    The following error text was processed in the system N6Q : Access via 'NULL' object reference not possible.
    The error occurred on the application server IDES47_N6Q_62 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WDR_CONTEXT_MENU_HANDLER~CONTEXT_MENU_CALLED of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: IF_WDR_CONTEXT_MENU_HANDLER~CONTEXT_MENU_CALLED of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: IF_WDR_ADAPTER_EVENT_HANDLER~HANDLE_EVENT of program CL_WDR_CONTEXT_MENU_HANDLER===CP
    Method: IF_WDR_CLIENT~GET_CLIENT_UPDATES of program CL_WDR_CLIENT_SSR=============CP
    Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    HTTP 500 - Internal Server Error
    Thanks,
    Parab

    Hi ,
    It seesms something you are missing. It would be easy for us if you could paste your code which you have written in the Action of Button.
    Sample code for your reference :
    METHOD onactionget_url .
    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( ).
    CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW
      EXPORTING
        URL            = 'http://www.google.co.in/'
        MODAL          = ABAP_FALSE
        HAS_MENUBAR    = ABAP_TRUE
        IS_RESIZABLE   = ABAP_TRUE
        HAS_SCROLLBARS = ABAP_TRUE
        HAS_STATUSBAR  = ABAP_TRUE
        HAS_TOOLBAR    = ABAP_TRUE
        HAS_LOCATION   = ABAP_TRUE
      RECEIVING
        WINDOW         = lo_window.lo_window->open( ).
    ENDMETHOD.

  • Is ALV List Possible in Web Dynpro for JAVA ? Please Advice.

    Hello,
    I would like to know if we can simulate the ALV List which we have in ABAP using Web Dynpro for JAVA. I would really appreciate if someone could suggest how it could be done.
    Best Wishes,
    John.

    Hallo John,
    The Abstract List Viewer (ALV) is not available in Web Dynpro for Java within SAP NetWeaver 04s.
    Regards, Bertram

  • Close Button for Web Dynpro in an iView launched from UWL

    Hi All, this sounds like such a simple thing but its really got me thinking.
    Have a web dynpro application launching form the UWL into an iView (using the IViewLauncher, I'm using this so I can change some visual effects of the application with the iView).  The application is the LeaveApprover application.
    Need a close button on the confirmation screen.  Have tried the following code called from a Close button:
         try {
              String url  = WDURLGenerator.getWebResourceURL(wdComponentAPI.getDeployableObjectPart(),"closepage.html");
              TaskBinder.getCurrentTask().getClient().sendRedirect(url, 0);
         } catch (Exception e) {
              e.printStackTrace();
    The closepage >>
    function closeWindow()
    {var currWindow = window.top;
    currWindow.opener = window.top;
    currWindow.close();
    onload run the closeWindow function
    This is a test file to close the window....
    This works if I use the standard UWL launch but DOES NOT WORK with the iViewLauncher.
    Also tried creating an exit plug in the interface view and calling it from my close button, but no luck with either.
    Please help.  Thanks Brian
    Edited by: Brian Carter on Dec 8, 2009 11:54 AM
    Edited by: Brian Carter on Dec 8, 2009 11:55 AM
    Edited by: Brian Carter on Dec 8, 2009 11:58 AM
    Edited by: Brian Carter on Dec 8, 2009 11:59 AM
    Edited by: Brian Carter on Dec 8, 2009 11:59 AM

    Hi Brian,
    we had a similar problem in the past. We wanted to call a normal Button placed on the WebDynpro View and the close script was saved in the km content in portal.
    We solved it with an own project in NWDS including the html Files.
    Follow the link and you find our solution. Hope it helps.
    Re: Portal navigation problem

  • Exit Button in Web Dynpro

    Hi,
        In my application I am calling another web Dynpro application that will be opened in new window, here in this  new window I want to implement Exit button
        can anybody help me in this..?
         Thanks

    Perhaps this link http://help.sap.com/saphelp_nw04/helpdata/en/55/084640c0e56913e10000000a1550b0/frameset.htm can help you.
    Regards,
    Patrick.

Maybe you are looking for