Skip to Content

using javascript in report WebI SP4

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?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 06, 2018 at 12:46 PM

    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).

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 27, 2018 at 09:14 AM

    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

    Add comment
    10|10000 characters needed characters exceeded