如何从表ID获取通用对象? [英] How to get a Common object from a table id?

查看:86
本文介绍了如何从表ID获取通用对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过 TableId 实例化一个普通类型的对象(AX中表的基类)?
此外,我们还可以使用TableId做什么?

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?

我的目标是将 tableid 发送给我的方法在那里,我将创建ID所属表的缓冲区。可能吗?

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?

推荐答案

可以这样做:

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

这篇关于如何从表ID获取通用对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆