<?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: Using Custom HTML Form In Stored Process in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Custom-HTML-Form-In-Stored-Process/m-p/208063#M15618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the suggestion.&amp;nbsp; I was missing the &amp;lt;tr&amp;gt;.&amp;nbsp; That seemed to get the %put &amp;amp;opt1; to work correctly.&lt;/P&gt;&lt;P&gt;I have been running this stored process in IE 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to build on the simple stored process and check to see if the checkboxes were checked of not.&amp;nbsp; I did some conditional if/then statements that if the variable did not equal 'x' then call it something else.&amp;nbsp; If it was checked, and did have a value of 'x', use it in the %put statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine when the box is checked, if the box is unchecked, I get the error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: green;"&gt;&lt;EM&gt;WARNING: Apparent symbolic reference Opt2 not resolved.&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: red;"&gt;&lt;STRONG&gt;ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required. The condition was: &amp;amp;Opt2 ^='x' &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: red;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I have tried putting the single quotes around the 'x' as well as trying to use %bquote, but I can't seem to perform a check to see if the check box was checked by the user or not.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2015 12:10:06 GMT</pubDate>
    <dc:creator>chris_lampron</dc:creator>
    <dc:date>2015-03-24T12:10:06Z</dc:date>
    <item>
      <title>Using Custom HTML Form In Stored Process</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Custom-HTML-Form-In-Stored-Process/m-p/208061#M15616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am building a stored process which begins with a custom HTML form where the user will select options with check boxes.&amp;nbsp; After the check boxes are selected, or not selected, the user will hit "Submit" and the program will continue onto another program called "TestingFile."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The HTML code for the check boxes is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;FORM ACTION="&amp;amp;_URL" method="post" enctype="multipart/form-data"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;INPUT TYPE="HIDDEN" NAME="_program" VALUE="/Shared Data/SAS Testing/TestingFile"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;INPUT TYPE="HIDDEN" NAME="submit" VALUE="submitted"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;td&amp;gt;&amp;lt;p class="new2"&amp;gt;&amp;lt;u&amp;gt;&amp;lt;i&amp;gt;Sample Selection:&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;td&amp;gt;&amp;lt;p class="portal"&amp;gt;Option1&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;td&amp;gt;&amp;lt;INPUT TYPE=CheckBox name="Opt1" Value="x"&amp;gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;td&amp;gt;&amp;lt;p class="portal"&amp;gt;Option2&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;td&amp;gt;&amp;lt;INPUT TYPE=CheckBox name="Opt2" Value="x"&amp;gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;td&amp;gt;&amp;lt;p class="portal"&amp;gt;Option3&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;td&amp;gt;&amp;lt;INPUT TYPE=CheckBox name="Opt3" Value="x"&amp;gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;td&amp;gt;&amp;lt;p class="portal"&amp;gt;Options4&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;td&amp;gt;&amp;lt;INPUT TYPE=CheckBox name="Opt4" Value="x"&amp;gt;&amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is have the selections made by the user carry over to the program being called when the user selects "Submit".&amp;nbsp; Do I need any other code to have the values of the options carried over, or will they carry over automatically?&amp;nbsp; In my TestingFile program, which is called after the HTML form, I try to display what the values of the options are (whether or not they selected the options) but I can't seem to get any results.&amp;nbsp; I tried to put the variables into a table and print the table, but the table comes out empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just wondering if what I am doing is correct or if I am missing any information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 16:02:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Custom-HTML-Form-In-Stored-Process/m-p/208061#M15616</guid>
      <dc:creator>chris_lampron</dc:creator>
      <dc:date>2015-03-23T16:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using Custom HTML Form In Stored Process</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Custom-HTML-Form-In-Stored-Process/m-p/208062#M15617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your HTML form is almost OK.&lt;/P&gt;&lt;P&gt;Don't forget the start of the tr tag&amp;nbsp; (&amp;lt;tr&amp;gt;), and to close the form (&amp;lt;/form&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First write a simple Stored Process:&lt;/P&gt;&lt;P&gt;%put &amp;amp;opt1.;&lt;/P&gt;&lt;P&gt;What do you see in the log? What URL do you see in the browser?&lt;/P&gt;&lt;P&gt;There are various ways to debug SPs. Look into the documentation of SP and Web Developers Guide.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 23:44:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Custom-HTML-Form-In-Stored-Process/m-p/208062#M15617</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-03-23T23:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using Custom HTML Form In Stored Process</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Custom-HTML-Form-In-Stored-Process/m-p/208063#M15618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the suggestion.&amp;nbsp; I was missing the &amp;lt;tr&amp;gt;.&amp;nbsp; That seemed to get the %put &amp;amp;opt1; to work correctly.&lt;/P&gt;&lt;P&gt;I have been running this stored process in IE 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to build on the simple stored process and check to see if the checkboxes were checked of not.&amp;nbsp; I did some conditional if/then statements that if the variable did not equal 'x' then call it something else.&amp;nbsp; If it was checked, and did have a value of 'x', use it in the %put statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine when the box is checked, if the box is unchecked, I get the error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: green;"&gt;&lt;EM&gt;WARNING: Apparent symbolic reference Opt2 not resolved.&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: red;"&gt;&lt;STRONG&gt;ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required. The condition was: &amp;amp;Opt2 ^='x' &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: red;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I have tried putting the single quotes around the 'x' as well as trying to use %bquote, but I can't seem to perform a check to see if the check box was checked by the user or not.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 12:10:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Custom-HTML-Form-In-Stored-Process/m-p/208063#M15618</guid>
      <dc:creator>chris_lampron</dc:creator>
      <dc:date>2015-03-24T12:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using Custom HTML Form In Stored Process</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Custom-HTML-Form-In-Stored-Process/m-p/208064#M15619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the box is not checked, the browser does not generate a name-value pair from it.&lt;/P&gt;&lt;P&gt;-&amp;gt; in the HTML request, there will be no "opt2=x".&lt;/P&gt;&lt;P&gt;-&amp;gt; the Stored Process will not receive this parameter, there will be no macro variable with this name. &lt;/P&gt;&lt;P&gt;link:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_form_checkbox" title="http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_form_checkbox"&gt;Tryit Editor v2.3&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To check for existence of a macro variable in SAS code:&lt;/P&gt;&lt;P&gt;%symexist(opt2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Also look at this link:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/14/861.html" style="font-size: 10pt; line-height: 1.5em;" title="http://support.sas.com/kb/14/861.html"&gt;14861 - Parameters are not available if the "*ProcessBody;" statement is missingwhen running a Stored Process using the Workspace Server&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 12:52:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-Custom-HTML-Form-In-Stored-Process/m-p/208064#M15619</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-03-24T12:52:43Z</dc:date>
    </item>
  </channel>
</rss>

