Skip to Content
avatar image
Former Member

Mimicking SAP search functionality for Web Dynpro inputfield

Hello Experts,

I am using NWDS 7.0.18. EP 7.00 SPS 18

I want to mimic the standard SAP functionality of an input field search values in web dynpro.

Is it possible to have an inputfield with the little square search values button next to it, so that after I type in a few characters in the input field and click the button, a window will open up and list the values that contains that string? Then the user can double click the value and it will get populated into the inputfield?

Any suggestions?

Regards,

MM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jun 09, 2009 at 04:49 PM

    Hi Marshall,

    I think you are refering the OVS (Object Value Selector).

    Here is a link to an article in SDN on how to create web dynpro application with a OVS:

    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/401975e3-e2ee-2b10-e191-a8140aabe9d6

    The article has been done on CE 7.1 but the same can be implemented on NW 2004s (7.0)

    Regards,

    Kartikaye

    Edited by: Kartikaye Gomber on Jun 9, 2009 6:53 PM

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Marshall,

      You can easily use the IModifiableSimpleValueSet for getting the value help attached to input field. Follow these steps:

      1) Create a attribute under somenode in the view context.

      2) Bind the atribute with the input field.

      3) Use the following code:

      IWDAttributeInfo list =wdContext.node<Node_Name>().getNodeInfo().getAttribute("ATTRIBUTE_NAME");
      ISimpleTypeModifiable type = list.getModifiableSimpleType();
      IModifiableSimpleValueSet valueSet = type.getSVServices().getModifiableSimpleValueSet();
      valueSet.put("value1", "value1");
      valueSet.put("value2", "value2");
      valueSet.put("value3", "value3");
      valueSet.put("value4", "value4");
      		
      

      Also please note that webdynpro does not support the feature what we have in ABAP when we type in some value and hit enter a pop up comes with the list of values. Such feature is not supported. The maximum what you can do is just hit the F4 button to get the value help and select some values from the value help popup which has come.

      I hope this solves your issue. Please revert back in case you need any further information on this.

      Thanks and Regards,

      Pravesh

  • Jun 10, 2009 at 12:42 PM

    Hello Marshall,

    What is the content of search help ? Is it static or dynamic?

    As mentioned earlier go with EVS- Extended Value Selector. Its pretty much easy to use.

    You can get pdf document related to this here in SDN documentation.

    Regards,

    Vinod

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 02, 2009 at 02:16 PM

    Developed my own simulated SAP help that mimics F4 functionality.

    Add comment
    10|10000 characters needed characters exceeded