I’ve been tasked to add a field to the screen and list grid in Change PO Suggestions that is the Ext Cost of the PODetail. It makes sense that the users would want to know the value of the line they’re modifying, it’s curious why Epicor wouldn’t have this readily available, but alas it’s not on the screen. So I’ve got to get it there.
Here’s what I have so far. I’ve created a FKV to the PO Detail table and used the wizard to add the edvPODetail to the script.
I’ve also got my numeric input control on the form.
How do I populate the Ext Cost for the line into that field? I think I have to add something in this method but I’m not sure if that’s correct.
private void edvPODetail_EpiViewNotification(EpiDataView view, EpiNotifyArgs args)
{
// ** Argument Properties and Uses **
// view.dataView[args.Row]["FieldName"]
// args.Row, args.Column, args.Sender, args.NotifyType
// NotifyType.Initialize, NotifyType.AddRow, NotifyType.DeleteRow, NotifyType.InitLastView, NotifyType.InitAndResetTreeNodes
if ((args.NotifyType == EpiTransaction.NotifyType.AddRow))
{
if ((args.Row > -1))
{
// Do I add something that calculates the edvPODetail.UnitCost * POSuggChg.XRelQty
// and stuffs it into the numeric input named: numExtCost
}
}
}
If indeed that is where I put it, what is the C# / Epicor syntax to do that?
Getting it into the numeric input control is only the first step. How do I get that same calculation into the List Grid view too?