minor oddity on portals

Hello, we have come across a cool little problem:

we have a form with a tab panel. A method (onRecordSelection) decides which tab index to show. the two tabs are non-related forms of the same table the tab panel sits on. when switching from record to record via buttons, we get an error.

Now the funny part: the error does not occur when you browse through records using the standard controller instead of a method setting the selectedIndex. the error does not occur either if the tab panel shows the form via a relation (a self-join).

Demo solution attached.

Thanks, Patrick

Where is the demo solution?

good question. I guess that went wrong. Of course I don’t have it anymore. Anyway, the error is reproducable as described (or better was at the time).