Skip to Content
avatar image
Former Member

how to make a search in sapui5 with Odata Service?

Hi,

I do not get to do a search

something is wrong with my code?

controller

view

thank you,
regards

1.png (27.2 kB)
2.png (29.4 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 14, 2015 at 11:16 AM

    Hi,

    Your code is correct.

    You need to do configuration in the DPC method in oDATA Gateway coding and activate the filter property.

    The following document will be helpful. I was facing the same problem and this documentation helped me to do the same.

    How to Develop Query Options for an OData Service Using Code-Based Implementation

    You need to make some modification as per your need. I followed similar process and got my result though I was facing the same problem as yours before. Please put a break-point in the DPC method of your gateway entity set and follow the logic of filtering and you will be getting your desired result.

    Regards,

    Subhabaha Pal

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 14, 2015 at 08:39 AM
    Add comment
    10|10000 characters needed characters exceeded