Design Patterns (General & Best Practices)
Category List
-
Expand for more options.Architectural Patterns are the larger building blocks of your applications such as tables and posting processes. They determine how the data is stored in the database and flows through the system. Examples are Documents, Master Data and Ledger Entries.
-
Expand for more options.They are the smaller elements that give the application the characteristics people know and are familiar with. By implementing Design Patterns you create familiarity for users across the application. Examples are Number Series, Address Integration and Blocked Entity.
-
Expand for more options.This determines the way you structure your code and objects. The patterns help you organize your application and enhance upgradability and maintainability across developers and partners. Many of the patterns are derived from Object Oriented Programming. Examples are Hooks, Façade, Encapsulation and Natural Language Programming.
Discussion List
-
Welcome to the Design Patterns forums!
Let me start by thanking Luc and Alain for making this forum reality. The Dynamics NAV ecosystem is becomming more and more aware of Design patterns and I get almost daily questions about them via mail or other channels. These forums are meant to share knowledge and ask questions. You can find descriptions about Design…
-
NAV 2016 (9.0.50528.0) Docker
Greetings everyone, We are looking to migrate our NAV Servers and instances to on-prem Docker services, from my knowledge & research this doesn't seem possible, maybe I am wrong.. Does anyone have NAV v((9.0.50528.0)) running on Docker right now? If so can you please provide resources on how to accomplish this task.. Thank…
-
Contact Insights are not working after PROD environment has been reinstalled (BC online)
Hi All, We have installed PROD environment on BC online (premium subscription), we are using Office365 accounts for authentication. We have deployed add-in: Contact Insights. User could connect to the demo database: Cronus DE after clicking the icon: Contact Insights inside Outlook client as expected. Everything else…
-
detailed comments in NAV code
I got a request to add comments like below for each line of code we modify or write What are your thoughts with pros and cons? IF (StartDate = 0D) AND (NOT UseEmploymentDate) THEN StartDate := WORKDATE; // If Start Date is Null and the user did not check Use EmploymentDate then use the Workdate IF (StartDate > EndDate) AND…
-
NAV2013 Implementing Manufacturing Module
Good Day everyone,I have a customer that is already using NAV2013 for 4 years. Just recently they decided to implement manufacturing module (a new company book). Is there anything to take note i.e. Server specification prior to the implementation? Or I shall say, what would be the guide to calculate the sizing of the…
-
Renaming fields IDs in Navision tables & effects on other Objects
Problem: Now we found that one of our Programmer have given new Fields IDs in NAv_2016 for all our new fields which are coming from Nav_2009. What we want to have : We want to maintain the same fields IDs in our new Nav_2016 with the same Fields ID like Nav_2009. Our Concerns: Now the question is if we changed all tables…
-
Processing Template pattern
I want to offer to the community for discussion Processing Template Pattern. We use processing template pattern to setup document workflow for Nav and external applications. Basic concepts: 1. Document Status. Every document should have status. 2. Statuses list must be configured for document type. 3. Processing template…
-
Transferfields Versus Assignment Method (Rec1:=Rec2)
Transferfields Versus Assignment Method (Rec1:=Rec2) 1. What is the main Difference? 2. What is Best Practice and Why? 3. I have a code that causes an error which might be from assignment method, it goes something LIKE this: Function() Rec1:=Rec2; Rec1.Insert(True); --- function Rec1 - Insert() Main_Key:= LastNumber + 1;…
-
XML Handling with COM Automation / DotNet
Let's assume we have the following scenario: - We want to handle complex XML files (export and import, XMLPorts have limitations... so they are not an option in this case) - We want to separate business code from the technical code - We want to implement this in older (Classic COM Automation) and for newer NAV Clients…
-
Best Practice for FIND commands for addon development
There are many resources around which explain how FINDSET, FINDFIRST, FIND('-') etc. work but my understanding is that it really depends on the NAV version. Not all NAV versions behave the same on the SQL Server. Let's say I want to maintain *one* codebase (addon) which works for all NAV versions between NAV5.0 classic and…
-
PROJECT SERVER and Dynamics NAV 2013 R2 and last versions
Hi Does anybody knows which partners in South Europe have real !! experience in Project Server Project integrations with Dynamics NAV 2013 R2 or last versions ? By the way, where can we have any ideia (documents, presentations, white papers, etc... ) about NAV integrations with Project Server, to understand how dificult it…
-
Coding best practices to overcome merge conflicts?
In an attempt trying to understand the merge commandlet and dealing with conflicts, I came accross some situations I would like to get some more explanations about the 'why' of these conflict situations. Example 1 (OnModify Customer) Original code... MODIFY; CallSyncCodeunit; FIND; ... Modified…
-
Design Template
Hi Guys, Does anyone have any templates for Nav Development Documentation? Let's say the client needs some modification and I have to write down those modification and make design document to send to a developer to make the changes. Cheers,
-
Code commenting in C/AL (NAV) - Pros and cons
I have seen the question of code commenting in NAV application code, being asked again and again. There are pros and cons to it. Maybe this topic deserves to have a place of its own. This is not a promise that the results of this conversation will influence production code. That is not the goal. The goal is for NAV…
-
C/AL Coding guidelines are published
Yesterday, the C/AL coding guidelines that are used internaly at Microsoft were published. You can find them here. https://community.dynamics.com/nav/w/de ... fault.aspx It contains a wide range of rules that should be applied when doing NAV Development. Internaly MSFT has a tool that checks for these rules. Please vote…
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
