Posts in this category.
Dec 24, 2020
Now we go to the last part of the tutorial for Front-end Customization. We will implement Niam.Xrm.Client and Niam.Xrm.Client.Tests on the project we set up earlier. Niam.Xrm.Client is a framework wrapper for Xrm object that focuses on making customization easier, while...
Dec 18, 2020
As developers, we are supposed to adapt ourselves to a better working framework or mindset. Following a Test-Driven Development (TDD) mindset, for example, enables us to work more effectively in the long run, compared to not using it. Hence making unit tests has become a crucial...
Dec 12, 2020
Have you ever had a scenario that needs to disable all the controls in the UI after data is successfully saved? Let's say after the document State is changed to Approved, then we need to disable some of the attributes in the form? If yes, then this post is about my simple tips to...
Dec 11, 2020
First question: Why TypeScript? We know what JavaScript programming does. The programming language sometimes leads us to confusion because it's too dynamic. While TypeScript as JavaScript superset trying to fix the whole weakness that it can lead us into. TypeScript offers a more...
Nov 23, 2020
When I was writing this post, I felt the environment that I set up did not enhance my ability to write code. The reason for this is that I use jsdom, which is a mock object for the HTML component. Because it is not a real object of HTML, my focus has been changed to the test code...
Nov 6, 2020
I started using Dynamics CRM in version 2013. Back then, we all know if we need some retrieving function in JavaScript, we needed to create our library (HttpRequest) or use XrmSvcToolkit. Even in XrmSvcToolkit we actually can set async to true, our tendency will straight to use...
Oct 30, 2020
In this post, we will learn about how to use formContext.data.addOnLoad and formContext.data.removeOnLoad. Generally, formContext.data.addOnLoad function is totally the same as below function (register manually from the form): So the basic question that we will ask is why we need...
Oct 23, 2020
As a developer, we need to know what tools we can use to achieve our task as efficient as possible. One of the API that now we want to learn is addOnSave. In short, addOnSave is an API that we can call to register an event to save the event to prevent or allow the changes. For...
May 17, 2019
Let's say you have Entity Master and Entity Child. Then you want to have a scenario like from the master you want to have two subgrids. If you click the button add on subgrid 1, you want to fill in Child.Master1 and then click the button add on subgrid 2, you want to fill in...
Mar 6, 2019
JavaScript sometimes makes me stressed as a developer because of its dynamic nature. You can assign whatever value on the JavaScript object, change it into another type and it will not throw an error. Therefore TypeScript will help you so much because of its strictness. In this...