on 11-13-2013 10:48 PM
Hi All,
I am new to Odata services.. I am trying to create filter for object, while it fetch data using method - GET_ENTITYSET (Query). any how I am not able to do so..
I have selected the filter option at entity and entity_set.. but its not working..
I am passing filter parameters but in get_entityset method not getting data in table - IT_FILTER_SELECT_OPTIONS and IV_FILTER_STRING are coming blank..
Please advice how I can achieve it..
Regards,
Can you share your URI? May the problem is in that,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krishna,
I am using get_entityset method to get filters.. In some of the article I read we need to do bit of coding to get the filter passed on URL..
DATA: lt_filters TYPE /iwbep/t_mgw_select_option,
*-get filter
lt_filters = io_tech_request_context->get_filter( )->get_filter_select_options( ).
I was able to read filter vales in program.. but in metadata whole entity is coming as filterable.. even though I have selected only couple of fields..
Any suggestions what I am missing..
Thanks...
As Atanu mentioned all properties are filterable by default. You can explicitly disable them using the corresponding API.
The fact that you marked as filterable or not- filterable has no bearing on the functionality. That is, if you mark a property as not- filterable, but pass the filter for that property in URI, and you have code to handle it, it will work. Metadata is only an indication for consuming clients, but does not validate/stop you.
Thanks
Krishna
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.