How to get a Common object from a table id?

2019-06-05 18:58发布

How to instantiate a common type object (the table's base class in AX) via a TableId? Furthermore what else can we do with TableId?

My goal is to send tableid to my method and there, I will make the buffer of the table the id belongs to. Is it possible?

2条回答
相关推荐>>
2楼-- · 2019-06-05 19:36
Juvenile、少年°
3楼-- · 2019-06-05 19:48

It can be done like this:

public static Common makeRecord(TableId _tableId)
{
    return new DictTable(_tableId).makeRecord();
}
查看更多
登录 后发表回答