7 Sure Steps to pass the Sure Step exam

Another Sure Step course is over, this time in Århus, Denmark. I love and hate teaching this course, because it always makes me wonder why I need this, and why in the Earth I am doing this trainer’s job. And then makes me happy that I do and eager to do it again as soon as possible. It also teaches me something, every time, and here are my lessons learned.

Bron : Navigate into Success
Lees meer…

Application Test Toolset for Microsoft Dynamics NAV 2009 SP1/R2

This supplement includes a simple test framework, a set of (example) tests, and a tool to manage and execute tests build on top of the testability features released with Microsoft Dynamics NAV 2009 SP1. This toolset also works with Microsoft Dynamics NAV 2009 R2.

Bron : Partnersource (login required)
Lees meer…

How to send Notes to the Customer from a Custom Page using an Action button in Dynamics NAV

A Custom page called Collection Module-Per User has details of Customers Transaction. This Collection Per User page is a List page. The User will select the line and Click on Notes. Notes will written and saved. The user will Click on the Action button Send Notes to Customer.

Bron : Chris D’silva’s Blog
Lees meer…

How to get a reliable xRec

When events were introduced in C/AL code, one of the most discussed was the OnAfterModify event. Back in 2016, Vjeko wrote an article about it: https://vjeko.com/2016/05/17/onafter-table-event-subscriber-patterns-and-antipatterns/.

There are actually two problems that play a role here. The first one is that the value of xRec can’t be trusted. The variable xRec is supposed to have the original value of the variable Rec when a record is modified. However, this is only the case when the user modified the record from the UI. When a record is modified by code with Rec.Modify(), then xRec has the current value of Rec instead of the original value.

Source : Arend-Jan Kauffmann
Read more…