on 10-13-2015 6:46 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Make 10 different entity services in gateway and as mentioned by Ashwin use batch to call them in one single request.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.