Quicklabel PowerForms Manual do Utilizador Página 13

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 47
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 12
- 13 -
Define Printer Settings
Theactiondisplaysthedialogboxwithpropertiesoftheform'sselectedprinter.
Thiswaytheendusercanchangetheprinterpropertieslikeprintingspeed,darkness,andothercon-
trolsindependentlyfromthecurrentprintersettingsinthelabel,intheprinterdriverorprinterhard-
waresettings.Themodificationstheusermakesaretemporarilyandinfluencecurrentprintjobonly.
Themodificationsarenotsavedinthelabelorform.
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.
Execute Script
Thisactiondefinestheprogrammingscriptthatyoucanuseforadvanceddatamanipulationonthe
form.Thescriptingallowsyoutoimplementsomefeaturethatisnotbuilt-intheapplicationand
expandthepossibilitiesinyourforms.
Severalscriptinglanguagesaresupportedontheform,butonlyoneatatime.Tochoosebetween
scriptinglanguagesseetheoptionsinFile -> Form Properties -> Scripting.
Define Script:Typeinyourscriptinthetextarea.
Build Script:ClickonthisbuttontoopentheExpressionEditorthatwillhelpyouconstructyour
script.Thebuttonmightnotbeavailableforallscriptinglanguages.
Check Script:Clickonthisbuttontoverifythesyntaxofyouscript.Ifthereisasyntaxerrorinthe
yourscript,youwillbenotifiedaboutit.
Condition:Thisisascriptingbooleanexpression.Onlytworesultsarepossible(TrueandFalse).
UsethisoptiontoexecutethecurrentactionExecute scriptonlywhentheconditionisTrue.
Execute SQL Statement
HereyoucandefineacustomSQLstatementthatcanadd,modify,ordeletedatainthedatabase
table.
WhenrunningformsondesktopplatformyoucanusetheSQLcommandsSELECT,INSERT,
UPDATEandDELETE.WhenrunningformsonthewebplatformyoucanuseallSQLcommands.
ThisprocedureisconsideredadvancedandrequirespriorSQLprogrammingknowledge.
SQL Statement:TypeintheSQLcommandstoexecutewiththisaction.TOuseform'svariablesin
theSQLstatement,putacolon(:)infrontoftheirname.Iftheformvariableincludesaspace,
enclosethevariableinsquarebrackets[].
Forexample:Theuserworkswithhiscustomerdatabase.ThetableCustomersincludesafield
namedCustomer_ID.ThereisavariableIDdefinedinaform.TheuserentersthevalueforID
usinganeditfieldandwantstodeleteallcustomerinformationfortheenteredID.The
SQLstatementwilldeleteallrecordswherethevalueoftheCustomer_IDfieldisequaltothe
enteredIDnumber(Customer_ID = ID).
YoumustusethevariableIDinyourSQLstatement.InNiceLabelsoftwareyoucandoitbyinclud-
ingcoloncharacter(:)infrontofthevariablename,likethis:
DELETEFROMCustomersWHERECustomer_ID=:[ID]
TotestyourSQLstatement,clicktheExecutebutton.
TheresultofyourSQLstatementisrememberedinthevariableyouselectintheVariablesection.
Vista de página 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 ... 46 47

Comentários a estes Manuais

Sem comentários