dbTalk Databases Forums  

Send Event - works only sometimes

comp.databases.filemaker comp.databases.filemaker


Discuss Send Event - works only sometimes in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
GSP@DavClaServ
 
Posts: n/a

Default Send Event - works only sometimes - 07-16-2007 , 01:37 PM






I'm running FM 8.5 adv on WinXP Pro

I have two scripts that use the following steps;
The first one is ---

set variable [$file2open; value:Startup::FTPLocalLossNotices &"/" &
$file2get]
Send Event ["aevt"; "odoc" ; $file2open]
where Startup::FTPLocalLossNotices is the path to the existing file

--- and it works every time. The second one is ---

set variable [$file2open; value:Startup::FTPLocalForms &"/"&
Forms::FormFileName]
Send Event ["aevt"; "odoc" ; $file2open]
where Startup::FTPLocalForms also contains a valid path and
Forms::FormFileName is the name of the file. This script returns the error
"The file <filespec in the $file2open variable here> could not be found and
is required to complete this operation."

I have triple checked the filespec against the location of the file which
does in fact reside in the specified directory.

Does anyone else use the Send Event script step successfully? Is there
something I'm not aware of here?

Thanks in advance,
Steve



Reply With Quote
  #2  
Old   
Ursus
 
Posts: n/a

Default Re: Send Event - works only sometimes - 07-17-2007 , 04:37 AM







"GSP@DavClaServ" <info (AT) davclaserv (DOT) com> schreef in bericht
news:7f7c3$469bac7a$d1a8fa82$32175 (AT) EDELTACOM (DOT) COM...
Quote:
I'm running FM 8.5 adv on WinXP Pro

I have two scripts that use the following steps;
The first one is ---

set variable [$file2open; value:Startup::FTPLocalLossNotices &"/" &
$file2get]
Send Event ["aevt"; "odoc" ; $file2open]
where Startup::FTPLocalLossNotices is the path to the existing file

--- and it works every time. The second one is ---

set variable [$file2open; value:Startup::FTPLocalForms &"/"&
Forms::FormFileName]
I think here's the error. You refer to two TO's. Namely Startup:: and
Forms::. Either you are referring to them through a relationship and one (or
both) TO's is not valid. OR perhaps you are straight referring to a table
while not being inside that table at the time. In the first script you refer
to a variable that has been set previously.

I would start with checking that both Startup::FTPLocalForms and
Forms::FormFileName return the correct values. They might contain the
correct value, but do they return them to your script?

Further you might considder using the Open URL script step. which I mostly
use and which I find a bit more flexible because you can use straight fields
instead of variable referrals.

Keep well, Ursus




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.