
- 15 -
For Every Record in a Table
Thepropertydefinesthetable.Allrecordsorallselectedrecordsfromthetablewillbeusedinthe
definedactions.
Table:Selectthenameofthetableyouwanttouse.
Use selected records only:Enablethisoptiontouseonlyselectedrecordsinthedefinedactions,
notallrecordsinthetable.
Note:Thedatabasetablemustalreadybedefinedontheform.
Condition:Thisisascriptingbooleanexpression.Onlytworesultsarepossible(TrueandFalse).
Usethisoptiontoenablecurrentactiononlywhensometermismet.Theactionwillbestartedonly
ifconditionreturnsTrueastheresultoftheexpression.
For Loop
Forloopmakesitpossiblefortheactiontobeexecutedacertainnumberoftimes.
Loop from:Selectastartingvaluefortheincrementedloop.
Loop to:Selectanendvaluefortheincrementedloop.
Note:
Iftheloopfromvalueishigherthanthelooptovalue,theloopwilldecrementthevalueregressively.
TheLoop fromandLoop tovaluescanbefixedorvariable,andthecurrentloopvaluecanalsobe
savedintoavariable.
Condition:Thisisascriptingbooleanexpression.Onlytworesultsarepossible(TrueandFalse).
Usethisoptiontoenablecurrentactiononlywhensometermismet.Theactionwillbestartedonly
ifconditionreturnsTrueastheresultoftheexpression.
Import Data Into Database
HereyoucandefinetheactionthatwilltakedatafromthetextdatafileandimportitintotheSQL
database.
Beforeyoucanusethisaction,youmustalreadycreateaconnectiontotheSQLdatabase.The
actiondoesnotworkwithfile-baseddatabases,likeMicrosoftAccess,ordatafileslikeMicrosoft
Excel,orplaintextfiles.Youmustuseserver-basedSQLdatabase,likeMicrosoftSQL.
Note: TheactionisonlyavailableforformsrunningontheWebplatform,notforformsrunningona
desktopplatform.
Rules:
l Thefirstlineinatextfilemustdefinefieldnames
l Thefieldnamesinthetextfilemustmatchfieldnamesinthedatabasetable
l Ifthetextfiledoesnotprovideavalueforsomefield,NULLwillbewrittentothedata-
base.IfthefielddoesnotacceptNULLvalues,thentheemptystring""willbewritten.
l Settingvaluesforauto-incrementalfieldsisignored.Thedatabasewillprovidevaluefor
suchfield,valueforsuchfieldfromthetextfileisignored,buttherestofthefieldsina
recordwillbewrittentothetable.
l Ifthevaluefromtextfiledoesnotmatchthestructureofthefield,theactioniscanceled
anderrormessagedisplayed.E.g.youwanttowritealphanumericalvalueintonumerical
field.
Kommentare zu diesen Handbüchern