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
Tag: Javascript
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 Model-Driven-Apps: formContext.data.entity.addOnPostSave vs modified_OnChanged
What is the way that you used Dynamics CRM to call the javascript method after saving the entity? For example, after the record is saved, you want to re-run the form_onLoad function again so you can see the latest state of your controls (set required/hide). Or probably you want to open WebResource or add Form Notification to the user. … Continue reading Dynamics CRM Model-Driven-Apps: formContext.data.entity.addOnPostSave vs modified_OnChanged
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
Dynamics CRM Model-Driven Apps: Strategy for Multiple Environment + Solution Layering in Javascript
If you ever make a product based on Dynamics CRM and needs to use multiple environments + solutions for multiple projects. But still willing to achieve tidy + clean solutions when registering events. Here is my recommendation on how to do it without needing to heavily rely on Form registering (no need afraid that the … Continue reading Dynamics CRM Model-Driven Apps: Strategy for Multiple Environment + Solution Layering in Javascript
Exploration: Dynamics CRM Client Scripting – Xrm.Utility.lookupObjects
Do you know that in Xrm.Utility object now got a nice function called lookupObjects? When we called this function, it will help us open a nice dialog that lets us choose (single or multiple) records and return to us an array of the selected data. We can pass lots of combinations of parameters to make the dialog more … Continue reading Exploration: Dynamics CRM Client Scripting – Xrm.Utility.lookupObjects
Tips Model-Driven Apps Javascript: How to trigger Custom Method After Saving
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 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 achieve that … Continue reading Tips Model-Driven Apps Javascript: How to trigger Custom Method After Saving
Dynamics CRM Model Driven Apps: Simple Tips for registering events in Form
I started using Dynamics CRM in version 2013. Back then, we all know if we need some retrieving function in JavaScript, we need to create our library (HttpRequest) or using XrmSvcToolkit. Even in XrmSvcToolkit we actually can set async to true, our tendency will straight to use it as sync. And this concept is the … Continue reading Dynamics CRM Model Driven Apps: Simple Tips for registering events in Form
Dynamics CRM Model Driven Apps: Make use of addOnLoad and removeOnLoad
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 with below function (register manually from form): So the basic question that we will ask is why we need this API? For me, I will use this API if I have dynamic requirements. Last time, … Continue reading Dynamics CRM Model Driven Apps: Make use of addOnLoad and removeOnLoad
Dynamics CRM 365: Set Parent-Child Mapping From Correct Relationship
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 … Continue reading Dynamics CRM 365: Set Parent-Child Mapping From Correct Relationship