<?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: Manipulating the default Execution options page in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Manipulating-the-default-Execution-options-page/m-p/18740#M2429</link>
    <description>Have a look at the support page: &lt;A href="http://support.sas.com/rnd/itech/doc9/dev_guide/stprocess/stpwebapp.html" target="_blank"&gt;http://support.sas.com/rnd/itech/doc9/dev_guide/stprocess/stpwebapp.html&lt;/A&gt;&lt;BR /&gt;
Unfortunately the "Open in new window" option is one of three that can not be suppressed.</description>
    <pubDate>Wed, 15 Apr 2009 06:46:28 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2009-04-15T06:46:28Z</dc:date>
    <item>
      <title>Manipulating the default Execution options page</title>
      <link>https://communities.sas.com/t5/Developers/Manipulating-the-default-Execution-options-page/m-p/18739#M2428</link>
      <description>A quick question, is there a way to automatically manipulate the execution options page so as to change the default setup from YES to NO, in order to displaying result in the same window rather than in a new window when running SAS Stored Processes?  I appreciate it very much for the help!&lt;BR /&gt;
&lt;BR /&gt;
Tan Yuanbin</description>
      <pubDate>Wed, 15 Apr 2009 05:13:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Manipulating-the-default-Execution-options-page/m-p/18739#M2428</guid>
      <dc:creator>tanyuanbin</dc:creator>
      <dc:date>2009-04-15T05:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating the default Execution options page</title>
      <link>https://communities.sas.com/t5/Developers/Manipulating-the-default-Execution-options-page/m-p/18740#M2429</link>
      <description>Have a look at the support page: &lt;A href="http://support.sas.com/rnd/itech/doc9/dev_guide/stprocess/stpwebapp.html" target="_blank"&gt;http://support.sas.com/rnd/itech/doc9/dev_guide/stprocess/stpwebapp.html&lt;/A&gt;&lt;BR /&gt;
Unfortunately the "Open in new window" option is one of three that can not be suppressed.</description>
      <pubDate>Wed, 15 Apr 2009 06:46:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Manipulating-the-default-Execution-options-page/m-p/18740#M2429</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2009-04-15T06:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating the default Execution options page</title>
      <link>https://communities.sas.com/t5/Developers/Manipulating-the-default-Execution-options-page/m-p/18741#M2430</link>
      <description>You can change this behavior, but it involves replacing one of the JavaScript files that we ship.  See the comments within the code to set the features you desire.  In your case, you will need to set the value of the variable &lt;SPAN style="font-family:monospace,Courier New;"&gt;SAS_ResultsNewWindow&lt;/SPAN&gt; to &lt;SPAN style="font-family:monospace,Courier New;"&gt;false&lt;/SPAN&gt;.  Note that this change will affect all stored processes.&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;SPAN style="font-weight:bold; color:red;"&gt;&lt;BR /&gt;
DISCLAIMER: This code has not been fully tested; use it at your own risk.&lt;BR /&gt;
&lt;/SPAN&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
Below are the steps.  Step 2 is specific to the Tomcat Application Server, and you will need to adjust the path if you are using a different Java Application Server.  The rest of the steps are the same, regardless of the application server.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;OL&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;LI&gt;Stop your Java Application Server.&lt;BR /&gt;
&lt;/LI&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;LI&gt;Navigate to&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
&lt;SPAN style="font-family:monospace,Courier New;"&gt;&lt;BR /&gt;
&lt;I&gt;&amp;lt;Tomcat-install-directory&amp;gt;&lt;/I&gt;\webapps\SASStoredProcess\scripts\&lt;BR /&gt;
&lt;/SPAN&gt;&lt;BR /&gt;
&lt;/LI&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;LI&gt;Rename the file&lt;BR /&gt;
&lt;SPAN style="font-family:monospace,Courier New;"&gt;&lt;BR /&gt;
dynamicPP_navigate.js&lt;/SPAN&gt;&lt;BR /&gt;
to &lt;BR /&gt;
&lt;SPAN style="font-family:monospace,Courier New;"&gt;&lt;BR /&gt;
dynamicPP_navigate.js.ORI&lt;BR /&gt;
&lt;/SPAN&gt;&lt;BR /&gt;
&lt;/LI&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;LI&gt;Create a new file named&lt;BR /&gt;
&lt;SPAN style="font-family:monospace,Courier New;"&gt;&lt;BR /&gt;
dynamicPP_navigate.js&lt;/SPAN&gt;&lt;BR /&gt;
and open it using a text editor.&lt;BR /&gt;
&lt;/LI&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;LI&gt;Copy and paste the code below into the file&lt;BR /&gt;
&lt;SPAN style="font-family:monospace,Courier New;"&gt;&lt;BR /&gt;
dynamicPP_navigate.js&lt;/SPAN&gt;&lt;BR /&gt;
and save the file.  In the code below, &lt;BR /&gt;
&lt;SPAN style="font-family:monospace,Courier New; font-weight:bold; color:red"&gt;&lt;BR /&gt;
Red&lt;/SPAN&gt;&lt;BR /&gt;
indicates new code and&lt;BR /&gt;
&lt;SPAN style="font-family:monospace,Courier New; font-weight:bold; color:blue"&gt;&lt;BR /&gt;
blue&lt;/SPAN&gt;&lt;BR /&gt;
indicates changed code, with the changes &lt;BR /&gt;
&lt;SPAN style="font-family:monospace,Courier New; font-weight:bold; color:blue; background:yellow;"&gt;&lt;BR /&gt;
highlighted in yellow.&lt;BR /&gt;
&lt;/SPAN&gt;&lt;BR /&gt;
&lt;/LI&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;LI&gt;Set the values of the variables&lt;BR /&gt;
&lt;SPAN style="font-family:monospace,Courier New;"&gt;&lt;BR /&gt;
SAS_HideExecutionOptions, SAS_HTTPMethod,&lt;/SPAN&gt;&lt;BR /&gt;
and&lt;BR /&gt;
&lt;SPAN style="font-family:monospace,Courier New;"&gt;&lt;BR /&gt;
SAS_ResultsNewWindow&lt;/SPAN&gt;&lt;BR /&gt;
to suit your needs.&lt;BR /&gt;
&lt;/LI&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;LI&gt;Restart your Java Application Server and execute a stored process to confirm the desired behavior.&lt;BR /&gt;
&lt;/LI&gt;&lt;BR /&gt;
&lt;/OL&gt;&lt;BR /&gt;
&lt;BR /&gt;
For important information regarding execution options in SAS 9.2, see:&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
&lt;I&gt;&lt;BR /&gt;
Usage Note 35063: Stored process execution options are no longer included in SAS&lt;SUP&gt;®&lt;/SUP&gt; 9.2 by default&lt;BR /&gt;
&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/35/063.html" target="_blank"&gt;&lt;BR /&gt;
http://support.sas.com/kb/35/063.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;
Vince DelGobbo&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;
SAS R&amp;amp;D&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
&lt;SPAN style="font-weight:bold; color:red"&gt;&lt;BR /&gt;
//  Set SAS_HideExecutionOptions to true to hide the Execution Options, or false to show them&lt;BR /&gt;
&lt;BR /&gt;
var SAS_HideExecutionOptions=false;&lt;BR /&gt;
&lt;BR /&gt;
//  Set SAS_HTTPMethod to GET to change the HTTP method from default value of POST to GET&lt;BR /&gt;
&lt;BR /&gt;
var SAS_HTTPMethod="post";&lt;BR /&gt;
&lt;BR /&gt;
//  Set SAS_ResultsNewWindow to false to change force SAS output to be opened in the same window&lt;BR /&gt;
&lt;BR /&gt;
var SAS_ResultsNewWindow=true;&lt;BR /&gt;
&lt;/SPAN&gt;&lt;BR /&gt;
&lt;BR /&gt;
//  Highlight selected menu item and display the corresponding content&lt;BR /&gt;
function showContent(menuItemName, menuAnchorName, contentElementName) {&lt;BR /&gt;
/* Copyright(c) 2003-2004 by SAS Institute Inc., Cary, NC USA    All rights reserved. */&lt;BR /&gt;
&lt;SPAN style="font-weight:bold; color:blue"&gt;&lt;BR /&gt;
  var &lt;SPAN style="background:yellow;"&gt;anchors,&lt;/SPAN&gt; contentElement, contentWindow, &lt;SPAN style="background:yellow;"&gt;i, size,&lt;/SPAN&gt; menuElement;&lt;BR /&gt;
&lt;/SPAN&gt;&lt;BR /&gt;
  // selectedLeftMenuItem, visibleContentElementName and menuAnchorElement are global&lt;BR /&gt;
&lt;SPAN style="font-weight:bold; color:red"&gt;&lt;BR /&gt;
  if (SAS_HideExecutionOptions == true) {&lt;BR /&gt;
&lt;BR /&gt;
    anchors = document.getElementsByTagName("a");&lt;BR /&gt;
    size    = anchors.length;&lt;BR /&gt;
&lt;BR /&gt;
    for (i = 0; i &amp;lt; size; i++) {&lt;BR /&gt;
      href = anchors[i].href;&lt;BR /&gt;
      if (href.indexOf("AdvancedServerOptions") &amp;gt;= 0) {&lt;BR /&gt;
        anchors[i].style.display="none";&lt;BR /&gt;
      }&lt;BR /&gt;
    }&lt;BR /&gt;
&lt;BR /&gt;
    if (visibleContentElementName == "AdvancedServerOptions")&lt;BR /&gt;
      return;&lt;BR /&gt;
  }&lt;BR /&gt;
&lt;BR /&gt;
  //  Set the HTTP method on the Execution Options panel if GET is requested&lt;BR /&gt;
  &lt;BR /&gt;
  if (SAS_HTTPMethod.toLowerCase() == "get") {&lt;BR /&gt;
    document._advancedOptions.httpmethod[0].checked = true;&lt;BR /&gt;
    document._advancedOptions.httpmethod[1].checked = false;&lt;BR /&gt;
  } &lt;BR /&gt;
&lt;BR /&gt;
  //  Set the "Display results in new window" option on the Execution Options panel to "No" if requested&lt;BR /&gt;
  &lt;BR /&gt;
  if (SAS_ResultsNewWindow == false) {&lt;BR /&gt;
    document._advancedOptions.resNewWindow[0].checked = false;&lt;BR /&gt;
    document._advancedOptions.resNewWindow[1].checked = true;&lt;BR /&gt;
  }&lt;BR /&gt;
&lt;/SPAN&gt;&lt;BR /&gt;
  menuAnchorElement = document.getElementById(menuAnchorName);&lt;BR /&gt;
&lt;BR /&gt;
  //  Hide the currently visible element&lt;BR /&gt;
  contentElement = document.getElementById(visibleContentElementName);&lt;BR /&gt;
  contentElement.style.display = "none";&lt;BR /&gt;
&lt;BR /&gt;
  //  Show the desired element&lt;BR /&gt;
  contentElement = document.getElementById(contentElementName);&lt;BR /&gt;
  contentElement.style.display = "";&lt;BR /&gt;
&lt;BR /&gt;
  menuElement = document.getElementById(menuItemName);&lt;BR /&gt;
&lt;BR /&gt;
  //  Deselect previously selected menu item, if any&lt;BR /&gt;
  if (selectedLeftMenuItem != null)&lt;BR /&gt;
    selectedLeftMenuItem.className="portalTabVert";&lt;BR /&gt;
&lt;BR /&gt;
  //  Select the clicked on menu item&lt;BR /&gt;
  menuElement.className="portalActiveTabVert";&lt;BR /&gt;
  selectedLeftMenuItem = menuElement;&lt;BR /&gt;
&lt;BR /&gt;
  visibleContentElementName = contentElementName;&lt;BR /&gt;
  &lt;BR /&gt;
  window.setTimeout("menuAnchorElement.focus();", 200);&lt;BR /&gt;
&lt;BR /&gt;
}&lt;BR /&gt;
[/pre]</description>
      <pubDate>Wed, 15 Apr 2009 19:05:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Manipulating-the-default-Execution-options-page/m-p/18741#M2430</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2009-04-15T19:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating the default Execution options page</title>
      <link>https://communities.sas.com/t5/Developers/Manipulating-the-default-Execution-options-page/m-p/18742#M2431</link>
      <description>Cool! Tested, no problem so far. Thank you all very much!</description>
      <pubDate>Fri, 17 Apr 2009 09:16:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Manipulating-the-default-Execution-options-page/m-p/18742#M2431</guid>
      <dc:creator>tanyuanbin</dc:creator>
      <dc:date>2009-04-17T09:16:54Z</dc:date>
    </item>
  </channel>
</rss>

