Download Improving software configuration management across multiple
Transcript
68
Improving SCM across multiple Microsoft Dynamics AX 2009 applications
static TableName find(
TableNameRecordId _id,
boolean selectForUpdate = false)
{
TableName theRecord;
;
if(!tpAXNetworkingParameters::find().IsServer)
{
theRecord = tpDevSession::instance().getTable(theRecord);
}
if (_id)
{
theRecord.selectForUpdate(selectForUpdate);
select theRecord
where theRecord.TableNameRecordId == _id;
}
return theRecord;
}
The exists method:
static boolean exists(
TableNameRecordId _id,
SysElementName name)
{
return _id && TableName::find(_id).recId != 0;
}
This will allow for code in different areas to function reasonably well. There might
very well be glitches that need patching once the prototype is transforming into
something with higher fidelity.
5.4.5.1.3 The table – validateField
For some tables it is necessary to overwrite the validateField method. The reason
for this is that the kernel goes directly to the database to try to validate the field. This
forces implementation of validate functionality within the temporary data. Below is
an example of how that can be achieved. In this specific example the validation is
implemented for the DevRequirement table where the ProductId is located. The
ProductId needs to be validated against the DevProduct table: