Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8122

Re: How do you write your EntitySet Paging?

$
0
0

Hi John,

 

Ah - But that's where the "google" like search makes things more complex as the query should actually look more like this since the search term could be "foo test found" which does not necessarily need to be in any order and may be across different fields (unless you use HANA or database specific text searches):

Split searchtext by ' ' into t_searchterms.

 

Loop at t_searchterm assigning field-symbol(<search>).

at first.

   select .. into table t_results

   where ekko~ebeln like '%<search>%' or ekko~ebeln like '%<search>%'.

 

if not first (not ABAP key word but you get the idea)

    select..into table t_results for all results in t_results

  where ekko~ebeln like '%<search>%' or ekko~ebeln like '%<search>%'.

endloop.

 

Plus from an entity perspective, a non-entity search field is a little dodgy too but I've done that recently also where I needed filters and search.

 

Anyway, a little off topic but agree the mockServer is something that should be heavily invested in - I love developing UI5 apps until my mockserver can't keep up with the requirements that a back-end provides.

 

Cheers,

Matt


Viewing all articles
Browse latest Browse all 8122

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>