Run into something I haven’t seen before. While trying to use the JobProd table, it exists in both SalesOrder BO and JobEntry BO, which are both referenced in my function.
“The type JobProdRow exists in both Erp.Contracts.BO.JobEntry and Erp.Contracts.BO.SalesOrder”
I assume that “JobProdRow” needs to become something like “JobEntryTableset_JobProdRow” but any syntax I try does not exist. Must be something simple I’m overlooking.
Aw darn, I was hoping I could do JobEntryTableset.JobProdRow & SalesOrderTableset.JobProdRow.
I’ll mess around with var & dynamic and see if I can get it to behave, thanks for the resource thread on that. Ideally, this is all contained within 1 function library, but it’s not the end of the world if not (with proper documentation ).
Maybe I am incorrect on this, but I haven’t been able to directly update OrderDtl through the OrderDtlSearch Service. I assume that’s because the Search Tableset doesn’t allow for updates?
I simply need to populate the “OrderDtl.Reference” field. (which is done with a row-update on the App Studio layer right now, but needs to be part of the function).
using var did allow the JobProd to be used regardless of the parent table.
Now that I could used SalesOrderSvc, I went through it to get all of the OrderDtl tables related to the order, then used select to get the line that I need.
Made the changes that were necessary (thought maybe because DMT required Company, OrderNum, Line, and Part that the code may require it to update properly, that isn’t the case though).
So I guess I am left to conclude that the OrderDtlSearchTableset doesn’t allow for updates.
Thanks for the direction, I’m only a few years into coding & about 1 year into Epicor, so there’s a lot to learn and be confused about!