Either the On Save does not like server side Code, in which case you can put it into a UD Method and call the method. See if that helps.
Otherwise, the UD table may not have all of the “mandatory†fields in it. I thought there were like 5 keys, in which case you just need include those fields and set them to empty strings.
Brenda
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Friday, July 22, 2016 1:28 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] E10 Configurator
I'm trying to write code on the On Save.
Below is the code I am trying to use. It seems it gets angry with the Ice.Tables.UD08
using (var txScope = IceContext.CreateDefaultTransactionScope())
Ice.Tables.UD08 UD08;
if (UD08 == null)
{
UD08 = newRow Ice.Tables.UD08();
Db.UD08.Insert(newRow);
newRow.Company = Context.CompanyID;
newRow.Key1 = Context.OrderNumber;
newRow.Key2 = Inputs.Engine.Label;
newRow.Character01 = Inputs.Engine.Value;
Db.Validate();
txScope.Complete();
}