Skip to main content
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Lisa_Gapp
Contributor II
Contributor II

NPrinting HTML - Conditional coloring icon based on cell value

 

Hi together

Is it possible to colour Icon's based of a value in another field? 

I'm working on the embedded HTML report.  In my example i want to colour my icons based on the value of an other field either red or black.

Attached u see my script (NPrinting_html_script.png) and the result (NPrinting_html_display.png) .May someone can help? 

Best regards, Lisa

Labels (2)
2 Solutions

Accepted Solutions
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

I always do it this way:

https://community.qlik.com/t5/Qlik-NPrinting-Discussions/HTML-table-styling-does-not-work-with-with-...

I am not sure if the syntax you propose is supported by email clients 

cheers

 

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.

View solution in original post

Lisa_Gapp
Contributor II
Contributor II
Author

Hi Lech, 

thank you - I haven't found this community post, when I was searching for a solution. 

It worked perfectly. 

BR Lisa

View solution in original post

2 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

I always do it this way:

https://community.qlik.com/t5/Qlik-NPrinting-Discussions/HTML-table-styling-does-not-work-with-with-...

I am not sure if the syntax you propose is supported by email clients 

cheers

 

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
Lisa_Gapp
Contributor II
Contributor II
Author

Hi Lech, 

thank you - I haven't found this community post, when I was searching for a solution. 

It worked perfectly. 

BR Lisa