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
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.
-------------------------------------------------------------------------
Four tips to remember when you contact SAS Technical Support
Tricks for SAS Visual Analytics Report Builders
SAS Visual Analytics Learning Center
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.