Wednesday, March 12, 2014

Hello All......

Welcome to the world of Dynamics AX .....

Saturday, December 21, 2013

EP Debugging in Dynamics AX

1. Log in to the server that is running the AOS.
2. Open the Microsoft Dynamics AX Server Configuration utility. To openStart > Control Panel > Administrative Tools > Microsoft Dynamics AX 2009 Server Configuration.
3. Create a new configuration that allows debugging.
3.a. Click Manage then Create configuration. Give a name to the new configuration in the Create Configuration window then click OK.
3.b. On the Application Object Server tab, select Enable breakpoints to debug code X++ code running on this server. Click on Apply button.
4. Click on OK button to close the configuration window. You will get a message that indicates AOS is going to be restarted.
5. Actually debugger works on the server where IIS is running and Enterprise Portal is hosted. I used a single system and all the things are on the same system. If you are accessing a system remotely using Terminal Services then from the Start menu click Run. Type mstsc /console in theOpen text box and click OK This opens a console session in Terminal Services. Console session is required to debug Ax EP
6. The World Wide Web Publish Service should be enabled.6.a. Open the Services window for the system. To open it Start > Control Panel > Administrative Tools > Services.
6.b. Right-click the World Wide Web Publishing Service and click Properties.
6.c. Click the Log On tab.6.d. Select Allow service to interact with desktop as shown below.
6.e. Click on OK button to close the properties window.
7. Open the web.config file located in:\Inetpub\wwwroot\wss\VirtualDirectories\\, here the port number of the Enterprise Portal site. If you forgot the port then there is a way to check it out. Open Ax client then Administration main menu > Setup > Internet > Enterprise Portal > Web sites, here you can see the port. 8. Now do the following:
8.a. Find out the compilation element then set the debug attribute to true.8.b. Save the changes.
9. Reset IIS by typing the iisreset command at the command-line window or type iisreset in Start > Run > Open text box then click on OK button.
10. Open the Microsoft Dynamics AX Configuration utility. To open it Start > Control Panel > Administrative Tools > Microsoft Dynamics AX 2009 Configuration.
11. Set the Application Object Server Instance drop-down menu to Business Connector (non-interactive use only).
12. Create a new configuration to allow debugging.12.a. Click on Manage button then click Create configuration. In the Create Configuration window, name the new configuration then click OK button.12.b. On the Developer tab, select Enable user breakpoints to debug code in the Business Connector and Enable global breakpoints to debug code running in the Business Connector or client then click on Apply button.
13. Click on OK button to close the configuration window.
14. Open the Microsoft Dynamics AX client.
15. On the Tools menu, click Options to display the Options window.
16. On the Development tab, select When Breakpoint from the Debug mode list box, and then click Apply. This enables debugging mode on the client.
17. Close the Options window.
18. Open the Microsoft Dynamics AX client.
19. Now decide the element you want to debug. Lets say you want to debug a class method. Open the method in code editor and write breakpointswhere you want to set a breakpoint.
20. Open the Debugger window manually. To open debugger manually click on Tools > Development Tools > Debugger.
21. Now execute the web form where the method has been invoked. It should work. On my system it is working perfectly.


Enjoy Dax !!!

Tuesday, December 18, 2012

Dynamics AX Tools from InformationSource


Hi All,
        Please have the below list for Dynamics AX tools available for Presales,Sales,Analysis,Upgrade & more...


1.   Application analysis Tool (Beta): The Application Analysis tool is designed to enable developers to easily understand how the application has been constructed. The tool can analyze X++ code, create UML sequence diagrams of the data model using progressive discovery.

2.   Data Migration Framework Tool (Beta): The Data Migration Framework (Beta) is an extension to Microsoft Dynamics AX that provides a way to migrate data from external sources to source Microsoft Dynamics AX 2012.

The framework also supports exporting and importing data (for entities defined in the Data Migration Framework) from a Microsoft Dynamics AX 2012 instance to another one.

3.   Combine XPO Tool (Beta): The Combine XPO Tool (Beta) 1.0 is a command line program that combines a set of interdependent XPO files into a single XPO. For example, if a team of developers is making code changes to different aspects of an application, use this tool to merge those changed files into one file.

4.   Security Development Tool (Beta): The Security Development Tool (Beta) is intended to simplify the creation and maintenance of security artifacts such as roles, duties and privileges. It displays entry point permissions for a given role, duty or privilege and allows you to create new security artifacts on the basis of access through various entry points. The tool allows you to test newly a created\modified security role, duty or privilege from the same interface without using a different test user account. In addition, the tool also allows you to record business process flows and identify the entry points used.

5.   Code Upgrade Service Tool (Beta): The Code Upgrade Service Tool (Beta) is designed to help Microsoft Dynamics AX developers upgrade their X++ code to Microsoft Dynamics AX 2012. The service analyzes X++ code patterns and automatically fixes some patterns, provides suggestions on how to fix other patterns, categorizes upgrade tasks, and enables developers to add their own patterns to be analyzed.

6.   Security Upgrade Advisor Tool (Beta): The Security Upgrade Advisor Tool (Beta) is intended to help simplify the process of upgrading security settings from an earlier version of Microsoft Dynamics AX to Microsoft Dynamics AX 2012. It compares entry point and permissions between systems and generates a list of matching privileges that can be used a particular role. The role-to-privilege mapping is based on the user group-to-access right mapping in earlier versions of Microsoft Dynamics AX systems. The tool is designed as an aid for upgrading security settings and is not one click solution. Developers are advised to review each suggestion carefully before making any changes.

7.   Intelligent Data Management Framework Tool: The Intelligent Data Management Framework Tool is designed to help system administrators optimize the performance of Microsoft AX installations. The Intelligent Data Management Framework assesses the health of the Microsoft Dynamics AX applications, analyses current usage patterns, and helps reduce database size.

Enjoy DAX!!!

Monday, December 10, 2012

AX 2012 R2 in 25 Clicks

Hi All,
      As you know the much awaited AX 2012 R2 is launched so lets have a install/upgrade overview on AX 2012 R2 in just 25 clicks :

1) Start the Setup Program.

 2) Click "Microsoft Dynamics AX Components" under Install.
 3) Click Next.
 4) Select "I accept the license terms" *.
 5) Choose Appropriate Option.
 6) Processing will start.

 7) Choose "Add or modify components".
 8) Select Options to install/upgrade.
 9) Review the Errors/warnings and click on "Configure" check box for the applicable errors. and click "Configure".
 10) Click "Start" to start configuring components as per AX needs.
 11) Select "Configure existing database (for upgrade scenarios)".
 12) Specify your existing databases.
 13) Choose models to upgrade.
 14) Specify the "Temp" location for setup files.
 15) Specify the SSAS details.
 16) Specify credentials (we just have used the dummy account) for learning purpose only. Use your AD authenticated account details.
 17) Specify .net BC account (if its not already there in AX)
 18) Choose your Languages (en-US) in this demo.
 19) Specify Data Crawler Account details.

 20) SSRS Database details.
 21) User Account for SSRS Access.

22) Click Install.
23) Verify the installation.

Enjoy DAX !!!

Monday, November 5, 2012

AX 2012 : Data Migration Framework(DMF)


The Data Migration Framework for Microsoft Dynamics AX 2012 is an extension that helps you migrate data into Microsoft Dynamics AX. Examples of the data that you can migrate include master data, open stock, and balances.

The Data Migration Framework is available from the InformationSource services download page.

The Beta 2 version of the Data Migration Framework includes support for the following new features:
  • ODBC connections as a data source.
  • Microsoft Dynamics AX databases as a data source. You can now export and import Microsoft Dynamics AX, and copy company information by using Data Migration Framework entities.
  • Direct table and composite entity types.  
    • A direct table entity enables you to migrate data from a source to a target Microsoft Dynamics AX table directly, without going through a staging table or applying any business logic.Unlike other entities, data cannot be pushed from one source table to multiple target tables. The direct table entity must be a one to one mapping from source to target.
    • A composite entity groups multiple related entities together. An example of a composite entity is a Sales Order and Sales Line entities combined together.
      Parallel execution of threads to move data from staging to target tables.
  • Using the Data Migration Framework as a service. The framework can now be executed by external applications.
  • Error-handling enhancements. The Data Migration Framework provides more detailed logs, and can skip rows that contain errors.
  • Number sequence support.
  • Remote installations of Microsoft SQL Server Integration Services. It is no longer necessary to install Integration Services on the same computer as the Application Object Server (AOS).



Data Migration Framework User Guide : Click here for Source

Data Migration Framework Installation : Click here for Step by Step

Data Migration Framework Demo Files : Click here for Files


Enjoy DAX!!!

Friday, July 27, 2012

Office 15 Customer Preview


Microsoft Office 15 Customer Preview is now available for trial to enable you to experience the revolutionary features of Office 15 applications.
It will provide a diverse range of services including Office ProPlus, Office 365 Small Business Premium and Office 365 Enterprise for diverse business requirements.
Tapping the Market Opportunities with Office 15
Business in Cloud-Office 15 will bring in considerable opportunities in cloud as more and more customers purchase software through the cloud.

Capture the Market Opportunity-Analysts predict that delivering software-as-a-service (SaaS) will continue to offer tremendous revenue-generating opportunities.

Differentiate your Business-By understanding the capabilities of Office 15, you can provide the best business productivity experience for your customers.

Sign up now to try Office 15.



Source : Microsoft

Friday, July 13, 2012

AX 2012 : Delete All Transactions

Hi,
    Today we will look at, How to delete all transactions from AX 2012. Previously we were using SysDatabaseTransDelete class to do the same but as of now we need to modify that class to work properly with AX 2012 due to DB changes :


We need to modify the SysDatabaseTransDelete.handletable method with the below code :

void handleTable(SysDictTable sysDictTable)
{
    TableGroup      tableGroup;

    if (tableSet.in(sysDictTable.id()))
        return;
    tableSet.add(sysDictTable.id());

    if (sysDictTable && !sysDictTable.isTmp() && !sysDictTable.isMap())
    {
        tableGroup = sysDictTable.tableGroup();

        // Handle company specific tables to be deleted
        if (sysDictTable.dataPrCompany())
        {
            switch(tableGroup)
            {
                case TableGroup::Transaction:
                case TableGroup::WorksheetHeader:
                case TableGroup::WorksheetLine:
                //FIX - Support new AX2012 transaction table types
                case TableGroup::TransactionHeader:
                case TableGroup::TransactionLine:
                    this.handleTransTable(sysDictTable);
                    break;
                default:
                    this.handleNonTransTable(sysDictTable);
                    break;
            }
        }
        else
        {
            // Handle global tables to be deleted
            switch(tableGroup)
            {
                case TableGroup::Transaction:
                case TableGroup::WorksheetHeader:
                case TableGroup::WorksheetLine:
                //FIX - Support new AX2012 transaction table types
                case TableGroup::TransactionHeader:
                case TableGroup::TransactionLine:
                    this.handleGlobalTransTable(sysDictTable);
                    break;
                default:
                    break;
            }
        }
    }
}


Enjoy DAX!!!