I've a Stored process web app which will ultimately run in the Info. Delivery Portal. It displays some streaming HTML into the browser then sends (diverts?) the streaming output to Excel (using the HTTP header functions.) The initial stored process does some data manipulation/selection and then displays a button (FORM/INPUT) which, when clicked, calls a second stored process to write the Excel stream.
Thanks for the reply. Yeah, I tried the window.close in the calling stored process and it did what you thought. (ie. closed the window before the stored process was called!) I am now trying as follows:
ods html body = _webout text="<a id=""Test"" onclick=""window.close();"">End</a>";
ods html close;
When I call this stored process in debug mode I get the excel output in HTML and see the link ok which works as expected. HOWEVER, in normal execution I get the streaming output into Excel but no browser is displayed at all.
Any additional suggestions gratefully received ....
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.