Learning Dynamics NAV Patterns
eBook - ePub

Learning Dynamics NAV Patterns

  1. 214 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Learning Dynamics NAV Patterns

Book details
Book preview
Table of contents
Citations

About This Book

Create solutions that are easy to maintain, quick to upgrade, and follow proven concepts and designs

About This Book

  • Design software that is maintainable outside the ecosystem of their creators
  • Ensure quality by following patterns that have been proved to work
  • Over two dozen practical Architectural and Design patterns

Who This Book Is For

Learning Dynamics NAV Patterns is intended for developers, architects, (technical) consultants, and application managers. You may have very little or no knowledge about NAV patterns, but you should be acquainted with programming.

What You Will Learn

  • Apply object-oriented practices to C/AL programming
  • Structure your application to avoid merge conflicts
  • Refactor legacy code and avoid anti-patterns
  • Design decision trees to decide when to use which patterns
  • Clone codes and their application in Dynamics NAV
  • Make your application extensible by creating predefined hooks and facades

In Detail

Microsoft Dynamics NAV is a complete ERP system, which also contains a robust set of development tools to support customization and enhancement. These include an object designer for each of the seven application object types, a business application oriented programming language with.NET interface capability, a compiler, a debugger, and programming testing language support.

Learning Dynamics NAV Patterns will guide you through the NAV way of solving problems. This book will first introduce you to patterns and the software architecture of the NAV and then help you to build an example application. Then, it walks you through the details of architectural patterns, design patterns, and implementation patterns. This book will also talk about anti-patterns and handling legacy code. Finally, it teaches you to build solutions using patterns.

Proven patterns and best practices will help you create better solutions that are easy to maintain in larger teams across several locations. It will guide you through combining abstract patterns using easy-to-understand examples and will help you decide which patterns to use in which scenarios.

Style and approach

This book explains the concepts of patterns, code structuring, and object-oriented concepts in a way that is easy to understand for Dynamics NAV specialists through practical examples.

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access Learning Dynamics NAV Patterns by Mark Brummel in PDF and/or ePUB format, as well as other popular books in Computer Science & Microsoft Programming. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781785284199
Edition
1

Learning Dynamics NAV Patterns


Table of Contents

Learning Dynamics NAV Patterns
Credits
Foreword
About the Author
Acknowledgement
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
Downloading the color images of this book
Errata
Piracy
Questions
1. Introducing Dynamics NAV Patterns and Software Architecture
What do we mean by 'patterns'?
Software design patterns
The Procedural software design patterns
Microsoft Dynamics NAV Design Patterns
The object-oriented patterns
Non-object-oriented patterns
The functional oriented patterns
Patterns elements and hierarchy
Architectural patterns
Design patterns
Structuring code
The coding standards
Anti-patterns
Code cloning
Legacy code
Upgradability
The upgrade frequency
Design patterns and upgrades
Delta files
Repeatability
Design patterns and repeatability
Lifecycle of a design pattern
Technology changes
Old habits die hard
New design patterns
Software architecture in Microsoft Dynamics NAV
Metadata
Building blocks
Table
Page
Report
Codeunit
Query
XMLPort
MenuSuite
Metadata
Flowfields
Flowfilters
Base application
Functional processes
Summary
2. Architectural Patterns
The Singleton Pattern
Technical description
Company-Initialize
Implementations
Examples
Enhancements
The Supplemental and Subsidiary Pattern
Technical description
Implementations
Examples
The Compound Pattern
Technical description
Implementation
Examples
The Rules Pattern
Technical description
Implementations
Examples
The Master Data Pattern
Technical description
Implementations
Examples
The Journal Template-Batch-Line Pattern
Technical description
The Journal Template table
The Journal Batch table
The Journal Line table
Recurring Journals
Pages
Codeunits
Implementations
Hierarchy
Journals as contracts
Examples
The Entry Pattern
Technical description
The Entry Table types
Historical entries
Temporary entries
Entries that can be deleted
Temporary tracking buckets
Implementations
Examples
Document Pattern
Technical description
The Header table
The Line table
Posting and archiving
Implementations
Examples
The Argument table
Technical description
Implementations
Summary
3. Design Patterns
The Entity State Pattern
Technical description
Setting the State
Testing the State
Implementations
Examples
The Select Pattern
Technical description
Implementations
Examples
The Number Series Pattern
Technical description
The Table reference field
Setup reference
C/AL functions and variables
Implementations
Examples
Address Integration Pattern
Technical description
Fields
Copying the address
Printing addresses
Implementations
Examples
Multi-Level Setup
Technical description
Implementations
Examples
Document History
Technical description
The naming conventions
Codeunit Structure
Test Near, Test Far
Do it
Clean up
An Example
TRANSFERFIELDS
Implementations
Examples
Copy Document Pattern
Technical description
Validation logic
Implementations
Examples
Job Queue Entry Pattern
Technical description
Preprocessing
Getting records
The Main function
Post-processing
Error handling
Implementations
Examples
Dismissible dialogs and save preferences
Technical description
Dismissible dialog
Implementations
Examples
Setup Update Pattern
Technical description
Restrictions
Implementations
Example
Model-View ViewModel Pattern
Technical description
Implementations
Examples
Summary
4. Building an Example Application Using Patterns
The design elements
The Pattern dependencies
Step one – Foundation
Example setup
Which Patterns to use
The implementation
The Multi-Level Setup Pattern
Step two – Master Data
Example Person
The Example Product
Number Series
Adding Setup fields
Adding variables
Adding the No. Series field
Code snippets
Entity State
Implementing the Address Integration Pattern
Step three – Journals & Entries
Creating your own Journal and Entry
Validation in Journals
Step four – Documents
Implementin...

Table of contents

  1. Learning Dynamics NAV Patterns