done event - WeOnlyDo Discussion board

done event (wodFtpDLX / wodFtpDLX.NET)

by scot e styer, Monday, June 23, 2014, 19:59 (3586 days ago)

I'm trying to send a files to an ftp site
once the file is there
I want to update the transactions, in that file... to a "sent" status.
and, then... print a report, based upon what was sent.

now... I'm having to try and do this, in a Done Event.
I need this to work in order... instead of all at once.

I know the done event will fire, when it finishes putting a file to the ftp
site.. or, when the connection is established
Is there anything else, that may cause the done event to fire?

I'm trying to create some kind of order, in the operation
by having a variable, in the event... that increments with each step
I know this is probably a odd way of doing this... but, I couldn't think of
anything else
sometimes... it's hitting the report, before it seems to have updated the records
any ideas?

something like this

if p_state = 1 then
putfile
p_state = 5
end

if p_state = 5
update the records to sent
commit
retrieve and print report
p_state = 7
disconnect
end if

if p_state = 7
message
p_state = 9
return
end


Complete thread:

 

  • done event - scot e styer, 2014-06-23, 19:59 [*]