开发者

Axapta: Find table by name in AOT

开发者 https://www.devze.com 2022-12-11 05:41 出处:网络
I would like to query the AO开发者_JS百科T to see if a table name exists using X++.Can anyone point me in the right direction or provide some sample code for doing that?

I would like to query the AO开发者_JS百科T to see if a table name exists using X++. Can anyone point me in the right direction or provide some sample code for doing that?

If table exists with the name (str tableName) provided, return true; else, return false.


You can use the tableName2Id function. It will return 0 if the table name isn't valid.

boolean IsValidTable(str _tableName)
{
    return tableName2Id(_tableName)==0 ? false : true;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号