Hoping someone can point me in the right direction here.
I created a custom action on the Service Contract screen that opens up the Service Order screen and auto-fills a number of fields through parameters. I also need to automatically add a number of detail lines (FSSODet) to the order when it opens, so that the service order already has the correct information without the user having to change much.
I’ve used a code example from the Customization Guide, but am having a problem. In the service order RowUpdating event, I am trying to add a line to the Details grid, but I am getting the following error:
“error CS0103: The name 'FSSODets' does not exist in the current context”
I thought Acumatica instantiated the required data views, but I must be missing something.
Any input would be appreciated.
Thanks.
Dan
(Code sample below)
namespace PX.Objects.FS
{
public class ServiceOrderEntry_Extension : PXGraphExtension<ServiceOrderEntry>
{
#region Event Handlers
protected virtual void _(Events.RowUpdated<FSServiceOrder> e)
{
FSSODet row = new FSSODet();
row.InventoryID = 10401;
row.EstimatedQty = 5;
row.BillableQty = 5;
FSSODets.Insert(row);
}
#endregion
}
}