Skip to Content
avatar image
Former Member

Creating view with material input field with F4 help

Hi Gurus,

I need to develop a page in eclipse as material input field with F4 help where when user starts typing in search help for material it should get filtered out.And based on the material selected and pressed enter it should navigate to another view where it should show which all plants contain this material.

I searched forum but didn't find expected answer.

Can you please provide sample code to develop this in eclipse which will be really helpful and appreciated.

Thanks and Regards,
Ajay

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Aug 19, 2017 at 03:17 AM

    You need to use an event called livechange, which gets triggered as the user types.

    The best example for you to learn this is in the link below:

    https://sapui5.hana.ondemand.com/explored.html#/sample/sap.m.sample.InputAssistedTabularSuggestions/preview

    Check the way when user tpes, the assisted values appear below.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 21, 2017 at 02:01 PM

    Use for SearchField and a list and use livechange event and onSearch events. Refer to explorer.

    In onSearch/ livechange event function you can read the value entered in SearchField and get materials using a oData read and bind it to the list.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Kuppireddi,

      Thanks for your response.

      Can you please provide an sample example to refer or in explorer where can i find such code?

      Regards,
      Ajay