NetTalk Central

Author Topic: TabChanged routine not called on form with Tab style  (Read 2377 times)

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
TabChanged routine not called on form with Tab style
« on: August 07, 2012, 04:09:37 AM »
Hi,

I have a NetWebForm with tabs on it. I want the form to remember the last selected tab by storing it on the server, so that when the form opens again the last selected tab is selected again. The saving is done in the TabChanged routine, but the routine is never called. What could cause it not to be called?

Thys

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11191
    • View Profile
Re: TabChanged routine not called on form with Tab style
« Reply #1 on: August 08, 2012, 06:56:02 AM »
which tab type are you using?

(perhaps post a screen-shot so I believe you <g>)

Bruce

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
Re: TabChanged routine not called on form with Tab style
« Reply #2 on: August 09, 2012, 09:20:12 AM »
Bruce,

Attached are the screenshots. I also notice the following traces in Debugview. The page is called WebHome. The file "Webhome_tabchanged" can't be found - what is that about?

[8384] [netTrace][thread=5] Error -1 opening file: C:\Users\admin\Documents\Clarion Projects\Topaz\Topaz15\web\WebHome_tabchanged
[8384] [netTrace][thread=5] Sendfile error 404, Error 404 filename=C:\Users\admin\Documents\Clarion Projects\Topaz\Topaz15\web\WebHome_tabchanged
[8384] [netTrace][thread=5] SendError = 404 The page cannot be found : The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. FileRequest=[WebHome_tabchanged]


Thys

[attachment deleted by admin]

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
Re: TabChanged routine not called on form with Tab style
« Reply #3 on: September 20, 2012, 05:11:17 AM »
Bruce,

This is still happening using 6.38. Do you have an idea what may cause this? The end-result for me is that the tab number can't be saved so that it starts at the first tab when the page is opened again.

Thys

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11191
    • View Profile
Re: TabChanged routine not called on form with Tab style
« Reply #4 on: September 20, 2012, 11:49:39 PM »
perhaps apply your technique to a small example, say example 1, so I can see what you're doing, and try and duplicate it here.

cheers
Bruce

Thys

  • Sr. Member
  • ****
  • Posts: 311
    • View Profile
    • Incasu
    • Email
Re: TabChanged routine not called on form with Tab style
« Reply #5 on: October 11, 2012, 01:11:03 AM »
Sorry Bruce... it was a coding thing that was wrong.

Thanks