REST widget populates 3 dataviews

Good afternoon folks,

I have a question that I hope someone can elucidate for me. I’ll explain what I am trying to do and then what I am getting.

We have fields that are populated from PLM: defaultMfgNum_c, secondaryMfgNum_c, and tertiaryMfgNum_c. Some users want the MfgID to also display for these, and I thought I’d use the rest-kinetic widget and call the ERP.BO.ManufacturerSvc GetbyID service. I followed the zendesk help site on the rest-erp widget and I did the first ERP call, using the defaultMfgNum_c to get the MfgID of the default Manufacturer. This populated the dataview (vpi_defaultMFG) and I was able to use a row update. Great! So I made 2 more dataviews for the secondary and tertiary manufacturer and made 2 more API calls to but when I the APIs run, it fills all the dataviews with the latest called REST (tertiary manufacturer data populates all dataviews I created). Why is that? I traced the methods and they are returning all the correct data, but the dataviews are wrong.

The only way I have the API working is by setting the Parameter Name to “Manufacturer”. I thought I would make different parameters for each API call, but that didn’t work either. Is this somehow linking to the dataview or am I missing something? I am pretty new to calling APIs this way so I’m not sure what the values are doing, I’m just doing what the help article said and trying to replicate for other views.

1 Like


Here is the current setup, just to see if it’s going to populate these correctly but even with only 2 APIs, all 3 dataviews still populate. If I change the Parameter on the second API call, no dataviews populate, but in the trace I can see the methods succeeding

Here are the dataview configs if that helps

I have no idea HOW dataviews work honestly. I thought I needed to specify in the dataviews I created that the Data Table was Manufacturer. Nope. I just copied and pasted the Data View ID into all 4 of those and it didn’t affect anything.

What I did have to do was keep the Parameter name Manufacturer (don’t know what this means either), View Name was the dataviews I created, and Parse from response was returnObj (same as the Epicor help said). Once I did that, all the dataviews populated correctly and I did a row update to take the stored value and map them to the text boxes.

My final question is what is the purpose of these?
image
I guess I understand Data Table, it auto fills in the columns, but I can’t reuse it on the screen or it gets overwritten (is my understanding of it). I thought it would be the basis for the dataview like if I want to store manufacturer data there, I can make the data table Manufacturer and it creates the columns and I can plug the API response into there, but that doesn’t seem to matter because I left the dataview blank and it stored the Manufacturer GetbyID response data there no problem