NetTalk Central

Author Topic: WebServer - deleting a related record  (Read 3689 times)

ShanePeterson

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • Email
WebServer - deleting a related record
« on: June 28, 2007, 09:34:37 AM »
I have a page in NetTalk's webserver that has 2 browses on it.  They have a one to many relationship on the database.  If I attempt to delete a record from the parent table when there are related child records, the filemanager error appears from the Web Server app instead of displaying an error in the web browser.

How do you stop file processing errors from appearing on the server and instead direct them to the web browser?

Thanks in advanced for any help.

Shane Peterson

John Hickey

  • Administrator
  • Newbie
  • *****
  • Posts: 47
    • View Profile
    • Email
Re: WebServer - deleting a related record
« Reply #1 on: June 28, 2007, 12:48:21 PM »
You could try "hooking" the message box so that it goes to your own WebPage procedure that would display the message (or log it or whatever).  If you have Capesoft's Message Box, you could adapt their Messagebox procedure, or it's not too hard to write your own.

PROP:MessageHook:  "A property of the SYSTEM built-in variable that sets the override procedure for the MESSAGE internal Clarion procedure. Equivalent to {PROP:LibHook,6}. Assign the ADDRESS of the overriding procedure, and the runtime library will call the overriding procedure instead of the MESSAGE procedure. Assign zero and the runtime library will once again call its internal procedure. The overriding procedure's prototype must be exactly the same as the MESSAGE procedure. (WRITE-ONLY)"