static void THK_isConfigIdActive(Args _args)
{
boolean ret;
ItemId ItemId = "1000";
//Code to find active dimension of item in axapta
boolean isConfigIdActive(ItemId _item)
{
InventDimSearch FindDim = new InventDimSearch();
InventTable inventTable;
;
inventTable = InventTable::find(_item);
if(FindDim.find(inventTable.DimGroupId, fieldnum(InventDim,ConfigId)))
return FindDim.dimActive();
return false;
}
;
info(queryValue(isConfigIdActive(ItemId)));
}
没有评论:
发表评论