NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: springguy on February 25, 2014, 07:29:56 AM
-
NT 7.31 C9.0
When a customer recently updated to use the NT 7.31 version of the web server app, a SetAlert message stopped appearing. I investigated and found this situation which doesn't make sense to me. The problem occurs in a NetForm with a Button and on the Client Side tab for the button, I've checked the Send New Value to Server.
The Server Side Code embed has this code:
if p_web.GSV('LOC:UserDepositDate') = 0
p_web.SetAlert('Error Message',1,'MakeDeposit')
Else
DepositContributions(p_web) !go process the deposit file
p_web.SetAlert('Deposit Recorded',1,'MakeDeposit')
End
In this code, if the LOC:UserDepositDate is 0, the Error Message is displayed. But, if the date exists, the DepositContributions procedure is run successfully, but the "Deposit Recorded" SetAlert does not appear, and the form's button is greyed out.
I have changed the code for debugging why the SetAlert doesn't display, and I substituted this code:
if p_web.GSV('LOC:UserDepositDate') = 0
p_web.SetAlert('Error Message',1,'MakeDeposit')
Else
p_web.SetAlert('Deposit Recorded',1,'MakeDeposit')
End
And, still, that "Deposit Recorded" message is not displayed. It's not the message itself, I have also simply duplicated the first "Error Message" into the "Else" and it still does not appear.
Any thoughts why a SetAlert will not appear, especially in light of the first one appearing OK (if no date).
Also, this worked back in 7.15 but now in 7.31 is not.
Mike Springer
-
Probably worth trying in 7.34 -if still broken there please post a small example app.
-
NT 7.35 C9.0
Bruce,
Upgraded, same problem - prepared example and it worked fine. Hmmm....
Discovered I had a SendPacket before the setalert that was causing the problem.
Resolved that and the setalert is working fine.
Thanks for your suggestion - building an example is a pain, but it often illustrates that there is some other problem.
Mike
-
Yes, building an example is a pain, but if you build it in one of the shipping xamples it's usually not too bad. It is always useful though, and often the fastest way to get the the cause. It gives you something to compare against (if it works) and it gives me something to compare against if it doesn't.
Seems like bug finding is always a bit of a pain. :)
Cheers
Bruce