Цитата:
Сообщение от
gl00mie
Полученное значение уже можно использовать, скажем, в new DictTable(tableId).makeRecord()
есть "стандартный" метод для этого
X++:
SysDictTable::getConcreteTable(record);
X++:
/// <summary>
/// Gets the ID for the concrete table for a specified table.
/// </summary>
/// <param name="_common">
/// The buffer of the given table whose concrete table must be found.
/// </param>
/// <returns>
/// The table ID of the concrete table for the specified table.
/// </returns>
public static TableId getConcreteTable(Common _common)
{
DictTable dt=new DictTable(_common.TableId);
TableId concrete=_common.TableId;
str tablename;
//Get concrete table for inheritance
if(dt && dt.supportInheritance())
{
tablename= _common.getInstanceRelationType();
if(tablename)
{
concrete=tableName2id(tablename);
}
}
return concrete;
}