# Problem with find in TabPanel

**URL:** <https://forum.servoy.com/t/problem-with-find-in-tabpanel/12821>\
**Category:** Classic Servoy\
**Created:** [September 7, 2010, 1:24pm UTC](https://forum.servoy.com/t/problem-with-find-in-tabpanel/12821 "2010-09-07T13:24:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![irenem](https://avatars.discourse-cdn.com/v4/letter/i/977dab/32.png) [@irenem](https://forum.servoy.com/u/irenem)\
**Post date:** [September 7, 2010, 1:24pm UTC](https://forum.servoy.com/t/problem-with-find-in-tabpanel/12821/1 "2010-09-07T13:24:16Z")

</div>

I try to make a search in a related tab panel.

```auto
var frm = forms.calendar7.elements.tab_day_1.getTabFormNameAt(1)
	forms[frm].controller.loadAllRecords()
	forms[frm].controller.find()
	var rangeX = "#" + globals.g_search_day_1 + "|dd-MM-yyyy" ;
	forms[frm].act_cal_show_user = 1; 
	forms[frm].act_date_begin = rangeX; 
	forms[frm].controller.search()

```

when all records are shown and I perform the search it works but when I already have a loaded foundset it reduces the foundset which I try to avoid with “loadAllRecords”.

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [September 7, 2010, 2:02pm UTC](https://forum.servoy.com/t/problem-with-find-in-tabpanel/12821/2 "2010-09-07T14:02:50Z")

</div>

> irenem:  
> I try to make a search in a related tab panel.

When you do a search in a related tabpanel then you are in fact doing a search on your main foundset (it’s a related table, right?).  
But when you do a loadAllRecords in your related tabpanel you are in fact removing the relation and that’s the reason you can do a normal search in there without influencing your main foundset.

---

<div class="post-metadata">

**Author:** ![irenem](https://avatars.discourse-cdn.com/v4/letter/i/977dab/32.png) [@irenem](https://forum.servoy.com/u/irenem)\
**Post date:** [September 7, 2010, 2:18pm UTC](https://forum.servoy.com/t/problem-with-find-in-tabpanel/12821/3 "2010-09-07T14:18:39Z")

</div>

Hello Robert,

Thanks for the quick reply,

I have removed the relation (now it is an unrelated tab) but the behavior is still the same. It seems to ignore that it has to reload all records first.  
To be honest I have to say that it is a tab panel created with the SolutionModel. Could this be the problem?
