Skip to Content
avatar image
Former Member

Selct multiple values in a search help

Hi ,

I have a field in my view and i use a "freely programmed search help" to implement the F4 function as it is shown in this tutoriel.

[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50fd6096-a4b6-2d10-bfa8-bb|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50fd6096-a4b6-2d10-bfa8-bb]

I want to permit multiple selection in the search help and retreive all values in one table ( or a list or anything else ... ).

Can someone help to achieve this please ?

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    May 05, 2011 at 01:59 PM

    Hi,

    If you have used freely programmed help then the control is on your hands.

    What you can do is

    1.) Set the node selection to (0..n ) So that it is possible to select more rows.

    2)On Select button action, use the if_wd_context_node method get_selected_elements to get the selected elements

    3) Pass this table to the receiving component via the event parameters or you can share the context and do the step-2 in the receiving component.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi

      Thanks for your responses.

      Now I'm facing another problem.

      Have you any idea how to use this search help in the calling program.

      The sole thing that i can use search help , in my knowledge is the input fields.

      Thank you for your help

  • May 05, 2011 at 11:48 AM

    Hi,

    In search help you can select only one value at a time, this value returns to search help field right.

    Please go through this..

    wda-search-help-multiple-selection

    Cheers,

    Kris.

    Add comment
    10|10000 characters needed characters exceeded

  • May 05, 2011 at 12:33 PM

    though it is possible, after you choose value from the hit list normally the field where we triggered F4 will be defaulted with selected value.

    if you want get all the selected entries of table ( i mean table built by you ) in the search help, it can be done by triggering event whenever data is selected in the F4 and handle this event in your component by passing entire table as event parameter.

    or by using context sharing also we can achieve this.

    Add comment
    10|10000 characters needed characters exceeded