Calling a BAQ with parameters using Application Studio

Posted on Updated on

With Application Studio, it is possible to call a BAQ by passing parameters and save the result in a DataView. Here is one way to do it.

In an event, add the “Rest-ERP” widget.

In the widget properties, go to the “Rest Services” section.

Enter the following values in the properties.

Go to the “Rest Sevices – Method Parameters” section and enter the name of the BAQ in the “queryID” property.

Still in the “Rest Sevices – Method Parameters” section, go to the “executionParams” property and add a “Dataset Model”.

Here is the JSON syntax to use to pass your parameters to the BAQ. Note that it is possible to pass data from a DataView into the “ParameterValue” property using the syntax “{dataView.Field}”.

Now go to the “Rest Services – ERP Rest Arguments – Response Parameters” section to configure the saving of the data returned by the BAQ in a DataView. In this example, the name of the DataView is “TestView”.

Source: https://www.allaboutthaterp.com

Bình luận về bài viết này

Trang web này sử dụng Akismet để lọc thư rác. Tìm hiểu cách xử lý bình luận của bạn.