<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I embed custom Javascript from a Stored Process in WRS? in SAS Web Report Studio</title>
    <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-do-I-embed-custom-Javascript-from-a-Stored-Process-in-WRS/m-p/453989#M2451</link>
    <description>&lt;P&gt;SAS has adopted disciplined coding practices to minimize the vulnerability of SAS web applications to malicious attacks. One of these practices is to prohibit custom javascript from running in the applications. Although we have some customers who do write their own scripts, this functionality is not supported.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Apr 2018 17:32:07 GMT</pubDate>
    <dc:creator>Madelyn_SAS</dc:creator>
    <dc:date>2018-04-13T17:32:07Z</dc:date>
    <item>
      <title>How do I embed custom Javascript from a Stored Process in WRS?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-do-I-embed-custom-Javascript-from-a-Stored-Process-in-WRS/m-p/453987#M2450</link>
      <description>&lt;P&gt;Hello all, and thanks for your time!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are looking to be able to output custom Javascript with our reports, which could be scheduled and sent by email using the Distribute by HTML File process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can get our Javascript into an HTML result in EG in multiple ways, and it also works from the Stored Procedure we make of the EG project (running the Stored Procedure in EG). However, once we put the Stored Procedure into WRS and run from there, our Javascript is either nowhere to be found, or is included as raw text (i.e. "&amp;lt;script...../script&amp;gt;" is literally shown on the screen).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can we embed this basic Javascript into WRS's HTML output?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The best results we've had have been with:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc odstext;
	p &amp;amp;JavascriptToOutputInScriptTags;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Though we've tried a BUNCH of different methods.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help you can give!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS Version 9.4&lt;/P&gt;&lt;P&gt;Building with EG 7.15&lt;/P&gt;&lt;P&gt;Running on WRS&amp;nbsp;4.4 M3&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 17:29:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-do-I-embed-custom-Javascript-from-a-Stored-Process-in-WRS/m-p/453987#M2450</guid>
      <dc:creator>tamorgan</dc:creator>
      <dc:date>2018-04-13T17:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I embed custom Javascript from a Stored Process in WRS?</title>
      <link>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-do-I-embed-custom-Javascript-from-a-Stored-Process-in-WRS/m-p/453989#M2451</link>
      <description>&lt;P&gt;SAS has adopted disciplined coding practices to minimize the vulnerability of SAS web applications to malicious attacks. One of these practices is to prohibit custom javascript from running in the applications. Although we have some customers who do write their own scripts, this functionality is not supported.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 17:32:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Web-Report-Studio/How-do-I-embed-custom-Javascript-from-a-Stored-Process-in-WRS/m-p/453989#M2451</guid>
      <dc:creator>Madelyn_SAS</dc:creator>
      <dc:date>2018-04-13T17:32:07Z</dc:date>
    </item>
  </channel>
</rss>

