<?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: ODS to HTML with buttons for PDF and Excel without Requerying data in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-to-HTML-with-buttons-for-PDF-and-Excel-without-Requerying/m-p/293239#M16675</link>
    <description>Hi: This might be better posted in the Stored Process Forum.&lt;BR /&gt;cynthia</description>
    <pubDate>Mon, 22 Aug 2016 19:44:17 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2016-08-22T19:44:17Z</dc:date>
    <item>
      <title>ODS to HTML with buttons for PDF and Excel without Requerying data</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-to-HTML-with-buttons-for-PDF-and-Excel-without-Requerying/m-p/293220#M16674</link>
      <description>&lt;P&gt;I have a table I created from a stored process that outputs to html via ods. Attached to the html are two buttons (one for downloading the table as pdf and the other excel).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a way to query the data once and somehow save the pdf/excel output until the user clicks the pdf/excel button. My current solution is to query the data twice - once on page load to show the HTML table and again in a separate stored process when the user clicks the pdf/excel button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I want to generate the pdf and excel downloadable documents on initial page load but don't give them to the user until button click.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is some pseudo code using some jquery.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc sql;
    some query
quit;

ods html body=_webout ;

ods html text="&amp;lt;script&amp;gt;
					$('#printPDF').click(function(){
                                           Requery data in a separate stored process
					});

                                       $('#printExcel').click(function(){
                                           Requery data in a separate stored process
					});
				 &amp;lt;/script&amp;gt;
			&amp;lt;button id='printPDF'&amp;gt;Print PDF&amp;lt;/button&amp;gt;
	 		&amp;lt;button id='printExcel'&amp;gt;Print Excel&amp;lt;/button&amp;gt;";

/* output html table */
proc report 
	data=mydata;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2016 18:58:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-to-HTML-with-buttons-for-PDF-and-Excel-without-Requerying/m-p/293220#M16674</guid>
      <dc:creator>TedP</dc:creator>
      <dc:date>2016-08-22T18:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: ODS to HTML with buttons for PDF and Excel without Requerying data</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-to-HTML-with-buttons-for-PDF-and-Excel-without-Requerying/m-p/293239#M16675</link>
      <description>Hi: This might be better posted in the Stored Process Forum.&lt;BR /&gt;cynthia</description>
      <pubDate>Mon, 22 Aug 2016 19:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-to-HTML-with-buttons-for-PDF-and-Excel-without-Requerying/m-p/293239#M16675</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-08-22T19:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: ODS to HTML with buttons for PDF and Excel without Requerying data</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-to-HTML-with-buttons-for-PDF-and-Excel-without-Requerying/m-p/293744#M16685</link>
      <description>&lt;P&gt;Reposted here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Stored-Processes/ODS-to-HTML-with-buttons-for-PDF-and-Excel-without-Requerying/m-p/293735#M3602" target="_blank"&gt;https://communities.sas.com/t5/SAS-Stored-Processes/ODS-to-HTML-with-buttons-for-PDF-and-Excel-without-Requerying/m-p/293735#M3602&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 14:45:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-to-HTML-with-buttons-for-PDF-and-Excel-without-Requerying/m-p/293744#M16685</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2016-08-24T14:45:15Z</dc:date>
    </item>
  </channel>
</rss>

