Symptom
You need to use the Image Widget and you would like to change the images dynamically.
Resolution
Note: The images are added through URL, so they must be in the web with Public visualization, otherwise the Images will be blocked by CORS policy.
Step 1:
- First you must add the Image Widget to your canvas:
- You will need to upload a dummy image in order to add the widget
- You hide the dummy image using the following script on OnInitialization function: Image_1.setvisible(false);
Step 2:
- On this example we are using the selection of a dropdown and combining it with an IF statement for applying images according to the selection:
- The result will as following:
Keywords
Dynamic, Images, Image, Widget, script, analytic application, sac , KBA , LOD-ANA-AD , Analytics Designer , How To