Adding a field in OrderHed table to Customer Shipment Entry Details Header in Application Studio

Hello,

Im trying to add a field in the OrderHed dataview to the Header panel in Customer Shipment entry. This field is supposed to pull in when the ShipHead.OrderHed has been entered. Im having trouble finding the right event to link a custom event too.
My two thoughts were to link after the already existing ShipHead.OrderNum event or the AfterGetByID event, but havent had any luck pulling in the field when using a Rest-Erp widget.
Any advice is appreciated.

1 Like

Alright, I grew a brain and I think I figured it out.
I used a rest-erp component that fires after the “CallGetHeadOrderInfo” event.
The “CallGetHeadOrderInfo” event occurs after you enter in a valid Order in the ShipHead.OrderNum field.

image

I setup the rest-erp component as follows
Under Rest Services
Service Name: Erp.BO.SalesOrderSvc
Service Operation: GetByID

Method Parameters:
Field Name: orderNum
Field Data Type: integer
Field Name: ShipHead.OrderNum

Response Parameters:
Parameter Name: OrderHed
View Name: OrderHed
Parse from Response Path: returnObj

Hopefully this works for other people and is useful.

2 Likes