Skip to main content

Posts

Showing posts from February, 2010

AX - Get tables virtual company id

To find a tables DataAreaId. This comes in handy when you are trying to select records from another company but that table may belong to a virtual company. ProjTable.Company('CEU'); info(ProjTable.DataAreaId);

AX - get Extended Data Type label

To get an extended data type label. static void getEDTLabel(Args _args) { Dictionary dict; DictType dictType; TreeNode treeNode = TreeNode::findNode("Data Dictionary\\Extended Data Types\\ABCModelType"); ; dict = new Dictionary(); dictType = dict.typeObject(dict.typeName2Id(treeNode.treeNodeName())); info(treeNode.treeNodeName()); info(dictType.label()); }

AX - Issue deploying Proxies to Enterprise Portal site

I made some changes to the Proxies static file in AX. Generated the proxies in Visual Studio but for some reason it did not deploy to the site. There are known issues with 64bit/MOSS standard - that could have been causing the problems to deploy the files. At the end I copied the proxy files generated by visual studio to the site directory. From: C:\Users\admin\Documents\Visual Studio 2008\WebSites\MyProject\App_Code\Proxies To: C:\inetpub\wwwroot\wss\VirtualDirectories\80\App_Code\Proxies On another note. The ascx and cs files are kept here: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\ep