Home Page Icon
Home Page
Table of Contents for
Cover
Close
Cover
by Erlend Dalen, Mohammed Rasheed
Learning MS Dynamics AX 2012 Programming
Table of Contents
Learning MS Dynamics AX 2012 Programming
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Instant updates on new Packt books
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Understanding Dynamics AX 2012
Understanding the development environment
Programming language
MorphX
Application Object Tree
Data Dictionary
Macros
Classes
Forms
Datasets
SSRS Reports
Reports
Report Libraries
Queries
Jobs
Menus
Menu Items
Web
Services
Workflow
Resources
System Documentation
Application Developer Documentation
Properties
X++ code editor
Compiler
Labels
Creating your first AX program
Utilizing the different development tools
Cross-references
MorphX version control
Setting up the MorphX version control
Using the MorphX version control
The debugger
Dissecting the AX architecture
Application object layers
Network tiers
Case study – Carz Inc.
Summary
2. The X++ Language
Introduction
Datatypes
Primitive datatypes
String
The strfmt method
The substr method
Integer
Real
The str2num function
The num2str function
Boolean
Date
Enum
The enum2str function
The enum2int function
The timeofday datatype
The str2time function
The utcdatetime datatype
The anytype datatype
Composite datatypes
Container
The container functions
Class
Table
The find method
The exist method
The initFrom method
Array
Statements and loops
The for loop
The continue statement
The break statement
The while loop
The do-while loop
The if-else if-else loop
The switch statement
Exception handling
Operators
Assignment operators
Relational operators
Arithmetic operators
Classes and methods
Method access
The RunOn property
Static methods
The default parameter
The Args class
Inheritance
The construct method
The main method
The RunBase framework
The SysOperation framework
The collection classes
Array
List
Map
Set
Struct
Macros
Events
Summary
3. Storing Data
Extended datatypes
Creating an extended datatype
Tables
Creating a table
Adding fields to a table
Adding fields to a field group
Creating an index
Creating a relation
Creating a delete action
Table browser
Table inheritance
Querying data on inherited tables
Valid time state tables
Summary
4. Data User Interaction
Forms
Main components of a form
Methods
Data sources
Designs
Creating a form with one data source
Form templates
Creating the form
Adding the data source
Creating a form design
Creating a form with two data sources
Separating the design using a form splitter
Display and edit methods
Edit methods
Considerations
Caching display methods
Creating a lookup form
Creating a lookup form by adding a new form in AOT
Creating a lookup in the lookup method
Parts
Reports
Reporting Services
Creating an AX report using Visual Studio
Menu items
Creating a menu item
Using a menu item as a button in a form
Navigation pages
List pages
Creating a list page
Menus
Summary
5. Searching for Data
Queries
Creating a static query using AOT
Adding a sort order to the query
Adding a range to the query
Joining data sources in the query
Creating a dynamic query using X++
Using a query
Views
Creating a view
The select statement
CarTable
RentalTable
CustTable
How to write a simple select statement
How to use sorting in the select statements
How to use joins in a select statement
The inner join
The outer join
The exists join
The notexists join
How to write aggregate select statements
sum
avg
count
minof and maxof
Group by
Optimizing data retrieval
Using the correct data retrieval method
Field selects
Indexing
Using views to optimize data retrieval
Other ways to improve data retrieval
Summary
Record-based manipulation
Insert
Update
Delete
Unit of work
Direct handling
Summary
7. Integrating Data
Text files
Writing data to a text file
Reading from a file
Binary files
XML files
Creating an XML file and writing to it
Reading an XML from a file
Open Database Connectivity
Reading data from the database:
Reading from a database using ODBC
Writing to a database using ODBC
The import/export activity
The ImpExpFileDialog class
The classDeclaration method
The dialog method
The getFromDialog method
The pack method
The run method
The unpack method
The main method
The ImpExpFile class
The classDeclaration method
The new method
The openFile method
The readFile method
The run method
The writeFile method
The construct method
The ImpExp_Cars class
The classDeclaration method
The readFile method
The writeFile method
The ImpExp_Rentals class
The classDeclaration method
The readFile method
The writeFile method
Summary
8. Integrating with Standard AX
The inventory module
The InventTable entity schema
The InventTrans entity schema
Understanding main class hierarchies
The InventMovement classes
The InventUpdate classes
The InventAdj classes
The InventSum classes
Working with inventory dimensions
Finding an inventory dimension
Finding the current on-hand information
Finding on-hand information by a specific date
Entering and posting an inventory journal from code
The Ledger module
Posting ledger transactions
Entering and posting a LedgerJournal class
Entering and posting a LedgerVoucher class
Understanding the Accounts Receivable / Accounts Payable modules
Entity schema – base data and orders
Entity schema – transactions
The trade agreements
Finding the price of an item for a specific customer
Posting and printing sales/purchase updates
The voucher settlement
Summary
9. Creating a New Module
Setting up a number sequence reference
The parameter table
Setting up the number sequence
Using the number sequence
The security framework
License codes
Configuration keys
The security hierarchy
Code permission
Privileges
Duties
Policies
Roles
Process cycles
Summary
10. Working with .NET and AX
Common Language Runtime
Adding a reference to a .NET class in AX
Assembly existing in the Global Assembly Cache
Assembly not in Global Assembly Cache
Using a .NET class in X++
.NET Business Connector
Using .NET Business Connector in .NET classes
Creating a static method in AX in the global class
Creating a new project in Visual Studio and adding it to AOT
Application Explorer
Inserting data in an AX table
Reading data from an AX table
Exception classes
Summary
11. Web Services
Exposing AX logic using web services
Creating a web service that exposes the AX logic
Publishing a web service to IIS
Accessing logic in an external web service
Creating a service reference
Creating a class that consumes the web service
Summary
12. Enterprise Portal
Creating a dataset
Creating a new Visual Studio project
Creating a grid
Creating a new Web Part page
Creating a tunnel/wizard
Summary
A. Links
Websites
Official Microsoft websites
Blogs
Other relevant websites
B. Debugger
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Next
Next Chapter
Table of Contents
,
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset