cancel
Showing results for 
Search instead for 
Did you mean: 

Picture in Webtemplates accroding to technical query name

Adem_Baykal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Experts,

i got a question. I want to change the standard web template in BI7.0 in that way that on top i want to show a "dynamic" picture. The picture should change according to the beginning of the technical name of the query.

Example:

Q_SALES_xxxxxxxx -> Sales Picture

Q_LOGISTICS_xxxxxxxx > Logistic picture

The pictures should be loaded into Metadata repository.

If there is no picture available according the query, than a standard picture should be shown.

Sounds like JavaScript. What do you think?

Regards,

Adem

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Yes you can use JS to do this.

On the onload event of the body you can look for the query tech name and depending on the name the source (src) for the image tag can be assigned dynamically.

Thanks.

Adem_Baykal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Deepu,

thank you very much. So i need to implement coding in the JS Container.

I will try.

Regards,

Adem

Former Member
0 Kudos

Yes, you can write the code in a Script web item. Since you are usig 04s WAD if you call the function in the onload event of body the code generated by the system overwrites the code you put in onload.

You have to call it within the HTML section of the template like below towards the end of the template just before closing the body tag.

<SCRIPT> setHdrImage(); </SCRIPT>

Adem_Baykal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Deepu,

thank you very much. I will try. I think i can read out the settings from the web template like in 3.5! I will look into the web API documentation for BI7.0.

Best regards,

Adem

Answers (0)