NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Johan van Zyl on April 26, 2013, 12:31:21 PM

Title: NT WS Update Form Errors
Post by: Johan van Zyl on April 26, 2013, 12:31:21 PM
Each and every Form causes these two errors

Unusual Type Conversion
Field not found _POPUPDONE
as in
p_web.setsessionvalue('showtab_UpdateCities',Loc:InvalidTab)
    If (p_stage = net:web:div or p_stage = Net:Web:NextTab or p_stage = NET:WEB:StageValidate + Net:InsertRecord  or p_stage = NET:WEB:StageValidate + Net:ChangeRecord) and p_web.RequestAjax = 1 and loc:alert <> '' and p_web._popUpDone = 0
      p_web.Popup(loc:alert,net:Send)
    End

The problem seems to be "and p_web._popUpDone = 0"

How do I get rid of it?
Title: Re: NT WS Update Form Errors
Post by: Johan van Zyl on April 27, 2013, 10:20:10 PM
 p_web.popUpDone = 0 works
 p_web._popUpDone = 0 does not

NT 6.52
Title: Re: NT WS Update Form Errors
Post by: Bruce on April 28, 2013, 10:47:13 PM
Hi Johan,

I'm not sure if you have a question or not.
According to the release notes, in 6.45 the _popupdone property was renamed to popupdone.
And as far as I can see all the references in the Templates and Classes refer to popupDone not _popupDone.

You don't mention which build you were upgrading from, and you don't mention if you are seeing this error in embed code, or generated code, but it sounds like maybe it's in generated code.

If so you might want to unregister and then re-register the template. It sounds like you're using the latest class, but perhaps with an old template.

cheers
Bruce

Title: Re: NT WS Update Form Errors
Post by: Johan van Zyl on April 28, 2013, 11:57:59 PM
It shows up in generated code - if I edit it there then it compiles fine - until the next proper re-compile!
Unregistered NetTalk and re-Registered - showed NT 6.31!
Unregistered NetTalk again and NetTalk wizards - reinstalled NT 6.52 - now shows NT 6.52 template registry - but I still get the same  _popupDone errors ?
Must I delete the whole lot - and re-install?
Delete the NetTalk folder in \accesory\Capesoft? What else?
Thx Bruce!
Title: Re: NT WS Update Form Errors
Post by: Bruce on April 29, 2013, 05:43:50 AM
what version of clarion are you using?
Title: Re: NT WS Update Form Errors
Post by: Johan van Zyl on April 29, 2013, 06:37:10 AM
Clarion 8. 9285
Title: Re: NT WS Update Form Errors
Post by: Bruce on April 29, 2013, 09:25:32 PM
ok,
from \clarion8\accessory\libsrc\win
delete net*.clw and net*.inc
also check in \clarion8\libsrc\win but there shouldn't be any there.

from\clarion8\accessory\template\win
delete nettalk.tpl and netweb*.tpw
also check in \clarion8\template\win but there shouldn't be anything there.

then re-install and re-register the template.

cheers
Bruce
Title: Re: NT WS Update Form Errors
Post by: Johan van Zyl on April 30, 2013, 12:59:58 AM
Resolved.
There were some files in \clarion8\template\win?
Thx Bruce