Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Script result not showing up in narrative view

1597007Apr 23 2015 — edited Apr 24 2015

I'm making a org chart as a narrative view.

If I do not tick "Contains HTML Markup" the result of the script is displayed. If I cut-n-past that content into a HTML file it display the result I'm looking for. However if I tick "Contains HTML Markup" the narrative view displays as empty.I have Attached two screenshots displaying this.

Any ideas what I'm not doing right? Have I forgotten some config to enable scripts in narrative view?

this is the script I'm using

Prefix:

<script type='text/javascript' src='https://www.google.com/jsapi'></script>

\<script type='text/javascript'>

if(document.URL.indexOf("saw.dll?Answers") == -1) {

  google.load('visualization', '1', {packages:\['orgchart'\]});

  google.setOnLoadCallback(drawOrgChart);

}

  function drawOrgChart() {

if(document.URL.indexOf("saw.dll?Answers") == -1) {

  var data = new google.visualization.DataTable();

    data.addColumn('string', 'Name');

    data.addColumn('string', 'Manager');

    data.addColumn('string', 'ToolTip');

    var myOrgArray=\[\];

    var tempStr = "";

Narrative:

myOrgArray.push(["@1","@3","@2"]);

Postfix

 data.addRows(myOrgArray);

    var chart = new google.visualization.OrgChart(document.getElementById('div\_orgchart'));

    chart.draw(data, {allowHtml:true});

}

  }

\</script>

\<div id='div\_orgchart'>\</div>

150423 - Narrative error 2.PNG150423 - Narrative error 1.PNG

This post has been answered by Christian Berg-0racle on Apr 23 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details