web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Display custom icons

(0) ShareShare
ReportReport
Posted on by 5

hi

What do I need to change in the code to fit my tables?

function displayIconTooltip(rowData, userLCID) {     
    var str = JSON.parse(rowData); 
    var coldata = str.opportunityratingcode_Value; 
    var imgName = ""; 
    var tooltip = ""; 
    switch (parseInt(coldata,10)) {
        case 1: 
            imgName = "new_hotlist_icon_red"; 
            switch (userLCID) { 
                case 1036: 
                    tooltip = "French: Opportunity is Hot"; 
                    break; 
                default: 
                    tooltip = "Opportunity is Hot"; 
                    break; 
            } 
            break; 
        case 2: 
            imgName = "new_Warm"; 
            switch (userLCID) { 
                case 1036: 
                    tooltip = "French: Opportunity is Warm"; 
                    break; 
                default: 
                    tooltip = "Opportunity is Warm"; 
                    break; 
            } 
            break; 
        case 3: 
            imgName = "new_Cold"; 
            switch (userLCID) { 
                case 1036: 
                    tooltip = "French: Opportunity is Cold"; 
                    break; 
                default: 
                    tooltip = "Opportunity is Cold"; 
                    break; 
            } 
            break; 
        default: 
            imgName = ""; 
            tooltip = ""; 
            break; 
    } 
    var resultarray = [imgName, tooltip]; 
    return resultarray; 

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 152 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 103

#3
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 74

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans