NetTalk Central

Author Topic: insert not restoring position properly on multiple tab form  (Read 6776 times)

ozejohn

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
    • Email
insert not restoring position properly on multiple tab form
« on: January 12, 2009, 09:02:26 PM »
Hi,

I have a lot of browse lists with insert buttons on many different tabs on a form. If I insert a record from any of the tabs and save the form does not keep the correct tab. The form displays on the first tab after an insert.

For example if you have a form with two tabs one with a list of customers and one with a list of invoices. You select the second tab to see the list of invoices then enter a new invoice. When you save the invoice the form redisplays incorrectly on the first tab. It needs to return to the second tab in this case.

This makes it impractical to add or change records on a browse on a tab other than the first tab. The user has to keep reselecting the correct tab on the form after entering each record.

If this could be looked at soon I would really appreciate it.




Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: insert not restoring position properly on multiple tab form
« Reply #1 on: January 13, 2009, 01:11:44 AM »
Hi John,

which tab style are you using?

Cheers

Bruce

ozejohn

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
    • Email
Re: insert not restoring position properly on multiple tab form
« Reply #2 on: January 13, 2009, 06:24:13 PM »
Hi Bruce,

The forms that contain the browse controls on tabs are all memory forms with a tab style of "default".


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: insert not restoring position properly on multiple tab form
« Reply #3 on: January 22, 2009, 11:09:03 PM »
Hi John,

yeah, ok, but then what is the "default" set to on the web server?

Cheers
Bruce

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: insert not restoring position properly on multiple tab form
« Reply #4 on: January 26, 2009, 01:45:46 AM »
Hi John,

specifically - try using the XP-Tabs tab style. I'm testing using that, and the tab focus seems to work ok.
There is an older tab style as well - but, the XP one looks better, and works better.

Cheers
Bruce

Alan Telford

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
Re: insert not restoring position properly on multiple tab form
« Reply #5 on: February 02, 2009, 05:10:12 PM »
Hi Bruce

I've wanted this to work for a long time too.
I've just tested my scenario and it's not working.
NT4.31 pr30 + firefox 3
The web server default is XP-TABS.
I have a memory form with "Default" as type.
Tabs 1-2 has form fields.
Tabs 3-8 have browses (some file loaded, some page loaded).
I usually use inline change buttons on the browse row.
If I select tab 3, press change (on the browse row), and then press SAVE on the form, it is ALWAYS resetting me back to tab 1.

So definitely not working for me here.

Alan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: insert not restoring position properly on multiple tab form
« Reply #6 on: February 04, 2009, 06:49:03 AM »
can you make, or modify, an example to show this effect?

I've been testing in example 31 and it seems ok there.

Cheers
Bruce

Alan Telford

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
Re: insert not restoring position properly on multiple tab form
« Reply #7 on: February 08, 2009, 03:04:39 PM »
Try this one Bruce.
It's based on web 21 (Browse in Form).
There is a new option "Test" on the menu.
This opens a form with 3 tabs.
Change to the 2nd tab "Browse Countries".
Press the change button on browse row 3, then press SAVE on the form.

The TestTabs form is reloaded with the 1st tab selected, not the 2nd tab.

Alan

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: insert not restoring position properly on multiple tab form
« Reply #8 on: February 09, 2009, 02:31:53 AM »
Hi Alan,

Thanks for that. It is quite a subtle bug because it only affects memory forms.
Forms based on a file are ok.

I've fixed it for the next build.

Cheers
Bruce

Alan Telford

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
Re: insert not restoring position properly on multiple tab form
« Reply #9 on: February 09, 2009, 02:18:21 PM »
Awesome. Thanks very much.