cancel
Showing results for 
Search instead for 
Did you mean: 

The variable IV_SEARCH_STRING is not being filled

Former Member
0 Kudos
701

Hi Friends,

     I am using the following URL's

http://xxxxx/xxx/xxx/sdata/sap/ZSALESORDER2/SalesorderheaderCollection?$select=SO_NUMBER_KEY,SO_NUMB...

http://xxxx/xxx/xxx/sdata/sap/ZSALESORDER2/SalesorderheaderCollection?$select=*

In both the cases the variable IV_SEARCH_STRING is not being filled. Please help me in resolving this.

Thanks and Regards,

Reshma Nadella.

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Hi,


For UI5, try this
this.getOwnerComponent().getModel("<model>").read("/<entitySet>",{urlParameters:{"search": "<query>"}});

Regards,
Akshit

Former Member
0 Kudos

Hi,

I am actually facing a similar issue. Could you let me know how exactly is the 'iv_search_string' initialized ? A sample url would be really helpful.

Best Regards,

Nitish Mehta

RalfHandl
Product and Topic Expert
Product and Topic Expert
0 Kudos

IV_SEARCH_STRING is filled if you supply the custom query option search:

     GET ~/SomeCollection?search=green

The purpose of the search query option is to provide free-text search to the consumer. There's no generic implementation for that, so your code would have to determine which entities in the collection you consider to be "green" and return only "green" entities.

0 Kudos

Hi reshma,

IV_SEARCH_STRING is not meant for handling select statements,Gateway framework processes the

select statements before output,developer cannot handle the select statement in Data Provider

class.

regards,

   goutham

Former Member
0 Kudos

Hi Goutham,

Thank you for the reply.

The thing is that in my code we have the following IF condition :

IF iv_search_string IS NOT INITIAL AND

         iv_search_string <> '*'.

----------------------------------

-----------------------------------

ELSEIF iv_search_string = '*'.

----------------------------------

-------------------------------------

ENDIF.

Can you please explain me when can these conditions be true.

Please provide me some URL's where this variable can get set to a value.

Thanks,

Reshma.