Jump to content
  • 0

Graphics In Calculated Field


Question

Datapage type:  Tabular report

Objective:  To show a red flag whenever two calculated fields did not produce the same results.

 

Question:

 

Is it possible to embed a graphic in calcualted field? I issued the following string that when checked for validity gives out a "valid" confirmation. I was very happy.

 

But then when I checked the embedded code on html, it gives "Error in formula". 

 

Below is the code:

 

CASE

    WHEN [@calcfield:3]=[@field:Grade] THEN ''
    
ELSE <img src="https://mysource.com/images/redflag.jpg">

END

 

 

 

All help is appreciated as usual.

 

Best,

Elena

 

 

 

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hello,

You can display the image via HTML Block. 

You may use this formula in the Calculated Field:

CASE

WHEN [@calcfield:3]=[@field:Grade] THEN ''
    
ELSE '<img src="https://mysource.com/images/redflag.jpg">'

END

Then, insert an HTML block and display the result of the calculated field. Render it as an HTML.

Screenshot_53_6.png

 

To hide the calculated value, please see this post:

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...