NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: springguy on August 19, 2013, 10:02:59 AM

Title: What is the NT7 format for SetAlert?
Post by: springguy on August 19, 2013, 10:02:59 AM
Converting from NT 6 to NT 7.20 and an getting "No Matching Prototype" errors on my SetAlert embed code. 

My code is:
p_web.SetAlert('My Message Goes Here')

I see in doc history that SetAlert has been "refactored" in NT7 around version 12, but I don't find a description of what the format for the refactored SetAlert is.

Can you fill me in on the format?
Thanks,
Mike Springer
Title: Re: What is the NT7 format for SetAlert?
Post by: Rob Kolanko on August 19, 2013, 10:32:48 AM
For me, just adding text to the loc:alert field will display the text in a popup. If you are validating a record, place the name of the field in the loc:invalid field to highlight the field and prevent accepting the edit for the record.
I hope this helps.
Rob Kolanko
Title: Re: What is the NT7 format for SetAlert?
Post by: Bruce on August 19, 2013, 08:56:03 PM
Mike,

The classes are declared in
C:\Clarion9\accessory\libsrc\win\NetWeb.inc
So whenever there's a prototype change that you need to know more about you can just look in there. Searching for Setalert reveals;

SetAlert               Procedure(String pMessage,Long pWhere=1,String pProcedure),Virtual

So your code becomes

p_web.SetAlert('My Message Goes Here',1,'SomeProcedureName')

Cheers
Bruce