<?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: Execute Stored Process on SAS VA report load in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Execute-Stored-Process-on-SAS-VA-report-load/m-p/260947#M3764</link>
    <description>&lt;P&gt;This sounds interesting ... could you share your code?&lt;/P&gt;</description>
    <pubDate>Sun, 03 Apr 2016 12:07:06 GMT</pubDate>
    <dc:creator>TriciaAanderud</dc:creator>
    <dc:date>2016-04-03T12:07:06Z</dc:date>
    <item>
      <title>Execute Stored Process on SAS VA report load</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Execute-Stored-Process-on-SAS-VA-report-load/m-p/255360#M3562</link>
      <description>&lt;P&gt;I'd like to execute a stored process immediately when a SAS VA report is first loaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current workaround is to simply have a stored process embedded in the VA report and making its container as small as possible, but it would be cleaner if the report was able to envoke the stored process upon load.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ted&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 20:51:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Execute-Stored-Process-on-SAS-VA-report-load/m-p/255360#M3562</guid>
      <dc:creator>TedP</dc:creator>
      <dc:date>2016-03-08T20:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Stored Process on SAS VA report load</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Execute-Stored-Process-on-SAS-VA-report-load/m-p/255384#M3563</link>
      <description>&lt;P&gt;I found an even better workaround. I put the stored process at the bottom of the SAS VA report and then used jquery to remove the element and had the original div it was contained in fill its parent height.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 22:17:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Execute-Stored-Process-on-SAS-VA-report-load/m-p/255384#M3563</guid>
      <dc:creator>TedP</dc:creator>
      <dc:date>2016-03-08T22:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Stored Process on SAS VA report load</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Execute-Stored-Process-on-SAS-VA-report-load/m-p/260947#M3764</link>
      <description>&lt;P&gt;This sounds interesting ... could you share your code?&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2016 12:07:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Execute-Stored-Process-on-SAS-VA-report-load/m-p/260947#M3764</guid>
      <dc:creator>TriciaAanderud</dc:creator>
      <dc:date>2016-04-03T12:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Stored Process on SAS VA report load</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Execute-Stored-Process-on-SAS-VA-report-load/m-p/261088#M3778</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;head&amp;gt;	    
	&amp;lt;script src="scripts/jquery.min.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;script&amp;gt; 
    $(document).ready(function(){
        var $stp_div=$(".stpFrame", window.parent.document)
				            .filter(function(){ return  $(this).children().length=== 0;}).parents().eq(1);
        var $stp_div_parent = $stp_div.next();
        $stp_div.hide();
        $stp_div_parent.css({"height":"100%"});
});
&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not a web developer by any means but this should work. I had to inspect the html to find the correct class name for the stored process frame. The tricky part was looking outside the current stored process frame with window.parent.document. After finding the element, just hide it, get the last element above it and fill the rest of the page with it.&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/How-to-link-to-static-javascript-css-files-on-web-server/m-p/258532#M3411" target="_self"&gt;This thread&amp;nbsp;&lt;/A&gt;&amp;nbsp;helped me put jquery in the right place on the server to have access to it.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 13:58:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Execute-Stored-Process-on-SAS-VA-report-load/m-p/261088#M3778</guid>
      <dc:creator>TedP</dc:creator>
      <dc:date>2016-04-04T13:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Execute Stored Process on SAS VA report load</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Execute-Stored-Process-on-SAS-VA-report-load/m-p/261091#M3780</link>
      <description>&lt;P&gt;I'll have to give it a try after SGF.&amp;nbsp; I've been playing with STPs in VA&amp;nbsp; ... testing the limits and seeing how to make things work better than expected.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 14:00:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Execute-Stored-Process-on-SAS-VA-report-load/m-p/261091#M3780</guid>
      <dc:creator>TriciaAanderud</dc:creator>
      <dc:date>2016-04-04T14:00:23Z</dc:date>
    </item>
  </channel>
</rss>

