NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Thys on September 22, 2016, 10:59:17 PM

Title: NetWebPage contaning a NetWebForm - how to get the action right
Post by: Thys on September 22, 2016, 10:59:17 PM
Hi,

It's been a while, totally rusty. I have a login form that calls a Change Password form when the logged-in user needs to change the password. I placed the ChangePassword form in a page, but I struggle to set the action (via p_stage or otherwise) so that the form will call ValidateInsert to validate entries. Any ideas how to let the form work when called from a page as if called from a browse?

Thys
Title: Re: NetWebPage contaning a NetWebForm - how to get the action right
Post by: Johan de Klerk on September 23, 2016, 01:48:30 AM
Hi Thys,

NetTalk WebServer - Frequently Asked Questions
http://www.capesoft.com/docs/NetTalk9/NetTalkWebFAQ.htm

W4 Calling Forms directly - not via a Browse
http://www.capesoft.com/docs/NetTalk9/NetTalkWebFAQ.htm#W4

Regards

Johan de Klerk
Title: Re: NetWebPage contaning a NetWebForm - how to get the action right
Post by: Thys on September 23, 2016, 01:57:12 AM
Thanks Johan.

One of the examples is "Calling a Memory Form" - which my ChangePassword form is. It says the action is always Change, which I assume will then call the ValidateChange routine when the save button is pressed. But it does not call the routine.

Thys
Title: Re: NetWebPage contaning a NetWebForm - how to get the action right
Post by: Bruce on September 25, 2016, 10:52:00 PM
It should Thys. Post an example if it's not working for you.

cheers
Bruce