Perfil de Santosh KumarSantosh Kumar Paruvella'...BlogListasLibro de visitasMás Herramientas Ayuda

Blog


30 abril

Dynamics Ax - AIF - Dot Net App totally Integrated wtih AIF Web Services

 

Here I am going to give the example of Dot net application which is integrated with AIF – Web Services.

Till now I had blogged so many applications which are integrated with AIF –Web Services, how this application is different from other applications.

Yes….!  Wink  There is a difference in this application…. How see below …..  Hot

This example illustrates the creation of Customer information into Dynamics Ax.

1)      In this application I am using two web services called, AxdCustGroup and AxdCustomer.

 

2)      For creating the customer, Cust Group is mandatory, here all the available Dynamics Ax CustGroups getting through AxdCustGroup web Service.

 

3)      Displaying the CustGroup Names in the combo box for selecting the cust group values.

 

4)      Based on the selection of CustGroup name, passing CustGroup Id to AxdCustomer Service object for creation of new customer.

 

5)      Taken the consideration of mandatory fields for creation of customer.

 

 

See the below link for C# code of this application:

http://cid-f2ec589e221a4db0.skydrive.live.com/browse.aspx/.Public?uc=1&isFromRichUpload=1

(File name is: C sharp Code for Dot Net Application totally Integrated with AIF - Web Services.docx (office 2007 document))

(word 97 - 2003 format)

http://www.axaptapedia.com/Image:C_sharp_Code_for_Dot_Net_Application_totally_Integrated_with_AIF_-_Web_Services.zip

 I think this article, will give complete help for the DAX people who are working on Integration Applications with Dynamics Ax using AIF Web Services....

Find complete project for this example at the following location.

http://cid-f2ec589e221a4db0.skydrive.live.com/self.aspx/.Public/Customer%20Service%20.Net%20Integration%20application/CustServiceApplication.zip

 ...... n joy   Party   Red rose

 

28 abril

Dynamics Ax - AIF - Axd Read Action with single entity key have multiple Key Fields

Read Action with single entity key, have multiple key Fields:

While working on integration application, I had come across the situation, where table is having unique index with 6 fields.

i.e. Entity key for this table is defined on these 6 fields. To get the outbound information from this corresponding Axd class (to invoke the Read action on this related Axd we have to pass the 6 keyfields as entity key)

 

Here the sample code for calling Read on the corresponding Axd class.

C# Code:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.ServiceModel;

using TestWebApplLognElements.HndWebApplLoginElements;

 

 

namespace TestWebApplLognElements

{

    class Program

    {

        static void Main(string[] args)

        {

            HndHNDWebApplLogElmntsServiceClient proxy = new HndHNDWebApplLogElmntsServiceClient();

            AxdHNDWebApplLoginElements axd = new AxdHNDWebApplLoginElements();

 

            TestWebApplLognElements.HndWebApplLoginElements.EntityKey[] entityKeyList;

 

           

            TestWebApplLognElements.HndWebApplLoginElements.EntityKey entityKey = new TestWebApplLognElements.HndWebApplLoginElements.EntityKey();

            TestWebApplLognElements.HndWebApplLoginElements.KeyField[] keyField = new TestWebApplLognElements.HndWebApplLoginElements.KeyField[6];

 

            //keyField[0].Field = "LoginId";

            //keyField[0].Value = "";

            //Error if we use the above commented lines: Object reference not set to an instance of an object.

            //Intially i tried above way, but it is giving above error so it's better to pass the values as below.           

 

KeyField myKeyField = new KeyField();

            myKeyField.Field = "LoginId";

            myKeyField.Value = "";

            keyField[0] = myKeyField;

 

 

            KeyField myKeyField1 = new KeyField();

            myKeyField1.Field = "WebGroup";

            myKeyField1.Value = "";

            keyField[1] = myKeyField1;

 

 

            KeyField myKeyField2 = new KeyField();

            myKeyField2.Field = "TableGroupAll";

            myKeyField2.Value = "All";

            keyField[2] = myKeyField2;

 

            KeyField myKeyField3 = new KeyField();           

            myKeyField3.Field = "ElementItem";

            myKeyField3.Value = AxdExtType_HNDWebApplElementItem.LawyerClient.ToString();

            keyField[3] = myKeyField3;

 

 

            KeyField myKeyField4 = new KeyField();

            myKeyField4.Field = "CompanyId";

            myKeyField4.Value = "";

            keyField[4] = myKeyField4;

 

            KeyField myKeyField5 = new KeyField();

            myKeyField5.Field = "CompanyAll";

            myKeyField5.Value = "All";

            keyField[5] = myKeyField5;

 

     

            EntityKey myEntityKey = new EntityKey();

            myEntityKey.KeyData = new TestWebApplLognElements.HndWebApplLoginElements.KeyField[6] { keyField[2], keyField[1], keyField[0], keyField[5], keyField[4], keyField[3] };

            entityKey = myEntityKey;

 

 

            entityKeyList = new TestWebApplLognElements.HndWebApplLoginElements.EntityKey[1] { entityKey };

 

            axd = proxy.read(entityKeyList);

            Console.Write(axd.HNDWebApplLogElmnts[0].AccessRights);

            Console.ReadLine();

 

 

        }

    }

}

................ Red rose

17 abril

Dynamics Ax Upgrade Issues from 4.0 to 2009

While Upgrading Dynamics Ax 4.0 to Ax-2009 had faced some issues, after a long research we fixed those issues somehow.

From my blog I am sharing those issues and solutions to fix those issues.

[I will update this article, if come across more issues.]

Data Upgrade Issues for Dynamics Ax4.0 to 2009

Issue – 1:

Question: http://www.eggheadcafe.com/conversation.aspx?messageid=32438583&threadid=32438583

Answer: http://www.eggheadcafe.com/conversation.aspx?messageid=32500998&threadid=32438583

Same information we can find in AxUpgradeGuide.pdf in page numbers 101, 102

Issue – 2:

Issue - A: Synchronize database.   There is a field mismatch in the union query. Field CategoryId is not compatible with field ProjID.

Issue – B: Synchronize database.    There is a field mismatch in the union query. Field LinePropertyId is not compatible with field ProjID.

Solution: The reason behind this error is length of those fields; updated the string length same for all three above EDT’s, then these issues are resolved.   Right hug        

 

13 abril

Customizing the Dynamics Ax EP - Pages

Please find the Dynamics Ax Enterprise portal help topics. In this link, find the information about customizing the Enterprise portal pages and developing the simple user control for EP pages.

Also can find much more information about Enterprise portal in Dynamics Ax.

http://blogs.msdn.com/epblog/default.aspx

You can find the interview with the EP – Team from Microsoft in the same page below of the above link.

Or you can find the same using below the link also.

http://channel9.msdn.com/posts/Dan/A-preview-of-Dynamics-AX-2009-with-the-Dynamics-team/

Thanks to channel9  Smile

WCF Services and Dynamics Ax AIF demo by Michael Merz

 

Please find the video demo of WCF services in Dynamics Ax 2009, by the architect of AIF, is he none other than Michael Merz from MS.  Smile

 

 http://channel9.msdn.com/posts/benriga/WCF-and-AIF-in-Dynamics-2009-Chatting-with-Michael-Merz/.

 
Thanks to channel 9.  Rainbow
 
 
 
09 abril

Debugging WCF Services (*.SVC) - Integration with Dynamics Ax

 

These days, I am working on Integration solutions with Dynamics Ax.

Here .Net web application is developed by integrating to the Dynamics Ax. Like following

Dynamics Ax   ßà Ax Services ßà Web Application

Where Ax Service is kind of web services is developed using WCF (*.svc services similar to our AIF-Web Services) which will communicate to the Ax for business logic execution and the same will communicate to the Web application for UI.

For debugging this web services from web application, I struggled a lot, I had made suffered even .net people also.

At lost we found the way to debug the services (which are hosted in IIS) from .Net web application (also hosted in IIS).

Debugging steps for debug WCF services (*.SVC)

1)      Place the debuggers in the solutions where we want to debug.

2)      Attach the Ax Service to the w3wp.exe. We will find this one in VS.Net àDebug àAttach to process…

3)      It will open a window, in that click on Select button, which is in the same row of Attach to: labeled test box.

4)      It will open another window from that select Managed code.

5)      Then we will see the w3wp.exe. if we won’t find first time here just run .svc service in browser once, and refresh the process list,  we will find the same now.

6)      Now attach the web application also to w3wp.exe and open the web application default page from IIS. Now we can debug the web application through web services. 

Smile