dbTalk Databases Forums  

Check if import source is ready

comp.databases.filemaker comp.databases.filemaker


Discuss Check if import source is ready in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Christoph Kaufmann
 
Posts: n/a

Default Check if import source is ready - 04-20-2011 , 06:12 AM






FMS 10 / FMP 10 on Windows: a scripts imports from an excel file which
is ready on the file system (shared folder).

I delete all records before I start the import. I regret that if the
import fails because a) the file isn't there or b) the user who started
the import can't access the the excel file.

The excel file I import from never changes its name. What's the most
elegant way to check whether it's there and the user can read it?

Import an refermce of the file into a global container field and then
check for errors?

--
http://clk.ch

Reply With Quote
  #2  
Old   
 
Posts: n/a

Default Re: Check if import source is ready - 04-20-2011 , 03:43 PM






I don't know about the most elegant way bit I use the following script
The import is for jpg's within a folder, but could be adapted for a single
file)

set errot capture [on]
import records [no dialog; File; include all enclosed; picture and movie;
import only reference; add; windows ansi]
if [ get ( lasterror ) â‰* 0
show custom dialog ["error";"No file in folder"]
exit scipt
end if
rest of script


Hou je goed / keep well,

Ursus

"Christoph Kaufmann" schreef in bericht
news:1k00sud.8f1qvbl1bej2N%clk (AT) tele2 (DOT) ch...

FMS 10 / FMP 10 on Windows: a scripts imports from an excel file which
is ready on the file system (shared folder).

I delete all records before I start the import. I regret that if the
import fails because a) the file isn't there or b) the user who started
the import can't access the the excel file.

The excel file I import from never changes its name. What's the most
elegant way to check whether it's there and the user can read it?

Import an refermce of the file into a global container field and then
check for errors?

--
http://clk.ch

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.