Hi
I am trying to show a icon in a subgrid/view with the following javascript, but it is not working?
function checkTest(rowData, userLCID) {
var str = JSON.parse(rowData);
var coldata = str.scheduledend_Value;
var imgName = "";
var tooltip = "";
if (coldata) {
var subjectText = Xrm.Page.getAttribute("subject").getValue();
var testdrive = subjectText.includes("testdrive");
var prøvekjøring = subjectText.includes("prøvekjøring");
if (prøvekjøring == true || testdrive == true) {
imgName = "mb_datePassed";
tooltip = "Forventet dato for signering er passert";
}
}
var resultarray = [imgName, tooltip];
return resultarray;
}
Any ideas what is wrong?
Thanks!
*This post is locked for comments