the use of visual studio .pdf

12
1/8/13 ET in the New Microsoft Dynamics AX 2012 « Amer Atiyah, Microsoft Dyna… 1/12 www.amer-ax.com/2011/06/the-use-of-visual-studio-net-in-the-new-microsoft-dynamics-ax-2012/ A Freelancer Microsoft Dynamics AX Solution Architect HOME ABOUT AMER Payroll Add-On Clients Blog » Testimonials Contact Amer Blog Microsoft Dynamics AX Thoughts 13 June 10, 2011 in Blog , Dynamics AX by Amer The Use of Visual Studio .NET in the New Microsoft Dynamics AX 2012 Developing applications is now easier and faster in the new Microsoft Dynamics AX 2012 than its earlier versions. .NET developers who are familiar with Visual Studio .NET will be comfortable with developing Dynamics AX applications although Dynamics AX has its own IDE which called MorphX and its own programming language with is X++. This image shows the Dynamics AX AOT (Application Objects Tree), one of the MorphX IDE objects that Dynamics AX developers use to navigate through programming objects like Forms, Reports, and X++ Classes:

Upload: vann-sabr-ubina

Post on 28-Apr-2015

174 views

Category:

Documents


7 download

TRANSCRIPT

Page 1: The Use of Visual Studio .pdf

1/8/13The Use of Visual Studio .NET in the New Microsoft Dynamics AX 2012 « Amer Atiyah, Microsoft Dyna…

1/12www.amer-ax.com/2011/06/the-use-of-visual-studio-net-in-the-new-microsoft-dynamics-ax-2012/

A Freelancer Microsoft Dynamics AX Solution Architect

HOMEABOUT AMERPayroll Add-OnClientsBlog »TestimonialsContact Amer

Blog

Microsoft Dynamics AX Thoughts

13

June 10, 2011 in Blog, Dynamics AX by Amer

The Use of Visual Studio .NET in the NewMicrosoft Dynamics AX 2012

Developing applications is now easier and faster in the newMicrosoft Dynamics AX 2012 than its earlier versions. .NET developers who are familiar with Visual Studio .NETwill be comfortable with developing Dynamics AX applications although Dynamics AX has its own IDE whichcalled MorphX and its own programming language with is X++.

This image shows the Dynamics AX AOT (Application Objects Tree), one of the MorphX IDE objects thatDynamics AX developers use to navigate through programming objects like Forms, Reports, and X++ Classes:

Page 2: The Use of Visual Studio .pdf

1/8/13The Use of Visual Studio .NET in the New Microsoft Dynamics AX 2012 « Amer Atiyah, Microsoft Dyna…

2/12www.amer-ax.com/2011/06/the-use-of-visual-studio-net-in-the-new-microsoft-dynamics-ax-2012/

Page 3: The Use of Visual Studio .pdf

1/8/13The Use of Visual Studio .NET in the New Microsoft Dynamics AX 2012 « Amer Atiyah, Microsoft Dyna…

3/12www.amer-ax.com/2011/06/the-use-of-visual-studio-net-in-the-new-microsoft-dynamics-ax-2012/

With Microsoft Dynamics AX 2012, you can view that AOT in the Microsoft Visual Studio 2012:

Dynamics AX 2012 Applicatoin Explorer in VS.NET

Proxies

Microsoft Visual Studio 2010 now creates proxies internally to support interacting with Microsoft Dynamics AX

2012 X++ classes, tables and base enums. By creating those proxies, developers will interact with Dynamics AX

objects in C# and VB.NET exactly as if they are interacting with it in X++. After the proxy is created, that type isavailable as a strong type and features such as IntelliSense are available. For example, table fields and X++ methods

are now exposed to be used in C# with one click. The created proxies are using .NET business connector internallyto connect to the Dynamics AX objects.

The following pictures speak quietly how you can access and interact with Microsoft Dynamics AX 2012 objects

Page 4: The Use of Visual Studio .pdf

1/8/13The Use of Visual Studio .NET in the New Microsoft Dynamics AX 2012 « Amer Atiyah, Microsoft Dyna…

4/12www.amer-ax.com/2011/06/the-use-of-visual-studio-net-in-the-new-microsoft-dynamics-ax-2012/

from within Microsoft Visual Studio 2010:

Adding Visual Studio Project to the Dynamics AX 2012 AOT

Page 5: The Use of Visual Studio .pdf

1/8/13The Use of Visual Studio .NET in the New Microsoft Dynamics AX 2012 « Amer Atiyah, Microsoft Dyna…

5/12www.amer-ax.com/2011/06/the-use-of-visual-studio-net-in-the-new-microsoft-dynamics-ax-2012/

Visual Studio Project inside Microsoft Dynamics AX 2012 AOT

Adding a Dynamics AX 2012 object to the VS 2010 Creates an Internal

Proxy

The CustTable Appears in the Solution Explorer. You Can Now Use the Dynamics AX CustTable

Page 6: The Use of Visual Studio .pdf

1/8/13The Use of Visual Studio .NET in the New Microsoft Dynamics AX 2012 « Amer Atiyah, Microsoft Dyna…

6/12www.amer-ax.com/2011/06/the-use-of-visual-studio-net-in-the-new-microsoft-dynamics-ax-2012/

Methods, Properties and Fields!

Share this article:

Profile

Sign in with Twitter Sign in with Facebookor

Name

Email Not published

Website

Comment

Post It

13 Replies

13 Comments0 Tweets

0 Facebook0 Pingbacks

Last reply was 2 weeks ago

1. Waqas

View June 12, 2011

Visual Studio .NET Usage With The New Microsoft Dynamics AX 2012

http://waqasb.blogspot.com/2011/06/visual-studio-net-usage-with-new.html

Reply

2. Jehanzeb JaveedView June 22, 2011

It is looking nice but any idea how much time Visual Studio IDE is taking to loading/saving objects from AXAOT, in AX 2009 the Enterprise Portal Developer Tools for Visual Studio was crashing from VS IDE andhad very slow response with AOT may be due to .Net Business Connecter.

Reply

Page 7: The Use of Visual Studio .pdf

1/8/13The Use of Visual Studio .NET in the New Microsoft Dynamics AX 2012 « Amer Atiyah, Microsoft Dyna…

7/12www.amer-ax.com/2011/06/the-use-of-visual-studio-net-in-the-new-microsoft-dynamics-ax-2012/

Amerreplied:View June 22, 2011

Thanks Jehanzeb

I agree with you about the perforamance of the AX2009.. it has a lot to do with the hardware specs ofcourse.. but you still cannot get the perfect spead even if you havethe best specs ever though.. thatstrue.

For the AX2012, calling AOT objects from the VS.NET and saving changes in the AOT from the

VS.NET is a way faster than AX2009. I did notice that myself. I’m sure you will notice it if you triedit:).

Reply

3. ajnarView August 3, 2011

Hi, don’t know where else to ask as the communities dont seem to have an answer

I’m trying to add a new user control to the EP on the ax 2012 virtualBut after creating the table and dataset in ax aot, i can see it in the drop down list for the datanames of the

new datasource i am addinghowever when i select it i get an error

Exception occured on the metadata service on the client or the serverException of Type -Microsoft.Dynamcis.Ax.Services.XppBridgeException was thrown

Any ideas?

Reply

Tommyreplied:View January 3, 2012

HI ajnar

I’ve had similar error in AX2012 after deploying a report in SSRS. If you look in the EventViewer onthe server you will most likely find a entry regarding this isssue. In my case there where a line whith the

error “Query execution failed for dataset” which maked me look further into my data provider class.

I found out that there was a call to write an entry in the event log, and after uncommenting this line the

report worked perfectly.

Therefore the conclusion to the error “Microsoft.Dynamcis.Ax.Services.XppBridgeException” wasthat the acount execution the report didn’t have the nessesary rights.

Page 8: The Use of Visual Studio .pdf

1/8/13The Use of Visual Studio .NET in the New Microsoft Dynamics AX 2012 « Amer Atiyah, Microsoft Dyna…

8/12www.amer-ax.com/2011/06/the-use-of-visual-studio-net-in-the-new-microsoft-dynamics-ax-2012/

My advise to you is to check that the acount running the EP has the nessesary execution right.

Hope this helps you

Reply

4. syed hyder amerView 7 months ago

Hi,can any one tell me to learn microsoft dynamics ax do we need to know .net

Reply

Sarahreplied:View 4 months ago

Syed hyder amer, No u need not be very faliliar with .Net inorder to work with ax….

Reply

5. Mojahid AliView 2 months ago

Hi,Can anyone tell me where and what to start to learn dynamic AX. I am .net application developer. I know

that language used is X++ , IDE is Morphx(Not able to download).

* Major issue is regarding the functional requirement of application development in AX.Kindly help me and send the details on

[email protected]

Reply

6. FACView 1 month ago

Hi, I am new to AX, i used to work with GP, is it possible to create a vs project With forms, and use thatforms from dynamics ax? i have created a new personalized window to create products, i have used services

and all, from a vs project it creates the productos in ax, but now i want that Form to be accessed from AXclient as called from a menuitem or anything.Thanks a lot.

Reply

Amerreplied:

View 1 month ago

Page 9: The Use of Visual Studio .pdf

The Use of Visual Studio .NET in the New Microsoft Dynamics AX 2012 « Amer Atiyah, Microsoft Dyna…

9/12www.amer-ax.com/2011/06/the-use-of-visual-studio-net-in-the-new-microsoft-dynamics-ax-2012/

Hi,

You cannot host other than AX form that is not bulit with MorphX inside AX. There must be a way torun a .net form from AX using a menu item as you said, but Im sure that you have to do a way morethan creating a simple form in AX only to call that .net form. Im not sure honestly what that way is. But

i can tell that is not a stright forward processes.

You might consider rebuilding the form in AX/MorphX as this is the best way to do it )

All the very best,,,

Amer

Reply

FACreplied:View 1 month ago

Thanks a lot,Is there any way to graphic in a AX Form via X++ Code?, just basic things like squares and

lines.

Thank you very much.

Reply

7. aliView 1 month ago

hi, how do you it looks easy as long as you have to deal with one table, but how do you join two tables in vsand fill a grid with combined data, like say i need to display item name and color size information in a grid invs 2010 ???

Reply

8. KanwalView 2 weeks ago

Hi,The Add to Project is grayed out when I try to add an AOT object to a project in Visual Studio 2010.m using dynamics ax 2012

Reply

Search the site

SEARCH

Page 10: The Use of Visual Studio .pdf

1/8/13The Use of Visual Studio .NET in the New Microsoft Dynamics AX 2012 « Amer Atiyah, Microsoft Dyna…

10/12www.amer-ax.com/2011/06/the-use-of-visual-studio-net-in-the-new-microsoft-dynamics-ax-2012/

Dynamics AX 2012 Event

0 REMAINING UNTIL

Dynamics AXBrains December

2012 TechnicalSeminar

December 27, 2012 at 10:00 AM

Microsoft Innovation CenterMIC

Microsoft Innovation CenterMIC - 65 - Riyadh, 13541 -

Saudi Arabia

Register Now!

Tweet This Event

Find this event on

Online Ticketing for Dynamics AX Brains

December 2012 Technical Seminar

powered by Eventbrite

Recent Posts

Files of Our AX Brains Dec 2012 EventIt was a great day!

Tomorrow is the day for our Dynamics AX Brains Technical SeminarDynamics AX Brains December 2012 Technical SeminarWindows Server 2012: Built from the Cloud UpDynamics AX 2012 Live Deployment Scenario

Enterprise Portal is Not Working on Dynamics AX 2012 Hyper-V ImageDynamics Academy – An Academic Project for Microsoft Dynamics in Saudi Arabia

Tags

.NET .NET Business Connector AIF Amer Arabic Architecture Book CLR Interop Community Database

Development Dynamics AX Dynamics AX 6.0 Dynamics AX 2009 Dynamics AX

Page 11: The Use of Visual Studio .pdf

1/8/13The Use of Visual Studio .NET in the New Microsoft Dynamics AX 2012 « Amer Atiyah, Microsoft Dyna…

11/12www.amer-ax.com/2011/06/the-use-of-visual-studio-net-in-the-new-microsoft-dynamics-ax-2012/

2009 SP1 Dynamics AX 2011 Dynamics AX 2012 Dynamics AX Brains Enterprise

Portal Error Event GDC Hijri IIS Implementation Integration Kerberos Ledger Journal Materials Microsoft stack

MorphX MSDynamicsWorld.com ODC Files Presentation Sales Order Web Service Saudi Arabia SureStep Training

VISUAL STUDIO.NET WF Workflow Workflow Approval Workflow Task X++ X++ Editor

Archives

December 2012 (4)September 2012 (2)December 2011 (2)November 2011 (3)

July 2011 (3)June 2011 (4)May 2011 (3)April 2011 (4)

March 2011 (12)February 2011 (2)January 2011 (3)December 2010 (1)

November 2010 (1)October 2010 (5)August 2010 (1)July 2010 (3)

June 2010 (4)May 2010 (5)April 2010 (1)

March 2010 (9)February 2010 (4)January 2010 (4)December 2009 (11)

September 2009 (1)August 2009 (1)July 2009 (2)September 2008 (1)

Random Testimonial

~ Mohamed Wajd Haikal, Software Team Leader at IDIS

"Amer is one of my best friends, he always tries to be the best by focusing on gaining newcertifications and to have wide relationships"

Read more testimonials »

Page 12: The Use of Visual Studio .pdf

1/8/13The Use of Visual Studio .NET in the New Microsoft Dynamics AX 2012 « Amer Atiyah, Microsoft Dyna…

12/12www.amer-ax.com/2011/06/the-use-of-visual-studio-net-in-the-new-microsoft-dynamics-ax-2012/

What's the little bird saying?