Posts

Showing posts from January, 2024

Create Ribbon on subgrid and selected record on show button

Image
 1.  create button. 2. Add command. 3. Add enable rule Hide Rule function updateStatus(selectedrecord, formContext, commandProperties) {        debugger ;        //alert("Called Javascript");        if (commandProperties.SourceControlId.includes( "EOL.Button" )) {               update(selectedrecord, "EOL" )        }        else if (commandProperties.SourceControlId.includes( "Respite.Button" )) {               update(selectedrecord, "Respite" )        }        else if (commandProperties.SourceControlId.includes( "NotResident.Button" )) {               update(selectedrecord...

Create a FLYOUT Ribbon button and click event menu d365

Image
 1. First add(drag and drop) the FLYOUT on form or subgrid or home 2. Add the(drag and drop)   Menu selection on list  3. Add(drag and drop) the button in   Menu selection  4. Hide ribbon button on custom condition. -> Set Enable rule  call javascript custom rule Add the java script hideshow: function HideCopyProxybutton(formContext) {        debugger ;        var surveytype = formContext.getAttribute( "ecl_surveytype" ).getValue();        if (surveytype == 806460000) {               return true ;        } else {               return false ;        } } 5. Add command On button click menu selection event  function copyProxy(formContext, commandProp...

Validation form using plugin d365

Image
 Plugin Code: using System; using System.ServiceModel; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Query; using Indegene.Omnipresence.Common;   namespace Indegene.Omnipresence.Plugins {     public class OrderClose_PreOperation : PluginBase     {         /// <summary>         /// Initializes a new instance of the <see cref=" Order_PreOperation "/> class.         /// </summary>         /// <param name=" unsecure "> Contains public (unsecured) configuration information. </param>         /// <param name=" secure "> Contains non-public (secured) configuration information.         /// When using Microsoft Dynamics 365 for Outlook with Offline Access,  ...