BookmarkSubscribeRSS Feed
tamorgan
Calcite | Level 5

Hello all, and thanks for your time!

 

 

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.

 

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. "<script...../script>" is literally shown on the screen).

 

How can we embed this basic Javascript into WRS's HTML output?

 

 

The best results we've had have been with:

proc odstext;
	p &JavascriptToOutputInScriptTags;
run;

Though we've tried a BUNCH of different methods.

 

 

Thank you for any help you can give!

 

SAS Version 9.4

Building with EG 7.15

Running on WRS 4.4 M3

1 REPLY 1
Madelyn_SAS
SAS Super FREQ

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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 735 views
  • 0 likes
  • 2 in conversation