Model-Driven-Apps: How to use the side pane to show custom HTML

Today we will learn how to create a custom web resource (HTML) using Angular, and show it in the side pane using Xrm.App.sidePanes.createPane method. The end result will be like the below picture: Without further ado, let's go make the Angular apps! Angular Project Before we begin, I want to give a shoutout to these … Continue reading Model-Driven-Apps: How to use the side pane to show custom HTML

Advertisement

Model-Driven-Apps: Implement Editable Grid and learn how to customize it

Let's learn how to implement Editable Grid and apply simple customization. As the name, the Editable Grid is a grid where we can do inline editing. In this blog, I create a custom table where we will implement the below scenario: - On Qty or Unit Price changed, set Total with formula Qty * Unit … Continue reading Model-Driven-Apps: Implement Editable Grid and learn how to customize it

Model-Driven-Apps: Add on post-save event

What is the best way to add a post-save event that will always be called either success/failure? From the documentation, I see we actually can use addOnPostSave but when I try it, it didn't work as expected (later we will go through this scenario). So, as an alternative for now we can make use of … Continue reading Model-Driven-Apps: Add on post-save event

Model-Driven-Apps: How to use setIsValid method

When dealing with client script customization, most of the time we are dealing with data validation where the common steps are like the below snippet: var blog = blog || {}; (function() { this.formOnLoad = function(executionContext){ var formContext = executionContext.getFormContext(); formContext.getAttribute("tmy_transactiondate").addOnChange(validateOnChangeTransactionDate); formContext.getAttribute("tmy_dateonly").addOnChange(validateOnChangeDateOnly); } var validateOnChangeDateOnly = function(executionContext){ var formContext = executionContext.getFormContext(); var date = formContext.getAttribute("tmy_dateonly").getValue(); … Continue reading Model-Driven-Apps: How to use setIsValid method

Dynamics CRM: addOnLookupTagClick and removeOnLookupTagClick

Today we will learn simple methods that are related to the datatype lookup on CRM: addOnLookupTagClick and removeOnLookupTagClick. Basically, addOnLookupTagClick is a function to register an event when the user is clicking the lookup tag value. Click the Lookup Tag value From the image above, if we click the lookup tag value and we register the events using addOnLookupTagClick, those events will be … Continue reading Dynamics CRM: addOnLookupTagClick and removeOnLookupTagClick

Azure-MSAL: Implement loginRedirect In Angular+Call CRM Action

In this blog post, we learn how to display CRM data into SPA (Vue.js). For that purpose, we are using @azure/msal-browser and calling the loginPopup method whereby as you can see in the demonstration section, it will pop up a form to do the login process. Today, we will learn how to use the loginRedirect method and handle it in Angular. … Continue reading Azure-MSAL: Implement loginRedirect In Angular+Call CRM Action

Dynamics CRM: Effective Way Calling Custom Web API in Javascript Development

Finally, I found how to call Custom Action from Xrm.WebApi.execute function. The funny thing is, the method has already been in place for a long time. I just realized how to call it after I have the curiosity to get the EnvironmentVariable effectively in Javascript (for calling Custom Web API in Plugin Development, you can refer to this blog … Continue reading Dynamics CRM: Effective Way Calling Custom Web API in Javascript Development

Dynamics CRM Client Scripting: Passing Custom Value when using Xrm.Navigation.openForm

When I check on the official documentation about Xrm.Navigation.openForm, I am interested in attribute formParameters. Where in the docs, stated that we can pass custom value from caller to the form that we want to open. The scenario of it is let's say we want to open dialog (from custom web resource) or something that temporary (not … Continue reading Dynamics CRM Client Scripting: Passing Custom Value when using Xrm.Navigation.openForm

Dynamics CRM Client Scripting: addCustomFilter and addPreSearch

The most common requirement that usually we need to apply is filtering the lookup dynamically based on the state of the current attribute. For example, you have a Custom Approval entity (table) that got a lookup to Customer and Custom Document. Then when the user on the Custom Approval screen, you want to filter the Custom Document based on the Level field (column) that the user … Continue reading Dynamics CRM Client Scripting: addCustomFilter and addPreSearch

How To Setup Bootstrap On Your PCF Project

How many of you already know about PCF (PowerApps Component Framework) control? A framework that lets us (developer) create customize UI to be used in PowerApps. Because we are talking about customized UI and I'm a pure programmer, make use of Bootstrap is always a way to go for me. Bootstrap can help me more focus on … Continue reading How To Setup Bootstrap On Your PCF Project