NetTalk Central

Author Topic: How errors are displayed in popups  (Read 1738 times)

Gordon Holfelder

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • Email
How errors are displayed in popups
« on: December 29, 2010, 07:08:12 PM »
Hello There-

I just upgraded to 5.09 / 7.2 and I thought that this had been working. An error, like a required field, should display the error alert and then leave the popup form open. This does not happen. Using Web31, choose Countries, press insert (new country) and press save. The popup closes and the error displays in the web page. Am I correct in that thi houldbe woking?

Thanks,
Gordon

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11181
    • View Profile
Re: How errors are displayed in popups
« Reply #1 on: December 29, 2010, 11:12:06 PM »
Confirmed as a bug Gordon - I'll get this fixed for the next build.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11181
    • View Profile
Re: How errors are displayed in popups
« Reply #2 on: December 29, 2010, 11:47:27 PM »
Hi Gordon,

ok, it's fixed for the next build.

There's a fairly straight-forward work-around you can use in the meantime.
Open
\clarion6\3rdparty\template\netweb.tpw
or \clarion7\accessories\template\win\netweb.tpw

search for a line (circa line number 2096) which is like this;

  ElsIf band(p_stage,NET:WEB:StageValidate) > 0 and p_web.RequestAjax = 1 and loc:popup

and change it to thisl

  ElsIf band(p_stage,NET:WEB:StageValidate) > 0 and band(p_stage,7) > 0 and p_web.RequestAjax = 1 and loc:popup

cheers
Bruce

Gordon Holfelder

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • Email
Re: How errors are displayed in popups
« Reply #3 on: December 30, 2010, 08:06:15 AM »
Hi Bruce-

Thanks! That worked like a champ.

Regards,
Gordon Holfelder