[Mydatabasepilot-cvs] MyDatabasePilot/dbProcessInit AddField.cfm,1.2,1.3
Status: Alpha
Brought to you by:
nanoface
From: <nan...@us...> - 2003-06-11 03:05:09
|
Update of /cvsroot/mydatabasepilot/MyDatabasePilot/dbProcessInit In directory sc8-pr-cvs1:/tmp/cvs-serv22513/dbProcessInit Modified Files: AddField.cfm Log Message: Internal Structure Changed: [ 752338 ] Moved Set Default Values from : dbProcessBody/AddField.cfm to : dbProcessInit/AddField.cfm Index: AddField.cfm =================================================================== RCS file: /cvsroot/mydatabasepilot/MyDatabasePilot/dbProcessInit/AddField.cfm,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AddField.cfm 5 Jun 2003 04:08:50 -0000 1.2 --- AddField.cfm 11 Jun 2003 03:05:05 -0000 1.3 *************** *** 1,43 **** ! <!---******************************************************************************************* ! * Copyright: MyDatabase Pilot is distributed under the terms of the GNU GPL license * ! * Template: dbProcessInit/AddField.cfm * ! * Purpose: Initialize AddField Database Process * ! ********************************************************************************************---> ! ! <!--- Initiate a Read Only lock to ensure the integrity of session variables ---> ! <cflock timeout=20 throwontimeout="no" type="readonly" scope="SESSION"> ! <!--- Get List of Field Names and Their Properties ---> ! <cfmodule template="../Query/fieldList.cfm" ! queryName="fieldList" ! datasource="#SESSION.dataSource#" ! username="#SESSION.userName#" ! password="#SESSION.password#" ! table="#URL.table#"> ! ! <!--- Create alterSpec array or structures ---> ! ! <!--- If execution of Alter Table was requested by the form ... ---> ! <cfif IsDefined("FORM.ExecuteAlterTable")> ! <!--- Get Generated SQL and execute it ---> ! <cfmodule template="../Query/alterTable.cfm" ! datasource="#SESSION.dataSource#" ! username="#SESSION.userName#" ! password="#SESSION.password#" ! table="#URL.table#" ! execute="TRUE" ! sqlOutputType="BOTH" ! rawOutput="rawOutput" ! htmlOutput="htmlOutput"> ! </cfmodule> ! <!--- Otherwise ... ---> ! <cfelse> ! <!--- Get Generated SQL, but do not execute it ---> ! <cfmodule template="../Query/alterTable.cfm" ! table="#URL.table#" ! execute="FALSE" ! sqlOutputType="BOTH" ! rawOutput="rawOutput" ! htmlOutput="htmlOutput"> ! </cfmodule> ! </cfif> </cflock> --- 1,52 ---- ! <!---******************************************************************************************* ! * Copyright: MyDatabase Pilot is distributed under the terms of the GNU GPL license * ! * Template: dbProcessInit/AddField.cfm * ! * Purpose: Initialize AddField Database Process * ! ********************************************************************************************---> ! ! <!---||| Set Default Values |||---> ! <cfparam name="FORM.numberOfFields" default="1" /> ! <cfparam name="FORM.locationOfFields" default="End" /> ! ! <!--- Initiate a Read Only lock to ensure the integrity of session variables ---> ! <cflock timeout=20 throwontimeout="no" type="readonly" scope="SESSION"> ! <!---||| Get List of Field Names and Their Properties |||---> ! <cfmodule template="../Query/fieldList.cfm" ! queryName="fieldList" ! datasource="#SESSION.dataSource#" ! username="#SESSION.userName#" ! password="#SESSION.password#" ! table="#URL.table#"> ! ! <!---||| Create alterSpec Definition |||---> ! <!--- Create alterSpec one dimensional array ---> ! <cfset alterSpec=ArrayNew(1)> ! ! <!--- Loop over FORM ---> ! ! ! <!---||| If execution of Alter Table was requested by the form ... |||---> ! <cfif IsDefined("FORM.ExecuteAlterTable")> ! <!--- Get Generated SQL and execute it ---> ! <cfmodule template="../Query/alterTable.cfm" ! datasource="#SESSION.dataSource#" ! username="#SESSION.userName#" ! password="#SESSION.password#" ! table="#URL.table#" ! execute="TRUE" ! sqlOutputType="BOTH" ! rawOutput="rawOutput" ! htmlOutput="htmlOutput"> ! </cfmodule> ! <!--- Otherwise ... ---> ! <cfelse> ! <!--- Get Generated SQL, but do not execute it ---> ! <cfmodule template="../Query/alterTable.cfm" ! table="#URL.table#" ! execute="FALSE" ! sqlOutputType="BOTH" ! rawOutput="rawOutput" ! htmlOutput="htmlOutput"> ! </cfmodule> ! </cfif> </cflock> |