NetTalk Central

Author Topic: Webform - no call to Routine:OpenFiles  (Read 12187 times)

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Webform - no call to Routine:OpenFiles
« 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

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Webform - no call to Routine:OpenFiles
« Reply #1 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Webform - no call to Routine:OpenFiles
« Reply #2 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

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Webform - no call to Routine:OpenFiles
« Reply #3 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.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Webform - no call to Routine:OpenFiles
« Reply #4 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