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