Posts

Showing posts from September, 2025

Power pages custom button add in gried

  $(document).ready(function () {     // Loop through table rows after entity list loads     $(".entity-grid .view-grid table tbody tr").each(function () {         var recordId = $(this).attr("data-id"); // row GUID         if (recordId) {             var viewBtn = `<button class="btn btn-primary btn-sm view-btn"                              onclick="openDetails('${recordId}')">View</button>`;             $(this).find("td:last").append(viewBtn); // put button in last column         }     }); }); function openDetails(id) {     // Replace with your detail page URL     var detailPageUrl = "/bankaccount-details/";     window.location.href = detailPageUrl + "?id=" + id; }

Custom Date Rang HTML d365

Image
  Copy code in VS and save as HTML <html> <head>     <meta charset="utf-8">     <title></title>     <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">     <link href="https://cdn.datatables.net/1.10.1/css/jquery.dataTables.css" rel="stylesheet" id="datatable-css">     <link href="https://cdn.datatables.net/responsive/1.0.0/css/dataTables.responsive.css" rel="stylesheet" id="datatable-responsive-css">     <link href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/1.3.1/css/toastr.css" rel="stylesheet">     <script src="https://code.jquery.com/jquery-1.9.1.js"></script>     <script src="https://cdn.datatables.net/1.10.1/js/jquery.dataTables.min.js"></script>     <script type="text/javascript...