How to get a Common object from a table id?

匿名 (未验证) 提交于 2019-12-03 10:10:24

问题:

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?

回答1:

It can be done like this:

public static Common makeRecord(TableId _tableId) {     return new DictTable(_tableId).makeRecord(); }


回答2:

Yes you can do this. Here is a webpage explaining: http://www.doens.be/2009/07/select-a-record-from-a-table-when-you-only-have-the-tableid/



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!