NetTalk Central

Author Topic: Server side code not firing in non-popup lookup when using button  (Read 3567 times)

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
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.
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Server side code not firing in non-popup lookup when using button
« Reply #1 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

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Server side code not firing in non-popup lookup when using button
« Reply #2 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) ?
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Server side code not firing in non-popup lookup when using button
« Reply #3 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Server side code not firing in non-popup lookup when using button
« Reply #4 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