Thursday, August 27, 2009

Dynamics AX 2009 Upgrade: Synchronize Won't Synchronize






I am upgrading from Axapta 3.0 to Dynamics AX 2009. One problem I encountered (among the many) was that i was at the stage where i have done everything before the Synchronize stage. All ticks were green. All issues resolved.





But when i click on the Synchronize option, nothing happens! I try to synchronize by using the Right Click on the Database and Synchronize, however nothing i do will make that arrow turn into a tick box.





After two days of going crazy, i am proud to share with you how i got over this problem.





I debugged the code and got to the upgrade class of \Classes\xUtilIdElements\checkDuplicateNamesWithDifferentId, and lo and behold, the process errors in this section as it is detecting duplicate Indexes on the same table, with the same Index Name, but on different layers.





HOWEVER, the code does not throw an error. Or if it does, it’s nowhere i can see it. It just exits the class and pretends that nothing happens.





So. Solution:





1. Go to \Classes\xUtilIdElements\checkDuplicateNamesWithDifferentId



2. Debug on line 59, or where it says.. ok = checkFailed(strfmt(“SYS... etc



3. On the Locals watch pane, you can determine which Index/Table/Field is the problem, and the TableId it is from (Column Name is ParentId)



4. Go to that table and delete the offending item.





I hope my two days worth of AX upgrade nightmare is somehow helpful to you


Tuesday, August 25, 2009

If I had a dollar everytime someone says that

Public Currency Dollar(String _someoneSays)

{

                If (_someoneSays == “That”)

{

                                X++;

                                infoLog::add(“I’m a rich man!”,Exception::Info);

                }

                Return x;

}

Thursday, August 20, 2009

Enterprise Portal Development Overview

A link to Enterprise Portal Development... official propaganda

 

http://msdn.microsoft.com/en-us/library/cc618471.aspx

 

Long live the geek!

Web Development within AX will be discontinued

What does this mean?

 

Currently, to create Enterprise Portal web forms/reports, you can either use:

·         Visual Studio or

·          Dynamics AX itself (in the Application Object Tree).

 

AX 2009 still has the ability to create web forms/reports from the AOT, but in subsequent versions, this functionality will be dropped and any web forms/reports have to be created through Visual Studio only.

 

Yet again, Microsoft has “pulled the rug” from under us. I actually liked the web components in Dynamics AX. They make sense to me!

 

The X++ based Web UI Framework in Enterprise Portal will be Discontinued in Future Releases of Microsoft Dynamics AX

Last Modified 20/08/2009
Posted 19/08/2009

Effective with general availability of the next version of Microsoft Dynamics AX, Microsoft will discontinue the X++ based Web User Interface in Enterprise Portal. The current release, Microsoft Dynamics AX 2009, is the last that will include the X++ based Web User Interface. In future versions, only the Enterprise Portal ASP.NET Web User Interface Framework will be included.

Background

The Enterprise Portal X++ Web User Interface Framework is a development and runtime component of Enterprise Portal for building and rendering the Web user interface.

 

The Enterprise Portal X++ Web User Interface Framework first shipped with Navision-Damgaard Axapta 2.5.  It includes a set of nodes in the AOT, such as Web Forms, Web Reports, and Weblets, for defining the Web user interface components. It also includes a set of X++ kernel classes for reading and generating HTML from these elements and renders them as Web pages. In addition, it includes a set of Microsoft Dynamics AX Web Parts (Web Forms Web Part, Web Reports Web Part, Web Menu Web Part, and the Generic Web Part) and a set of out-of-the box application pages in Enterprise Portal that use these Web Parts. 

 

With Microsoft Dynamics AX 2009, a new Web User Interface Framework based on ASP.NET, with managed APIs, Visual Studio-based development tools, and out-of-the-box application pages in Enterprise Portal built with this new Web User Interface Framework. For backward compatibility, the X++ Web User Interface Framework shipped along with the new ASP.NET Web User Interface Framework in Microsoft Dynamics AX 2009.

 

Since Microsoft Dynamics AX 2009 contains no dependencies on the Enterprise Portal X++ Web User Interface Framework, and future investment is focused on technologies built on the ASP.NET Framework-based Web User Interface, the Enterprise Portal X++ Web User Interface Framework will not ship in future Microsoft Dynamics AX releases.

 

Source: https://mbs.microsoft.com/partnersource/newsevents/news/newsgeneral/ax_epuiframework.htm

 

Wednesday, August 19, 2009

Microsoft Dynamics AX 4.0 data model overview

Thanks to Kashperuk  Ivan, who's website the document resides in, and Microsoft, who's taking over the world one mod at a time; here is a great document for us AX developers. Does anyone have the AX5 version?

 


Download AX40datamodel.doc (4.41 Mb)

 

Integrating Microsoft Axapta Using the Axapta Business Connector and Visual Basic .NET

Dynamics AX allows integration through the Business Connector .NET. i will have to experiment with this some time soon. right now i am using the COM connector, which i believe, will not be supported in next releases of AX. just another example of microsoft giving you something, then taking it away from under you. NOTE TO SELF: it's called progress. REPLY TO SELF: shutup!

http://msdn.microsoft.com/en-us/library/aa659581.aspx