Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 16 Oracle Analytics Lounge
- 216 Oracle Analytics News
- 43 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 79 Oracle Analytics Trainings
- 15 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
show image in static text based on presentation variable

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!
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