NetTalk Central

NetTalk E-Mail => E-Mail - Ask For Help => Topic started by: Niels Larsen on August 29, 2010, 04:33:40 AM

Title: Webform - no call to Routine:OpenFiles
Post by: Niels Larsen on August 29, 2010, 04:33:40 AM
Hi

I have this webform and want to do some stuff after files are opened. So I have placed my code at "Beginning of Procedure" --> "After opening Files"
But the Routine (OpenFiles) is never called??
Have i missed something??

Regards Niels
Title: Re: Webform - no call to Routine:OpenFiles
Post by: kevin plummer on August 29, 2010, 11:59:06 PM
Everything runs on multiple threads so you need to do your own file open/close.

You are probably better using one of the pre- (eg Pre-Insert) embeds so your code does not get called multiple times on different threads.

HTH's

Kev
Title: Re: Webform - no call to Routine:OpenFiles
Post by: Bruce on August 30, 2010, 07:55:55 AM
Hi Niels,

The answer to your very simple question is quite complicated, because the very nature of your question is wrong.
We'll cover a lot of this next week in Aarhus, so I think you'll probably know the answer after that in a lot more detail.

In the meantime tell us more about what exactly you're trying to do and we can point you in the right direction. the files are opened and closed many times during the life of the form, on different threads, so you need to be a lot more specific about the "stuff" you are doing, and exactly when you want it done.

cheers
Bruce
Title: Re: Webform - no call to Routine:OpenFiles
Post by: Niels Larsen on August 31, 2010, 12:24:32 AM
@Kev
Thanks - that's the way.

@Bruce
I can hardly wait to webshop in Aarhus. I will even stay the night in the classroom to get all the good stuff.
Title: Re: Webform - no call to Routine:OpenFiles
Post by: Bruce on August 31, 2010, 02:19:39 AM
Hi Niels,

I don't know what you European types are like - but in Australia we did the good stuff during the day  :D

Cheers
Bruce