I am having the following problem. When a customer initally chooses to display our product, I want to pass an initialization parameter ("DEFAULT"
to an sp in SQL 7 to display the default settings. Once the customer makes some modifications using drop-down boxes, he clicks the update button and then when the form posts, the sp will be pass the modifications as one parameters and make the changes accordingly.
<CFSTOREDPROC procedure="CL_SystemConfiguration" datasource="builder">
<CFIF FORM.operation IS "Update">
<CFPROCPARAM type="In" cfsqltype="CF_SQL_VARCHAR" dbvarname="@CustomOptions" value="SelectOption" null="No">
<CFELSE>
<CFPROCPARAM type="In" cfsqltype="CF_SQL_VARCHAR" dbvarname="@CustomOptions" value="DEFAULT" null="No">
</CFIF>
<CFSTOREDPROC procedure="CL_SystemConfiguration" datasource="builder">
<CFIF FORM.operation IS "Update">
<CFPROCPARAM type="In" cfsqltype="CF_SQL_VARCHAR" dbvarname="@CustomOptions" value="SelectOption" null="No">
<CFELSE>
<CFPROCPARAM type="In" cfsqltype="CF_SQL_VARCHAR" dbvarname="@CustomOptions" value="DEFAULT" null="No">
</CFIF>