Categories
Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture
show image in static text based on presentation variable

dhaesejan
Rank 1 - Community Starter
Hi,
We are on OAS and I'm trying to show an image in a static text within a report, based on a presentation variable.
My presentation variable can be Jim or Kim (or null).
So what I want is this:
case
when '@{presvar}' = 'Jim'
then <img src="/analyticsRes/customImages/exampleJim.jpg"
when '@{presvar}' = 'Kim'
then <img src="/analyticsRes/customImages/exampleKim.jpg"
end
How can I write this in html?
Thanks for the help!
0
Answers
-
You can't, HTML doesn't have conditional logic, it isn't a scripting language.
You either have to find another way, or use JS for the job.
0 -
yes, I know that I'll need to combine js and html.
I've found this article about syntax switch, but i can't seem to figure it out for my requirement
0