Ax - 检查是否从数据库中选择了字段

Ax - check if field is selected from database

有没有一种方法可以检查是否从数据库中检索了一个字段?我创建了一些从不同位置调用的逻辑。但是在某些位置,table 缓冲区是使用字段列表选择的。如果未检索到该字段,我只想再次执行查询。获取正确记录的查询非常繁重,在大多数情况下该字段将为空。

Common o;
o = args.caller();
if(!isFieldRetrievedFromDatabase(o.(fieldId)))
{
    o = refetch(o);
}
//execute logic for o

使用o.isFieldDataRetrieved.

xRecord.isFieldDataRetrieved Method:

Checks whether the data of the given field has been retrieved

true if the data has been retrieved; otherwise, false.