Download presentation
Presentation is loading. Please wait.
Published byMark Owens Modified over 9 years ago
1
Presented by Vishy Grandhi
2
Lesson 1: Introduction to X++ Lesson 2: Development tools Recipes
3
At the end of this lesson you will have an understanding about ◦ Overview ◦ Characteristics ◦ Code tools ◦ Color coding
4
Primary programming language used in MorphX development environment Resembles other popular languages such as C# and Java It includes many integrated SQL commands Object-oriented language Base set of system classes provide a wide range of functionality include I/O, XML etc..
5
Reliable: Compile-time checking and run- time checking Memory management: Automatic garbage collection Interpreted and Dynamic: Faster dev cycles including prototyping Interoperable:.Net interoperable and can consume external managed code and COM objects
6
X++ Editor X++ Compiler X++ Debugger Visual Studio Visual Studio Debugger
7
◦ Editor color-codes ColorCode typ BlueReserved words GreenComments Dark RedStrings Bright RedNumbers PurpleLabels BlackEverything else Squiggly linesErrors
8
At the end of this lesson you will have an understanding about ◦ Compiler: Output window ◦ Debugger: Window panes ◦ Compare tool ◦ Type Hierarchy browser ◦ Reverse Engineering ◦ Best Practices
9
Compile (F7) Add-Ins->Compile Forward Compiler output window elements ◦ Filter buttons ◦ Reset button ◦ Edit button ◦ Import/Export button ◦ Setup button
10
Breakpoint (F9) Tools->Options Developer tab:Debug field Window Panes in debugger ◦ Code ◦ Variables ◦ Call Stack ◦ Watch ◦ Breakpoints ◦ Output
11
Compare code in ◦ Two different layers ◦ In an old version of an element ◦ In two different elements ◦ An element that will be imported
12
Add-Ins->Type hierarchy browser Display the hierarchy of a type inheritance Eg CustAccount, CustInvoiceAccount, SalesLineType_Sales
13
Reverse engineer object and data models. Objects and the available models Data ModelObject Model TablesYes Table Group PropertyYes Table FieldsYes Table Index informationYes Table Methods and parametersYes ClassesYes All EDTsYes All Base EnumsYes All X++ Data TypesYes
14
Naming Conventions: {business area name} + {business area description} + {action performed (for classes) or type of contents (for tables)} All names in U.S. English Limit of 40 characters for identifiers All text must use labels Don’t begin any objects with prefix DEL_
15
Code Placement ◦ Place in class to make it reusable ◦ Code included in forms always runs on the client ◦ Context ◦ Place code nearest to the source so it can be more easily manipulated
16
Comments ◦ In-Line vs Separate lines ◦ //, /* */, TODO, /// ◦ Add-Ins->Extract XML documentation
17
The following recipes are included in this presentation 5a. Reverse engineer an object model 5b. Reverse engineer a data model
18
1. Start 2. Open Microsoft Dynamics AX development workspace (Ctrl + Shift + W) 3. Create a project. 4. Drag AOT elements into the project you want to reverse engineer into an object model. 5. Right-click the project and select Add- ins > Reverse engineer. 6. Click Visio UML Object model to create a UML object model. 7. Select a name and path for the file and then click OK. 8. From Microsoft Visio, drag object nodes into the center grid to lay out the desired model. 9. Finish
19
1. Start 2. Open Microsoft Dynamics AX development workspace (Ctrl + Shift + W) 3. Create a project. 4. Drag the AOT elements into the project you want to reverse engineer into a data model. 5. Right-click the project and select Add- ins > Reverse engineer. 6. Click Visio UML Data model to create a UML data model. 7. Select a name and path for the file and then click OK. 8. From Microsoft Visio, drag table nodes into the center grid to lay out the desired model. 9. Finish
20
We have looked at an Introduction to X++ and the various tools, best practices
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.