Tag: Javascript

  • Dynamics 365 – How To Send Parameters To Forms with JavaScript

    This blog post demonstrates how to set column values using parameters passed to a form in Dynamics 365 using client API. It explains the syntax for passing parameters in the URL and the Xrm.Navigation.openForm method. Additionally, it details setting values for various column types and emphasizes the user experience improvement.

  • Dynamics 365 – How to check if the field is changed using JavaScript

    The post explains how to use the formContext.getAttribute(arg).getIsDirty() web API to check for unsaved changes in column values of a record. It provides examples of using the method for different types of attributes and suggests actions based on the state of the column. The API is a valuable tool for…

  • Dynamics 365 – Retrieve Records using JavaScript

    The post discusses how to retrieve records in CRM using Xrm.WebApi.retrieveRecord(). This method allows fetching a single record by ID and entity name, with options to specify attributes and relationships in the response. Code examples demonstrate retrieving records with all attributes, specific attributes, and related records. The post emphasizes handling…

  • Asynchronous Programming in JavaScript – Callbacks, Promises, & Async/Await Examples

    Asynchronous programming in JavaScript is crucial for tasks with variable completion times. While callbacks were traditionally used, Promises and async/await now offer more elegant solutions. Promises provide better readability and error handling, while async/await makes code appear synchronous for improved maintainability. Understanding these techniques is essential for efficient JavaScript coding.

  • JavaScript: How to Add to an Array

    JavaScript arrays offer various methods for adding elements. The push() method adds elements to the end, while unshift() adds to the beginning. The concat() method creates a new array, retaining the original. Additionally, the spread operator (…) can add elements by expanding iterables. These techniques provide flexibility for efficient array…

  • Javascript How To Reverse a String

    Reversing a string in JavaScript can be achieved using methods like split, reverse, and join, or by using a loop to iterate over the characters. Another approach involves recursion. These strategies offer various advantages and use cases, enabling developers to efficiently manipulate strings and solve algorithmic problems.