dynamics-ax-2012

Dynamics Ax Label not updating

ぃ、小莉子 提交于 2019-12-11 04:56:01
问题 I just edited a label using the label editor in Dynamics Ax and it was not changed everywhere. Some Forms have taken the change and some haven't. To be more precise, I modified the label: Responsible Employee in the case management. The name was changed in the big form where all the Cases are listed (Here the label change worked) but if I click on a single case to view the details, the old name still appears and I triple checked, it is the same label and there is no label with the old name in

Move a file, AX2012

你。 提交于 2019-12-11 04:34:12
问题 I'm trying to move a file, nothing clever. The problem I am having is explained in the AX WONDERS blog. The reason for this is that when using an AX class that runs on the server, the exception never comes back to the client and therefore cannot be handled correctly.... the operation will not fall into the Exception::CRLError exception If the source file is opened by MSWord, for example, an exception is thrown in the fileLocked method, which is both infuriating yet amusing. Any suggestions

Passing Financial Dimension combination values in ax 2012

无人久伴 提交于 2019-12-11 02:29:03
问题 I need to pass Ledger Dimension value for General Journal (Table:LedgerJournalTable) form to LedgerJournalTransDaily(Table:LedgerJournalTrns) form along with combination values. EX: In General Journal form I am creating a new journal with the journal name "Alloc"(ledger dimension is like 1003), and in Financial dimension tab I am selecting Cost centre(024), department(001), purpose(training) after that I am clicking on lines, then a new form LedgerJournalTransDaily. In the from grid one filed

For loop across all available companies?

送分小仙女□ 提交于 2019-12-10 19:13:07
问题 I need to create a job with a for loop (I think) that goes through all available companies and checks for a specific value. I'm just not familiar with how I would get it to select each individual company. Does anyone know the syntax for that? 回答1: The functionality you're looking for is called "Cross Company" data access. MSDN has a great bit of code samples here: X++ code: http://msdn.microsoft.com/en-us/library/cc518738.aspx Main article: http://msdn.microsoft.com/en-us/library/cc634544

Make order by with Query in AOT

 ̄綄美尐妖づ 提交于 2019-12-10 10:34:23
问题 I have made a query in AOT. My goal is to print information using Group by "CustGroup" and Order by "count(RecId)" desc of CustTable table. The group by works properly, but the order by does not. I can not understand why... This is what my query looks like: This is code I use: Static void Query(Args _args) { QueryRun qr; CustTable myCustTable; ; qr = new QueryRun(queryStr(MyQuery)); while(qr.next()) { myCustTable = qr.get(tableNum(CustTable)); info(strFmt("Group %1 Num %2", myCustTable

Specific Dimension on VendOpenTrans Grid

冷暖自知 提交于 2019-12-08 18:12:31
My task is to add a field in VendOpenTrans with a specific Dimension. I have added to my DataSources in VendOpenTrans tables DimensionAttributeValueSet, DimensionAttributeValueSetItem, DimensionAttributeValue and DimensionAttribute. In their properties I have made joins (join source) with InnerJoin LinkType (I tried all of the options here). Then I have add a field on my grid from DimensionAttributeValueSetItem -> DisplayValue (field name). And now in ExecuteQuery method of VendOpenTrans I add a code: public void executeQuery() { /*QueryBuildRange dimensionAttributeValueSetRange; ;

Updating a salesorder using AIF

只愿长相守 提交于 2019-12-08 13:12:57
问题 I'm running my head against the wall here trying to update a salesorder in C# through AIF (Dynamics AX webservices) I have the following code: /// <summary> /// Updates an order in AX /// </summary> /// <param name="order">Order to update</param> public void UpdateOrder(SalesOrder order) { try { var client = new write.SalesOrderServiceClient(); var callContext = new write.CallContext() { Company = "mcompany" }; var entityKeyList = new write.EntityKey[1]; var entityKey = new write.EntityKey();

Specific Dimension on VendOpenTrans Grid

流过昼夜 提交于 2019-12-08 05:57:55
问题 My task is to add a field in VendOpenTrans with a specific Dimension. I have added to my DataSources in VendOpenTrans tables DimensionAttributeValueSet, DimensionAttributeValueSetItem, DimensionAttributeValue and DimensionAttribute. In their properties I have made joins (join source) with InnerJoin LinkType (I tried all of the options here). Then I have add a field on my grid from DimensionAttributeValueSetItem -> DisplayValue (field name). And now in ExecuteQuery method of VendOpenTrans I

dynamics ax : Push Customized form to All users

荒凉一梦 提交于 2019-12-08 03:26:01
问题 Recently, I was troubleshooting an issue related to user settings. There was a requirement to migrate the user settings from one environment to another. There is an AX 2009 form which users make their own personalisations to, moving some of the fields around, or perhaps adding other fields (via the right click->setup functions) , so that unnecessary fields are hidden. I have saved that form , so that it is available for me , but when i migrate the form to another environment i notice that the

How to mimic the AOT Export by layer functionality X++?

﹥>﹥吖頭↗ 提交于 2019-12-07 23:23:37
问题 I am attempting to programmatically duplicate the following steps in X++ In the AOT Tree right click on the root node and click "Export" Provide a file name Click the "Application object layer" checkbox Specify "cus" as the Application object layer Export the XPO to the file I've gotten as far as bring able to export entire AOT tree but I can't figure out a way to narrow it down to just the cus layer. Here is my current code sample ... TreeNode treeNode; FileIoPermission perm; #define