Skip to Content
author's profile photo Former Member
Former Member

One entity for multiple dropdowns possible??

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2015 at 05:57 AM

    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.

    Batch Request in Netweaver Gateway(Multiple Operations into a Single Request)

    Regards,

    Ashwin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2015 at 01:33 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.