shared foundset isn't honored by tabpanel loaded form

I have a main form (tabel A) that has a hidden tabpanel that links 2 relationless forms as list and record view (both also table A).
I have set the onShowAllRecords of all 3 forms to ‘none’ so I know no data is loaded when a form is loaded for the first time.
Also I haven’t touched the foundset in any way to break the shared foundset between these forms.

On the main form I have an onload event that does a search on the the main form which gives, lets say, 2 records. The other form loaded via the tabpanel (with the shared foundset) however loads ALL records.

So it seems when the tabpanel form is loaded it doesn’t know about the new foundset. Which is odd since it’s a shared found (same table remember?)
Triggering the search on an onShow event does work however but is in my case not desirable.
I worked around this problem to do the search in the tabpanel form but to me it’s a bug.

Servoy Developer
Version R2 2.2.1-build 333
Java version 1.4.2-54 (Mac OS X)

Couldn’t reproduce this in demo crm

  1. build main form (record view on companies)
  2. placed relationless tabpanel on the main form displaying tableview of companies
  3. created onLoad script on main form that finds 1 company
  4. when onLoad script is fired, tableview follows foundset of main form.

Can you send us a reproducable demo?

I created a test solution that uses the CRM database and the companies table as well. It shows this is not a shared foundset issue but something else.
It seems when the result is 0 (zero) records then it shows all records.
Which is incorrect behavior.
See attached demo solution.

In my original solution it shows open actions, so the foundset can indeed be empty.

SharedFoundsetTest.servoy (5.12 KB)