CustVendPDCRegister
and LedgerJournalTrans
tables. My goal is to update records in the CustVendPDCRegister
table without modifying the LedgerJournalTrans
table. To avoid errors during the update, even though I'm not changing any fields in LedgerJournalTrans
, I added code in the mapEntityToDataSource
method to set SkipValidateWrite
on LedgerJournalTrans
. However, this has resulted in the update operation being skipped entirely for both tables. When I debugged, I noticed that the saveEntityToDataSource
method is returning false
, preventing the operation from proceeding to the CustVendPDCRegister
data source. Can anyone help me identify what might be going wrong?{
/// <summary>
///
/// </summary>
/// <param name = "_entityCtx"></param>
/// <param name = "_dataSourceCtx"></param>
public void mapEntityToDataSource(DataEntityRuntimeContext _entityCtx, DataEntityDataSourceRuntimeContext _dataSourceCtx)
{
{
this.skipDataSourceValidateWrite(true);
_dataSourceCtx.setDatabaseOperation(DataEntityDatabaseOperation::None);
}
super(_entityCtx, _dataSourceCtx);
}