Cannot edit a record in xxx (xxxTable). An update conflict occured due to another user process deleting the record or changing one or fields in the record.
table 1
public void write()
{
GeneralTable generalTableFind, generalTableUpdate;
super();
element.numberSeqFormHandler().formMethodDataSourceWrite();
ttsbegin;
update_recordset BatchAttributesTable
setting
Group = GeneralTable.Group,
FromDate = GeneralTable.FromDate,
ToDate = GeneralTable.ToDate,
AlloyNum = GeneralTable.AlloyNum,
Metric = GeneralTable.Metric,
MARS = GeneralTable.MARS,
where BatchAttributesTable.GeneralId == GeneralTable.GeneralId;
ttscommit;
}
public void update()
{
GeneralTable this_Orig = this.orig();
GeneralAndTable GeneralAndTable;
BatchAttributesTable BatchAttributesTable;
ttsbegin;
super();
if(this_Orig.GeneralId != this.GeneralId || this_Orig.Version != this.Version)
{
while select forupdate GeneralTable
where GeneralAndTable.General Id == this_Orig.GeneralId
&& GeneralAndTable.Version == this_Orig.Version
{
GeneralAndTable.GeneralId = this.GeneralId;
GeneralAndTable.Version = this.Version;
GeneralAndTable.update();
}
}
ttscommit;
}

Report
All responses (
Answers (