Application Studio - dataset from a function

Hi,

I am calling a function from an Epicor function, that returns the following data as a system.DataSet parameter.

{
   "outDS":{
      "Table1":[
         {
            "distributor":"ACME",
            "mpn":"ATECC608",
            "package_quantity":"2000/reel"
         },
         {
            "distributor":"BAC1",
            "mpn":"ATECC608",
            "package_quantity":"2000/reel"
         }
      ]
   }
}

I have set up the view in Application Studio as follows:
image

I then call the function using the erp-function widget and populate the response parameters as follows:

When I look at the response in Chrome developer tools, the data is being returned, but the dataview is not populating. The console is reporting the following errors.

I’ve seen a few posts on here about this, and followed them, but have had no luck.

Can anyone see what I’m doing wrong?

Thanks,

Andrew.

Using debug tools or console data dump, is the dataview populated ?

Hi,

No its not.

In the Dev Tools’ Network Tab, do you see it call the function?

  • Make sure it’s getting called in the Name column
  • Make sure it’s returning data in the Response tab
  • Then make sure it’s binding to the DataView.
1 Like

Hi,

The response is been sent, just not populating the view

Try clearing Parameter Name and then changing Parse From to outDS/Table1

2 Likes

Tried
image

and
image

still no data in the view.

In your second screenshot clear parameter name so it’s empty

3 Likes

Thankyou so much - that works.

2 Likes

Awesome, thank you. Was going crazy haha

25 posts were split to a new topic: Grid / DataView Assistance