Quicklabel PowerForms Manual de usuario Pagina 15

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 47
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 14
- 15 -
For Every Record in a Table
Thepropertydefinesthetable.Allrecordsorallselectedrecordsfromthetablewillbeusedinthe
definedactions.
Table:Selectthenameofthetableyouwanttouse.
Use selected records only:Enablethisoptiontouseonlyselectedrecordsinthedefinedactions,
notallrecordsinthetable.
Note:Thedatabasetablemustalreadybedefinedontheform.
Condition:Thisisascriptingbooleanexpression.Onlytworesultsarepossible(TrueandFalse).
Usethisoptiontoenablecurrentactiononlywhensometermismet.Theactionwillbestartedonly
ifconditionreturnsTrueastheresultoftheexpression.
For Loop
Forloopmakesitpossiblefortheactiontobeexecutedacertainnumberoftimes.
Loop from:Selectastartingvaluefortheincrementedloop.
Loop to:Selectanendvaluefortheincrementedloop.
Note:
Iftheloopfromvalueishigherthanthelooptovalue,theloopwilldecrementthevalueregressively.
TheLoop fromandLoop tovaluescanbefixedorvariable,andthecurrentloopvaluecanalsobe
savedintoavariable.
Condition:Thisisascriptingbooleanexpression.Onlytworesultsarepossible(TrueandFalse).
Usethisoptiontoenablecurrentactiononlywhensometermismet.Theactionwillbestartedonly
ifconditionreturnsTrueastheresultoftheexpression.
Import Data Into Database
HereyoucandefinetheactionthatwilltakedatafromthetextdatafileandimportitintotheSQL
database.
Beforeyoucanusethisaction,youmustalreadycreateaconnectiontotheSQLdatabase.The
actiondoesnotworkwithfile-baseddatabases,likeMicrosoftAccess,ordatafileslikeMicrosoft
Excel,orplaintextfiles.Youmustuseserver-basedSQLdatabase,likeMicrosoftSQL.
Note: TheactionisonlyavailableforformsrunningontheWebplatform,notforformsrunningona
desktopplatform.
Rules:
l Thefirstlineinatextfilemustdefinefieldnames
l Thefieldnamesinthetextfilemustmatchfieldnamesinthedatabasetable
l Ifthetextfiledoesnotprovideavalueforsomefield,NULLwillbewrittentothedata-
base.IfthefielddoesnotacceptNULLvalues,thentheemptystring""willbewritten.
l Settingvaluesforauto-incrementalfieldsisignored.Thedatabasewillprovidevaluefor
suchfield,valueforsuchfieldfromthetextfileisignored,buttherestofthefieldsina
recordwillbewrittentothetable.
l Ifthevaluefromtextfiledoesnotmatchthestructureofthefield,theactioniscanceled
anderrormessagedisplayed.E.g.youwanttowritealphanumericalvalueintonumerical
field.
Vista de pagina 14
1 2 ... 10 11 12 13 14 15 16 17 18 19 20 ... 46 47

Comentarios a estos manuales

Sin comentarios