I have created a function that receives BAQ ID, and a parameter and returns a dataset. It works correctly when I test it and I see the response dataview using browser debugging tools.
Now I want to receive this data and populate it into a grid in Application Studio.
I have a dataview that I have created to receive the result of the erp-function.
The dataview name is dvBAQResult. It is a blank dataview:
Parameter Path: [Empty]
Parameter Name: The name of your Table inside the resultDS. (DataTable table = new DataTable(“TableName”); )
View Name: dvBAQResult
Parse From Response Path: resultDS
Merge behavior: replace
Here is a screenshot from one function on my devtools dashboard that has a table named ‘t’ and a dataview named ‘t’, with a return signature of system.dataset ds:
Also: App Studio has a bug, if you have ever in this life of this app clicked “Dataset” inside the erp-function, it will be broken. (App Studio stores some empty values in json that do not ever go away and break the component) delete it and re-create it, and do not click “Dataset”