Hi Everyone,
I am currently facing an issue when inserting values into the database. The DAC has default values for certain fields, but whenever I insert new data, these default values are being overwritten, even though they should be retained automatically.
Could you please advise on the best approach to ensure that the default values are respected during the insertion process, and are not affected by the data being inserted?
Any assistance or guidance would be greatly appreciated.
this my code
int linenum = EstimatePriceBreaks.Select().Count();
AMEstimatePriceBreak PriceBreak = new AMEstimatePriceBreak
{
EstimateID = row.EstimateID,
RevisionID = row.RevisionID,
LineNbr = (linenum + 1),
OrderQty = Total_Qty,
UnitCost = Total_Price,
CuryUnitCost = Total_Price,
CuryExtCost = sum,
ExtCost = sum
};
EstimatePriceBreaks.Insert(PriceBreak);
Base.Actions.PressSave();
Base.Caches.Clear();
Thank you in advance for your time and support.