cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with ?$select

Pavan_Golesar
Active Participant

Hi techies,

     I had been using various URI variants.. I came across ?$select from this awesome document.

Want to use "Userset?$select=FirstName,LastName"  in URI.

Facing error while declaration for its structure..

any comments will be helpful..

Please correct me if I went wrong anywhr in code..

Thanks,

Pavan Golesar

Accepted Solutions (1)

Accepted Solutions (1)

AshwinDutt
Active Contributor
0 Kudos

Hello Pavan,

You need not to code any where to use $select in the URI. This feature comes out of box by default and no implementation is needed.

I do not see any need to implement this alternatively via code.

However the error is because you are not giving space between the braces.

  your code is ( no space between the braces )

data: my_select_fields type /iwbep/t_mgw_tech_field_names.

  my_select_fields = io_tech_request_context->get_select().

i.e., correct code is ( there is space between the braces )

data: my_select_fields type /iwbep/t_mgw_tech_field_names.

  my_select_fields = io_tech_request_context->get_select( ).

Carefully observe the highlighted part ( which is in bold ) in the code.

Use the correct code and your free with errors.

There is red highlighted part in the code of your screen shot which is already highlighting to provide space between the braces .

Regards,

Ashwin

Pavan_Golesar
Active Participant
0 Kudos

Hi Ashwin,

     yes, I do not need to implement this alternatively via code, before I tried out the URI directly then it gave nuthing in HTTP RESPONSE (I hope I am not wrong in URI as its giving Status code:200)...

Regards,

Pavan G

AshwinDutt
Active Contributor
0 Kudos

Put a break-point in UsersetEntitySet method and see if your back-end logic is returning the data first.

I suspect data is not coming at all from your logic.

Answers (0)