O'Reilly logo

ADempiere 3.6 Cookbook by Ajit Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring a Web service to read a list of records

There may be instances where you may have to provide an API to return a list of records, for example, list of purchase orders, list of products, list of business partners, and so on. In this recipe, we will see how we can configure a Web service to return a list of records, say business partners, using the generic API, queryData.

How to do it...

  1. Log in to ADempiere using GardenUser/GardenUser with the GardenWorld User role.
  2. Go to the Web Service Security window.
  3. Click on the New Record and enter the following, as shown in the next screenshot:
    • Search Key: QueryBPartner (choose your text)
    • Name: Query BPartner (choose your text)
    • Web Service: Model Oriented Web Services
    • Web Service Method: Query Data_Model ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required