Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Customize entity view

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi so i need to know why this is not working.It's running the alert but not applying the web-resource's.

function DatePrev(rowdata, userLCID)
{
    var DateNow = Date.now();
    var dataJSON = JSON.parse(rowdata);

    var DatePredictionString = dataJSON.new_previsao;
    var imgName = "";
    var tooltip = "";

    if (DatePredictionString != null || DatePredictionString != undefined)
    {
        var DatePrediction = Date.parse(DatePredictionString);

        if (DatePrediction > DateNow)
        {
            imgName = "new_warningDate";
        }
        else{
           alert("here");
imgName = "new_successdate"; } } var resultarray = [imgName,tooltip]; return resultarray; }


So i m reading this
    https://msdn.microsoft.com/en-us/library/gg328457.aspx#BKMK_EditColumns    ,i'm using read-only grid by default i set the web resource new_warning and sucess as jpeg and i set to the column the web-resource.BTW it's possible to apply css like color???

It's running but not applying the image.

*This post is locked for comments

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans