Customized picture

Reply
Highlighted
Yellow Belt

Customized picture

Is there a way to upload custimized picture and show different pictures based on data values?


Accepted Solutions
Black Belt

Re: Customized picture

This depends on what kind of card you are using.  You can use html coding in a table card.  This means you can use a case statement to bring in an image based on data values.

 

case when `Profit`<0 then

CONCAT('<div style="text-align:center"><img alt="DOWN" height="20px" src="http://www.clipartkid.com/images/27/download-public-domain-ihtHTQ-clipart.png">','</div>')

else

CONCAT('<div style="text-align:center"><img alt="UP" height="20px" src="http://www.clipartkid.com/images/239/up-arrow-green-clip-art-clip-arts-clip-art-clipartlogo-com-Cy8l...>')

end

 

the src=section would just need to be whatever image you were looking for


______________________________________________________________________________________________
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman
______________________________________________________________________________________________

All Replies
Black Belt

Re: Customized picture

This depends on what kind of card you are using.  You can use html coding in a table card.  This means you can use a case statement to bring in an image based on data values.

 

case when `Profit`<0 then

CONCAT('<div style="text-align:center"><img alt="DOWN" height="20px" src="http://www.clipartkid.com/images/27/download-public-domain-ihtHTQ-clipart.png">','</div>')

else

CONCAT('<div style="text-align:center"><img alt="UP" height="20px" src="http://www.clipartkid.com/images/239/up-arrow-green-clip-art-clip-arts-clip-art-clipartlogo-com-Cy8l...>')

end

 

the src=section would just need to be whatever image you were looking for


______________________________________________________________________________________________
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman
______________________________________________________________________________________________
Dojo Admin

Re: Customized picture

@user03079,

 

Please click on "Accept as Solution" on any reply that may have solved your problem.

Thanks!

Dani aka "Mr.Dojo"

Dojo Admin
**Say "Thanks" by clicking the "heart" in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"
**You can update your Dojo Community name and avatar by clicking on your avatar then the "My Profile" button.
Announcements
Check out these great solution videos! The new iSolveditWithDomoboard is live, share yours and earn higher rankings in Dojo click here!