Курс 80012. Разработка II Microsoft Dynamics AX 2009


Длительность курса два дня. 

Описание. 
Этот двухдневный курс обучает слушателей разработке в Microsoft Dynamics AX 2009, используя X++. Этот курс начинается с изучения основ X++ и его отношение к объектно-ориентированному программированию, в добавление к инструментам разработки, используемых в Microsoft Dynamics AX 2009. Слушатель узнает о специфических управляющих структурах, обращаясь к базе данных, использующей X++, и управляющей исключениями в Microsoft Dynamics AX 2009. Этот курс является вводным в разработку в Microsoft Dynamics AX 2009, используя X++.

Аудитория.
Курс предназначен для лиц которые планируют заниматься разработкой в Microsoft Dynamics AX используя Х++. Обычно это консультанты которые занимаются созданием приложений основанных на конкретных потребностях клиентов, а также тренингом и поддержкой. Курс особенно полезен тем кто не знаком с концепциями объектно-ориентированного программирования и программирования с использованием Х++. 

Предварительная подготовка.

  • 80011. Разработка I in Microsoft Dynamics AX 2009.

Кроме того рекомендуется:

  • Иметь практическое знание объектно-ориентированного программирования.

По завершении курса.

  • Идентифицировать ключевые особенности разработки с X++.
  • Понимать основу объектно-ориентированного программирования.
  • Использовать инструменты разработки Microsoft Dynamics AX 2009.
  • Создавать объекты и модели данных, из существующих прикладных элементов, используя Reverse Engineering tool.
  • Использование лучших практик программирования.
  • Использование переменных типов данных.
  • Использование различных доступных операторов и где они используются.
  • Контроль программного потока с использованием условных операторов в X++.
  • Использование стандартного функционала для построения приложений.
  • Использование команды вывода для  показа данных и сообщений пользователю.
  • Использование классов в разработке с X++.
  • Расширение класса, используя понятие наследования.
  • Описание отличия между объектом и классом.
  • Инициализация переменных в соответствующем месте согласно обзору правил.
  • Называть методы в пределах класса.
  • Использовать различные доступные типы методов.
  • Описывать сходства и отличия между таблицами и классами.
  • Восстановление данные из базы данных.
  • Создавать, обновлять и удалять данные в базе данных.
  • Использование и создание запросов, используя ядро классов.
  • Использование команд Try, Catch, Retry.
  • Идентифицировать и создавать код, используемый, в управлении оптимистическими исключениями параллелизмов.

Структура курса.
Глава 1. Введение в X++.
Этот модуль дает основные знания для понимания процесса разработки,  с использованием X++. Слушатели научатся использовать главные инструменты разработки в Microsoft Dynamics AX 2009. 

Глава 2. X++ контрольные структуры.
Этот модуль посвящен программированию конструкций в X++, таким как циклы, условные операторы, и функции. Кроме того слушатели смогут эффективно взаимодействовать с конечным пользователем, использующим команды вывода X++.

Глава 3. Объекты и Классы.
В этом модуле рассматривается понятие объектно-ориентированного программирования и его использование в X ++. В финале изучения этого модуля у слушателей сформируются твердые знания, для разработки в Microsoft Dynamics AX 2009,  с использованием объектно-ориентированного программирования. 

Глава 4. Доступ к Базе данных.
В этом модуле изучается разработка модификаций, которые взаимодействуют с базой данных Microsoft Dynamics AX 2009. Данные функциональные возможности часто бывают необходимы, что делает этот модуль важным при изучении разработки с использованием X ++. 

Глава 5. Обработка исключений.
В этом модуле рассматриваются вопросы обработки исключений, которые происходят при выполнении кода. Это важный навык в программировании для создания более эффективных приложений.

80012. Development II in Microsoft Dynamics AX 2009

About this Course 
This 2-day course introduces the student to development in Microsoft Dynamics AX 2009 using X++. This course starts with learning the basics of X++ and its relationship to object-oriented programming in addition to the tools that are required to develop in Microsoft Dynamics AX. The student then learns more about specific control structures, accessing the database using X++, and handling exceptions in Microsoft Dynamics AX. This course is meant to be an introductory course to development in Microsoft Dynamics AX using X++.

Audience Profile
This course is intended for someone who is new to the concepts of object-oriented programming and programming using X++. This audience typically includes technical consultants who will be working with Microsoft Dynamics AX to develop customizations and modifications to meet clients’ needs. Additionally, consultants who are responsible for training or supporting the customer will benefit from this course. This is the second course in the AX Development track and will serve as the entry point for the Development III & IV courses.

At Course Completion
After completing this course, students will be able to:
·   Identify key features of developing with X++.
·   Describe the basic foundation of object-oriented programming.
·   Use the development tools available within Microsoft Dynamics AX
·   Create object and data models from existing application elements using the Reverse Engineering tool.
·   Use best practices to instill good programming habits.
·   Use the data types that can be used for variables and how to declare and use them.
·   Use the various operators available and where to use them.
·   Control program flow using conditional statements in X++.
·   Call the same blocks of code using Loop statements.
·   Use standard functions that are built in to the application.
·   Use output commands to display data and messages to the user.
·   Use the classes within Microsoft Dynamics AX 2009 X++ development.
·   Extend a class using the concept of inheritance.
·   Describe the differences between an object and a class.
·   Initialize variables in the appropriate place according to scoping rules.
·   Call methods within the same class.
·  Use the different method types available.
·   Describe the similarities and differences between tables and classes.
·    Retrieve data from the database using a select statement.
·   Create, update and delete data in the database.
·   Use and build queries using kernel classes.
·   Examine the exception handling mechanism in Microsoft Dynamics AX.
·   Use the Try, Catch, and Retry commands.
·   Throw an exception from code.
·   Identify and create code used to handle optimistic concurrency exceptions.

Course Outline
Module 1: Introduction to X++
This module gives a foundation for understanding development using X++. The student will also be able to use the main development tools in Microsoft Dynamics AX

Lessons 

  • Characteristics X++
    ·   Development Tool
    ·   Reverse Engineering 
    ·   Best Practices 

Lab : 1.1
·   Print to the Screen
Lab : 1.2
·   Debug the Job 
Lab : 1.3
·   Create a Data Model
Lab : 1.4
·    Create an XML developer documentAfter completing this module, students will be able to:
·    Identify key features of developing with X++.
·    Describe the basic foundation of object-oriented programming.
·    Use the development tools available within Microsoft Dynamics AX.
·    Create object and data models from existing application elements using the Reverse Engineering tool.
·    Use best practices to instill good programming habits. 

Module 2: X++ Control Statements
This module focuses on programming constructs in X++, such as loops, conditional statements, and functions. In addition, the student will be able to effectively communicate with the end-user using X++ output commands.

Lessons
·   
Introduction to variables
·    Operators
·   Conditional statements
·   Loops
·    Built-in functions
·    Communication Tools 

Lab : 2.1
·    Create a Times Table
Lab : 2.2
·   
Create a Times Table Using a do while Loop
Lab : 2.3
·   
Create a Times Table Using a For Statement
Lab : 2.4
·   
Create a YesNo box
Lab : 2.5
·  
Create an Infolog Tree
Lab : 2.6
·  
Create a dialog box
Lab : 2.7
·    
Use X++ Control StatementsAfter completing this module, students will be able to:
·     Use the data types that can be used for variables and how to declare and use them.
·     Use the various operators available and where to use them.
·     Control program flow using conditional statements in X++.
·     Call the same blocks of code using Loop statements.
·     Use standard functions that are built in to the application.
·     Use output commands to display data and messages to the user.

Module 3: Objects and Classes
This module discusses the concept of object-oriented programming and its relation to X++. By the end of this module, the student will have a solid foundation to develop in Microsoft Dynamics AX using object-oriented concepts.

Lessons
·    
Classes
·     Inheritance
·     Objects
·     Scoping and parameters in X++
·     Referencing object methods
·     Method types
·     Tables and Classes 

Lab : 3.1
·   
Create a new class 
Lab : 3.2
·   
Instantiate a class 
Lab : 3.3
·   
Use method parameters 
Lab : 3.4
·   
Create a run method 
Lab : 3.5
·     
Create a Calculator ClassAfter completing this module, students will be able to:
·      Use the classes within Microsoft Dynamics AX 2009 X++ development.
·       Extend a class using the concept of inheritance.
·       Describe the differences between an object and a class.
·       Initialize variables in the appropriate place according to scoping rules.
·       Call methods within the same class.
·       Use the different method types available.
·       Describe the similarities and differences between tables and classes.

Module 4: Accessing the Database
This module discusses developing modifications that interact with the Microsoft Dynamics AX database. This functionality is frequently needed, making this an important topic in learning development with X++.
Lessons
·    
Retrieving data
·     Data Manipulation
·     Queries

Lab : 4.1
·   
Retrieving data 
Lab : 4.2
·   
Update data 
Lab : 4.3
·     
Create a query using X++After completing this module, students will be able to:
·       Retrieve data from the database using a select statement.
·       Create, update and delete data in the database.
·       Use and build queries using kernel classes.

Module 5: Exception Handling
This module discusses how programs handle exceptions that occur when code is executed. This is an important skill in all programming to make the application execute more efficiently.

Lessons
·     
Exceptions
·      Try and Catch Commands
·      Throwing Exceptions
·      Optimistic Concurrency Exceptions 

Lab : 5.1
·      
Handle an ExceptionAfter completing this module, students will be able to:
·       Examine the exception handling mechanism in Microsoft Dynamics AX.
·       Use the Try, Catch, and Retry commands.
·       Throw an exception from codeIdentify and create code used to handle optimistic concurrency exceptions.

Module 6: Appendix A: Workflow
This Appendix contains an optional self-study lesson on workflow within Microsoft Dynamics AX 2009. By following the procedures in this lesson, students will be able to create and configure simple workflows.

Lessons
·     
Create a workflow category
·      Create a workflow template
·      Create a workflow document
·      Create a workflow approval
·       Enable workflow on a form
·      Configure a workflow 

Lab : A.1
·   
Add another condition to the Submit Action

After completing this module, students will be able to: 
·     Identify the components required prior to using workflow.
·    Specify which application module a workflow is applicable to using a workflow category.
·    Create a new workflow template.
·    Link tables to workflows using a workflow document.
·    Define what happens when the workflow is approved or denied.
·    Apply a workflow to a form. Configure a workflow.

Additional Reading
To help you prepare for this class, review the following resources:
·     Course 80011: Development I in Microsoft Dynamics AX 2009   
In addition, it is recommended, but not required, that students have:
·     Working knowledge of object oriented programming (OOP) 

Before attending this course, students must have:
·  
Completed Course 80011: Development I in Microsoft Dynamics AX 2009