axapta

Microsoft Dynamics AX - Resources for new developers

烂漫一生 提交于 2019-12-06 14:19:45
I am trying to find some good resources that will help me understand how to use the .NET Business Connector and without digging too deep into X++ and those other AX-specific things. First of all I want a bit more knowledge regarding the very AX usage basics and after that I want to head on to the AX for .NET developers. So, suggestions on books and resources for this? I can give you some links. Remember to google both AX and the former name Axapta. AX in general: http://www.axaptapedia.com/Main_Page .Net/AX: http://www.axaptapedia.com/.NET_Integration Books: http://www.axaptapedia.com/Books

Dynamics AX 2009 / BizTalk Server 2013 Compatibility

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 12:34:10
Is BizTalk Server 2013 compatible with the Dynamics AX 2009 AIF BizTalk Adapter? I've searched but can't find any information to say either way. I found that BizTalk Server 2010 is compatible with AX2009 SP1 RU7: http://blogs.msdn.com/b/emeadaxsupport/archive/2011/09/29/microsoft-biztalk-server-2010-passes-compatibility-testing-with-microsoft-dynamics-ax-2009-sp1.aspx (Apologies if this is not the correct site for this question, as it's not directly programming related; however I couldn't find another Stack Exchange site which looked more suitable). I did not find anything newer announced at

Make order by with Query in AOT

自闭症网瘾萝莉.ら 提交于 2019-12-06 11:13:07
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.Custgroup, myCustTable.RecId)); } } The result is: AX does not sort by Count(RecId) but by the grouping. You

Axapta: Convert utcDateTime to date

坚强是说给别人听的谎言 提交于 2019-12-06 09:52:50
What is the best way to convert a utcDateTime value to a date type so I can use the global datetime functions on it? int timeDiff; date _now = systemdateget(); ; select firstOnly myUTCDateTime from _myTable timeDiff = Global::yearDiff(_now, _myTable.myUTCDateTime); info(strfmt('%1', timeDiff); Thanks The DateTimeUtil Class has methods for dealing with utcdatetime variables. In your case you would use DateTimeUtil::date . timeDiff = Global::yearDiff(_now, DateTimeUtil::date(_myTable.myUTCDateTime)); Arpan Sen Logic for utcdatetime : utcdateTime testDonedateTime1; utcdateTime testDonedateTime;

Images in AX forms

ぐ巨炮叔叔 提交于 2019-12-06 09:34:36
In Dynamics AX, we use a large number of images and icons for various purposes in our custom forms. We're currently having to individually install image/icon packs on every client machine in order for everything to work. Is there a way (or best practice) for handling images and icons in Dynamics so an install on every single client is not necessary? Ideally, I'd install all images and icons in one place on the server and reference everything from there, but I'm open to any suggestions available. Thanks You have to deploy the files to each client but this deployment can be done automatically by

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

我的未来我决定 提交于 2019-12-06 06:33:52
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.ExportFile(@"c:\XPO\AOTCusExport.xpo") #define.ExportMode("w") ; perm = new FileIoPermission(#ExportFile,

Try to use Winapi::findFirstFile running on server

ⅰ亾dé卋堺 提交于 2019-12-06 03:55:59
问题 I have a problem trying to run Winapi::findFirstFile running on server. I havve already tried copying the method on the class WinapiServer, and changing some lines, like this: server static container findFirstFile(str filename) { InteropPermission interopPerm; Binary data; DLL _winApiDLL; DLLFunction _findFirstFile; ; interopPerm = new InteropPermission(InteropKind::DllInterop); interopPerm.assert(); data = new Binary(592); // size of WIN32_FIND_DATA when sizeof(TCHAR)==2 _winApiDLL = new DLL

Debugging in Dynamics AX

人走茶凉 提交于 2019-12-06 03:22:18
问题 I'm facing some troubles still while learning, so I guess it tends to get worse once I play with the big kids: warnings in dynamics aren't as precise and informative as VS's, there are no mouse-over tips, and exceptions to show me exactly where I've got it wrong. I'm just too used to Visual Studio, it's intellisense and all the tools (dynamics is quite new when compared to Visual Studio) More than solving simple code issues, i'd like to learn how to solve upcomming ones i might have in code

Change the background color of a column in a grid

我怕爱的太早我们不能终老 提交于 2019-12-05 15:40:38
I have following form and I want to change the background color of a column, based on the values of other columns; In the orange columns, instead of displaying orange background, I want the cell color to be the RGB combo of Red, Green & Blue fields under COLOR ATTRIBUTES section. Let's say that the control the background of which you need to change is named FirstFieldControl. Set its AutoDeclaration property to Yes and BackgroundColor to Window background . Now you need to override the displayOption method on your datasource, e.g.: public void displayOption(Common _record, FormRowDisplayOption

How to create an X++ batch job in Axapta 3.0?

帅比萌擦擦* 提交于 2019-12-05 13:47:52
I'd like to create a batch job in X++ for Microsoft Axapta 3.0 (Dynamics AX). How can I create a job which executes an X++ function like this one? static void ExternalDataRead(Args _args) { ... } Here's the bare minimum needed to create a batch job in AX: Create a batch job by creating a new class that extends the RunBaseBatch class: class MyBatchJob extends RunBaseBatch { } Implement the abstract method pack() : public container pack() { return connull(); } Implement the abstract method unpack() : public boolean unpack(container packedClass) { return true; } Override the run() method with the