NetTalk Central

Author Topic: Using XFiles in NTWS  (Read 4222 times)

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Using XFiles in NTWS
« on: January 12, 2012, 12:58:29 AM »
Hi,

After I have uploaded an XML-file to a folder, I would like to process the data in that file using XFiles.
  • Do I have to create a windows-window (non-display) to be able to use Xfiles.
  • When I call the procedure, do I have to use the start command?
  • Can I pass the p_web parameter when I use the START command?

Cheers,
Rene
Rene Simons
NT14.14

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11304
    • View Profile
Re: Using XFiles in NTWS
« Reply #1 on: January 12, 2012, 05:21:15 AM »
Hi Rene,

You don't need a window structure for xFiles - so you can just make a simple source procedure that does the work you want. You certainly can pass it the p_web parameter if you want to (it's just a parameter like any other.)

I wouldn't call it on a new thread, rather I'd do it at the end of the WebHandler, at any point after the reply to the browser has been sent.

ie
  p_web.replycomplete()
  myWhatever(p_web)

cheers
Bruce


Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Re: Using XFiles in NTWS
« Reply #2 on: January 24, 2012, 09:23:15 PM »
I seem to recall uploading an example of xFiles and NTWS in the examples forum. It was a long time ago, but worth a dig.
Mike Grigsby
Credify Systems
Central Oregon, USA