I know there was never a supported method of doing this with previous versions of CRM, but I thought I'd read somewhere there was a supported way in D365?
*This post is locked for comments
I know there was never a supported method of doing this with previous versions of CRM, but I thought I'd read somewhere there was a supported way in D365?
*This post is locked for comments
Hi MDS,
For grid color on the base of status, we can achieve this using javascript.
In this link Task1 check for calling the javascript
And
JavaScript
function FormatGrid(Status,Colors) { var conditionArr = Status.split("|"); var colorArr = Colors[1].split(","); var hdText = conditionArr[0].toString(); var tblHeaders = window.top.document.getElementById('contentIFrame0').contentWindow.document.getElementById('gridBodyTable').getElementsByTagName('TH'); var hdIndex = 0; var i = 0; var chkKeyWord = ""; //Loop through the headers to find the index of hdText for (i = 0; i < tblHeaders.length; i++) { if (hdText == tblHeaders[i].innerText) { hdIndex = i; break; } } //end of for var rows = window.top.document.getElementById('contentIFrame0').contentWindow.document.getElementById('gridBodyTable').rows; var ctr = 0; for (i = 1; i < rows.length; i++) { for (var j = 0; j < colorArr.length; j++) { if ((rows[i].cells[hdIndex].innerText).substring(rows[i].cells[hdIndex].innerText.length - 1, rows[i].cells[hdIndex].innerText.length) == "\n") chkKeyWord = (rows[i].cells[hdIndex].innerText).substring(0, rows[i].cells[hdIndex].innerText.length - 1); else chkKeyWord = rows[i].cells[hdIndex].innerText; if (chkKeyWord == (colorArr[j].split("="))[0].toString()) { rows[i].style.color = (colorArr[j].split("="))[1].toString(); //To color valid cells for (ctr = 0; ctr < rows[i].cells.length; ctr++) { if (rows[i].cells[ctr].className != "ms-crm-List-NonDataCell" && rows[i].cells[ctr].className == "ms-crm-List-DataCell inner-grid-cellPadding" && rows[i].cells[ctr].innerText != "" && rows[i].cells[ctr].children[0].children.length > 0) rows[i].cells[ctr].children[0].children[0].style.color = (colorArr[j].split("="))[1].toString(); } break; } chkKeyWord = ""; } }
The link I have shared works.
There is no supported way to achieve this. But you can use DOM manipulation and the better way is to create your own web resource with a table.
Thanks all.
This sounds exactly what I'm looking for, but the link is dead.
You can check following link as well
community.dynamics.com/.../adding-icons-and-tooltips-to-grid-column-in-dynamics-365
Mark answer as verified, if it works for you
I think you can color a column. Check this (use images for colors)
community.dynamics.com/.../adding-icons-and-tooltips-to-grid-column-in-dynamics-365
You can check below link
community.dynamics.com/.../188904
Mark answer as verified, if it works for you
Hi
There is no supported way to achieve this, yet.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156