cancel
Showing results for 
Search instead for 
Did you mean: 

using javascript in report WebI SP4

0 Kudos

am trying to use javascript on my report yet nothing seems to work

i tried making a cell (read as html) and putting in

<script type="text/javascript">alert("Hello injection!!!");</script>

yet it did nothing , i tried

<a href="#" onClick="javascript:myfunction();" title="" target="_blank" nav="web">Click</a>
<script>
function myfunction(){
   window.open('http://www.java2s.com/');
}
</script>

also i tried just

<a href="#" onClick="javascript:window.open('http://www.java2s.com/');" title="" target="_blank" nav="web">Click</a>

but it just opened the same report on a new chrome tab

i tried

<marquee direction=right onmouseover=this.stop(); onmouseout=this.start();>hello</marquee>

the text was just solid.

whats going on? how can i make javascript working?

Accepted Solutions (1)

Accepted Solutions (1)

denis_konovalov
Active Contributor

What version of the product are you using ?
In some it used to work, in some it was ruled as a possible security hole and requires a right/setting change to enable (don't recall which).

0 Kudos

well im using

SAP BusinessObjects BI Platform 4.2 Support Pack 4
Version: 14.2.4.2410

where can i find this setting?

0 Kudos

found it mate , thanks alot!!!

denis_konovalov
Active Contributor
0 Kudos

Oh, good - I don't recall where it was, just that it was raised as security problem and addressed via something 😉

Answers (1)

Answers (1)

former_member222510
Participant

Hi,

JavaScript along with some HTML elements is disabled by default in the most recent releases due to security reasons. For further details please see: 2473892 - JavaScript, HTML elements and hyperlinks will no longer work in Web Intelligence

Regards,
Bence