NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: terryd on January 06, 2011, 03:34:53 AM

Title: Server side code not firing in non-popup lookup when using button
Post by: terryd on January 06, 2011, 03:34:53 AM
NT509 Clarion 6.3 build 9056 Windows XP SP2
If I have a lookup and use the lookup button to select a record Server Side code embedded in the entry
field is not firing. If I enter the lookup value directly into the entry field then the server side code fires. Is there a workaround or what am I doing wrong?

From my tests on Accounts (web31) this doesn't seem to be an issue with popup lookups.
Title: Re: Server side code not firing in non-popup lookup when using button
Post by: Bruce on January 07, 2011, 04:17:25 AM
if you set example 31 to non-popup mode (webserver _global_ extension)
do you get the same effect?

cheers
Bruce
Title: Re: Server side code not firing in non-popup lookup when using button
Post by: terryd on January 07, 2011, 06:36:16 AM
I know I'm going to regret asking this question but what do you mean by (webserver _global_ extension) ?
Title: Re: Server side code not firing in non-popup lookup when using button
Post by: Bruce on January 07, 2011, 10:18:04 PM
go to your global extensions - you'll see it there hanging off the NetTalk global extension.

cheers
Bruce
Title: Re: Server side code not firing in non-popup lookup when using button
Post by: Bruce on January 11, 2011, 03:34:31 AM
To go back to your original question - yes, you're doing it wrong.

>> If I have a lookup and use the lookup button to select a record Server Side code embedded in the entry field is not firing.

Correct. when you click on the lookup button, it goes to the lookup page.
When you return from the lookup page it regenerates the form page.
At no point does the entry field on the form actually "change". It goes from existing, to not existing, to existing.

If there is code you want to do after a lookup, then I recommend adding it to the AfterLookup routine.

Cheers
Bruce