JavaScript

Property and Event Binding in Angular 2+

Property and Event Binding in Angular 2+ is a very powerful tool offered by the Framework. You can easily pass values to child elements (Input) and emit changes (event binding) to the parent element (Output). The third option would be to use both as so-called two-way binding. All of the following examples and descriptions can be …

Property and Event Binding in Angular 2+ Read More »

Show Notifications On A MS CRM Form With JavaScript

The Microsoft XRM JavaScript Frameworks provides an easy way to show a yellow notification bar on top of the actual form. So you can place prominent notifications that a user can’t miss. There are three different types of notifications: ERROR, WARNING and INFO.   Example Code:

Result: With the given id you can also easily remove …

Show Notifications On A MS CRM Form With JavaScript Read More »

Switch Form in MS CRM with JavaScript

The Microsoft XRM JavaScript Framework provides the possbility to switch/navigate to a specific form of an entity. Often the use case is, that a type (e.g. OptionSet) has a dedicated form which should be shown when the type is set/changed. In the first place you have to figure out the id of your target form …

Switch Form in MS CRM with JavaScript Read More »

Refresh the actual Microsoft CRM Page With JavaScript

Within the Microsoft XRM Framework you can simply navigate and refresh the actual Microsoft CRM Page with the openEntityForm function. Usually this function is used to navigate to an existing entity record or to open a new entity form where the actual user can create and/or edit a record. But with this function it is also …

Refresh the actual Microsoft CRM Page With JavaScript Read More »

Retrieve Entity Record With JavaScript And XrmServiceToolkit Library

The XrmServiceToolkit JavaScript Library provides a huge set of features which makes Client-Side Development much easier. The whole library contains four major parts as listed on their offical description: Common: General Methods used for various purpose. Rest: Organization Data Service functions including CRUD, Associate, Disassociate, etc Soap: Organization Service functions including CRUD, Fetch, Associate, Disassociate, …

Retrieve Entity Record With JavaScript And XrmServiceToolkit Library Read More »

Saving Data When A CRM Field is Read-Only With JavaScript (setSubmitMode)

Saving data when a CRM field ist read-only is a often requriered use case, when data is fetched by javascript and written in such a field. Many Developers don’t know in the first place, that if a CRM field is read-only on the client-side you have to set the submit mode of the attribute. Otherwise …

Saving Data When A CRM Field is Read-Only With JavaScript (setSubmitMode) Read More »