cancel
Showing results for 
Search instead for 
Did you mean: 

One entity for multiple dropdowns possible??

mdixit_1401
Explorer
0 Kudos

Hi Experts,

I have a requirement that in a page there are 10 dropdowns. I want to make only 1 service call and bind the respective dropdown.

But I am not getting how do I make 1 entity for 10 different data.

Please help!!

Thanks,

Mansi

Accepted Solutions (1)

Accepted Solutions (1)

AshwinDutt
Active Contributor
0 Kudos

Hello Mansi,

Create single entity, implement get_entity_set method and use that inside a BATCH operation.

Sample payload would look like this for your reference ->

--batch

Content-Type: application/http

Content-Transfer-Encoding: binary

GET get_emp_dataSet?$filter=Userid+eq+'00001' HTTP/1.1

--batch

Content-Type: application/http

Content-Transfer-Encoding: binary

GET get_emp_dataSet?$filter=Userid+eq+'00002' HTTP/1.1

--batch--

Here i am using same entity get_emp_data to get data of different users,

Same way you can also implement your case.

Regards,

Ashwin

Answers (1)

Answers (1)

SB9
Active Participant
0 Kudos

Make 10 different entity services in gateway and as mentioned by Ashwin use batch to call them in one single request.