14.10.2013 Views

Guida di FileMaker Server 12

Guida di FileMaker Server 12

Guida di FileMaker Server 12

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Programmazione delle operazioni <strong>di</strong> amministrazione Esecuzione <strong>di</strong> script lato server<br />

Esecuzione <strong>di</strong> script <strong>di</strong> <strong>FileMaker</strong><br />

Nota Le seguenti informazioni sono destinate ad amministratori server e amministratori <strong>di</strong> gruppo.<br />

<strong>FileMaker</strong> <strong>Server</strong> può eseguire Script <strong>di</strong> <strong>FileMaker</strong> creati nei database ospitati. Creare<br />

un’operazione programmata Esegui script, specificare il database e l’account <strong>FileMaker</strong> da usare<br />

per eseguire lo script, scegliere uno script creato nel database e quando eseguire lo script. Gli script<br />

<strong>di</strong> <strong>FileMaker</strong> che vengono eseguiti su <strong>FileMaker</strong> <strong>Server</strong> possono eseguire operazioni semplici o<br />

complesse, come:<br />

• eseguire un ricalcolo dei campi in tutti i record<br />

• elaborare e memorizzare le nuove transazioni ogni sera<br />

• rimuovere i record duplicati prima <strong>di</strong> un backup programmato<br />

La funzione Gestisci script <strong>di</strong> <strong>FileMaker</strong> Pro (in precedenza ScriptMaker) consente <strong>di</strong> costruire script<br />

selezionandoli da un elenco <strong>di</strong> coman<strong>di</strong> <strong>FileMaker</strong> Pro, chiamati istruzioni <strong>di</strong> script, e specificando le<br />

opzioni. Per eseguire uno Script <strong>di</strong> <strong>FileMaker</strong> su <strong>FileMaker</strong> <strong>Server</strong>:<br />

• Lo script deve comprendere le istruzioni <strong>di</strong> script supportate in un programma <strong>FileMaker</strong> <strong>Server</strong>.<br />

• Lo script deve essere definito in un file <strong>di</strong> database ospitato su <strong>FileMaker</strong> <strong>Server</strong>. Vedere la<br />

sezione Hosting <strong>di</strong> database.<br />

Per informazioni sulla creazione <strong>di</strong> script <strong>FileMaker</strong> con istruzioni <strong>di</strong> script supportate in un<br />

programma <strong>FileMaker</strong> <strong>Server</strong>, vedere la <strong>Guida</strong> <strong>di</strong> <strong>FileMaker</strong> Pro.<br />

È anche possibile creare un’operazione programmata <strong>di</strong> sequenza <strong>di</strong> script che esegue script<br />

opzionali <strong>di</strong> pre-elaborazione e post-elaborazione a livello <strong>di</strong> sistema prima e dopo uno script <strong>di</strong><br />

<strong>FileMaker</strong>. Vedere la sezione Creazione <strong>di</strong> attività <strong>di</strong> sequenza <strong>di</strong> script.<br />

Note<br />

• È possibile selezionare Annulla programma se raggiunto limite tempo o arresto server<br />

nell’Assistente programmazione per interrompere il programma <strong>di</strong> script <strong>FileMaker</strong> se<br />

l’esecuzione dello script richiede più tempo rispetto al Limite <strong>di</strong> tempo specificato, o se il<br />

server database si arresta. Vedere la sezione Aggiunta <strong>di</strong> opzioni <strong>di</strong> script. Se non si<br />

seleziona Annulla programma se raggiunto limite tempo o arresto server e vi è uno<br />

script <strong>FileMaker</strong> sospeso, cercare nel file Event.log l’ID <strong>di</strong> processo dello script sospeso da<br />

terminare. Vedere la sezione Registro eventi.<br />

• Se gli script contengono istruzioni non supportate nella Pubblicazione Web, nella<br />

Pubblicazione Web personalizzata o in uno script programmato <strong>FileMaker</strong> <strong>Server</strong>, usare<br />

l’istruzione <strong>di</strong> script Consenti interruzione utente per determinare il trattamento delle<br />

istruzioni successive.<br />

• Se l’opzione dell’istruzione <strong>di</strong> script Consenti interruzione utente è attivata (On), le<br />

istruzioni <strong>di</strong> script non supportate interrompono l’esecuzione dello script.<br />

• Se l’opzione Consenti interruzione utente è <strong>di</strong>sattivata (Off), le istruzioni <strong>di</strong> script non<br />

supportate vengono saltate e l’esecuzione dello script continua.<br />

• Se questa istruzione <strong>di</strong> script non è inclusa, gli script vengono eseguiti come se la<br />

funzione fosse attivata, facendo in modo che le istruzioni <strong>di</strong> script non supportate<br />

interrompano gli script.<br />

Alcune istruzioni <strong>di</strong> script comprendono opzioni che vengono saltate, come l’opzione <strong>di</strong> mostrare<br />

una finestra <strong>di</strong> <strong>di</strong>alogo. Il file Event.log contiene informazioni dettagliate sugli errori o le istruzioni<br />

<strong>di</strong> script che vengono saltate quando <strong>FileMaker</strong> <strong>Server</strong> esegue script <strong>di</strong> <strong>FileMaker</strong>. Vedere la<br />

sezione Visualizzazione delle voci <strong>di</strong> registro.<br />

GUIDA DI FILEMAKER SERVER <strong>12</strong> 137

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!