Guida di FileMaker Server 12
Guida di FileMaker Server 12
Guida di FileMaker Server 12
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Programmazione delle operazioni <strong>di</strong> amministrazione Esecuzione <strong>di</strong> script lato server<br />
Creazione <strong>di</strong> attività <strong>di</strong> sequenza <strong>di</strong> script<br />
Nota Le seguenti informazioni sono destinate ad amministratori server e amministratori <strong>di</strong> gruppo.<br />
Creare un’operazione programmata <strong>di</strong> sequenza <strong>di</strong> script per eseguire uno script opzionale <strong>di</strong> preelaborazione<br />
a livello <strong>di</strong> sistema, dopo<strong>di</strong>ché eseguire uno Script <strong>di</strong> <strong>FileMaker</strong>, quin<strong>di</strong> eseguire uno<br />
script opzionale <strong>di</strong> post-elaborazione a livello <strong>di</strong> sistema.<br />
Una sequenza <strong>di</strong> script può eseguire la pre-elaborazione sui file importandoli prima nel database<br />
<strong>FileMaker</strong> Pro, eseguire uno Script <strong>di</strong> <strong>FileMaker</strong> per eseguire l’elaborazione sul database ed<br />
esportare i file e quin<strong>di</strong> eseguire la post-elaborazione sui file esportati. Ad esempio, creare una<br />
sequenza <strong>di</strong> script che innanzitutto esegue uno script <strong>di</strong> pre-elaborazione a livello <strong>di</strong> sistema che<br />
convalida e riformatta un file <strong>di</strong> testo esportato da un altro database. Successivamente, la sequenza<br />
<strong>di</strong> script esegue uno script <strong>di</strong> <strong>FileMaker</strong> che importa il file <strong>di</strong> testo, lo combina con i dati memorizzati<br />
in un database <strong>FileMaker</strong> Pro e genera resoconti personalizzati multipli in formato Excel. Infine, la<br />
sequenza <strong>di</strong> script esegue uno script <strong>di</strong> post-elaborazione a livello <strong>di</strong> sistema che crea un file zip dei<br />
resoconti e li invia in una cartella <strong>di</strong> download per utenti.<br />
Per la creazione <strong>di</strong> script a livello <strong>di</strong> sistema e script <strong>di</strong> <strong>FileMaker</strong> per una sequenza <strong>di</strong> script, tenere<br />
presente i seguenti punti:<br />
• Lo script <strong>di</strong> pre-elaborazione (se ne è specificato uno) deve restituire un valore <strong>di</strong> 0 (zero) in<br />
modo che la sequenza <strong>di</strong> script proceda allo script <strong>di</strong> <strong>FileMaker</strong>.<br />
• Lo script <strong>di</strong> <strong>FileMaker</strong> deve restituire un valore <strong>di</strong> 0 (zero) in modo che la sequenza <strong>di</strong> script<br />
proceda allo script <strong>di</strong> post-elaborazione (se ne è specificato uno).<br />
• Lo script <strong>di</strong> post-elaborazione (se ne è specificato uno) deve restituire un valore <strong>di</strong> 0 (zero)<br />
in modo che il programma venga completato.<br />
• È necessario includere tra gli script a livello <strong>di</strong> sistema il trattamento degli errori e la logica <strong>di</strong><br />
ramificazione. Assicurarsi che la sintassi dello script sia corretta e non <strong>di</strong>penda dai cicli<br />
infiniti o dalla <strong>di</strong>sponibilità <strong>di</strong> risorse esterne. È possibile selezionare Annulla programma<br />
se raggiunto limite tempo o arresto server nell’Assistente programmazione per<br />
interrompere il programma della sequenza <strong>di</strong> script se il tempo <strong>di</strong> esecuzione della<br />
sequenza <strong>di</strong> script supera il limite <strong>di</strong> tempo specificato o se il <strong>Server</strong> database si arresta.<br />
Vedere la sezione Aggiunta <strong>di</strong> opzioni <strong>di</strong> script. Se non si seleziona Annulla programma se<br />
raggiunto limite tempo o arresto server e se vi è uno script a livello <strong>di</strong> sistema sospeso,<br />
cercare nel file Event.log l’ID <strong>di</strong> processo dello script sospeso da terminare. Vedere la<br />
sezione Registro eventi.<br />
• Se si seleziona uno script <strong>di</strong> <strong>FileMaker</strong> e nessuno script <strong>di</strong> pre-elaborazione e postelaborazione,<br />
l’operazione programmata della sequenza <strong>di</strong> script è la stessa <strong>di</strong><br />
un’operazione programmata script <strong>di</strong> <strong>FileMaker</strong>.<br />
Per informazioni sulle istruzioni <strong>di</strong> script e sulle funzioni <strong>di</strong> <strong>FileMaker</strong> Pro, vedere la <strong>Guida</strong> <strong>di</strong><br />
<strong>FileMaker</strong> Pro.<br />
Nota Attivare le notifiche e-mail nell’operazione programmata della sequenza <strong>di</strong> script per ricevere<br />
un messaggio sulle con<strong>di</strong>zioni <strong>di</strong> errore o <strong>di</strong> avvertimento o la conferma <strong>di</strong> completamento del processo.<br />
Argomenti correlati<br />
Esecuzione <strong>di</strong> script <strong>di</strong> <strong>FileMaker</strong><br />
Esecuzione <strong>di</strong> file script a livello <strong>di</strong> sistema<br />
Creazione <strong>di</strong> programmi<br />
Programmazione delle operazioni <strong>di</strong> amministrazione<br />
GUIDA DI FILEMAKER SERVER <strong>12</strong> 140