# Pane layout update issue

**URL:** <https://forum.servoy.com/t/pane-layout-update-issue/6617>\
**Category:** Classic Servoy\
**Created:** [October 20, 2006, 9:50pm UTC](https://forum.servoy.com/t/pane-layout-update-issue/6617 "2006-10-20T21:50:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![agiletortoise](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@agiletortoise](https://forum.servoy.com/u/agiletortoise)\
**Post date:** [October 20, 2006, 9:50pm UTC](https://forum.servoy.com/t/pane-layout-update-issue/6617/1 "2006-10-20T21:50:04Z")

</div>

I’ve got a form with a three pane layout, using JSplitPane. The panes enabled the UI I really wanted, but the master-detail relationships have to updated manually, so when you select a record in Pane1, it calls forms.[form].loadRecords( relation ) on the form in Pane2, same from Pane2-\>Pane3. Those calls are hooked into both the onShow and onRecordSelection events on the forms in Pane1 and Pane2.

This works fine browsing the records, but if I do something that fires databaseManager.saveData(), it breaks down, and suddenly the foundset in Pane2 is “all records.” This seems like a bug to me, but maybe I’m missing something. saveData shouldn’t invalidate the foundset on a form, should it?

g.

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [October 22, 2006, 8:01am UTC](https://forum.servoy.com/t/pane-layout-update-issue/6617/2 "2006-10-22T08:01:46Z")

</div>

I agree, it shouldn’t break the foundset but are you sure it is not something else that makes it break?

BTW it is of course easy to call onrecordselect again ![;)]( "Wink")

---

<div class="post-metadata">

**Author:** ![agiletortoise](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@agiletortoise](https://forum.servoy.com/u/agiletortoise)\
**Post date:** [October 23, 2006, 12:41pm UTC](https://forum.servoy.com/t/pane-layout-update-issue/6617/3 "2006-10-23T12:41:33Z")

</div>

> BTW it is of course easy to call onrecordselect again

Is it? Where would I trigger that call? onRecordSave doesn’t work, because it seems to do it’s work before databaseManager.saveData() is called.

Is there something like an onAfterSave I’m not seeing?[/quote]

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [October 23, 2006, 12:47pm UTC](https://forum.servoy.com/t/pane-layout-update-issue/6617/4 "2006-10-23T12:47:36Z")

</div>

Well, I haven’t been totally clear I guess. What I meant to say is that it is easy to call your onrecordselect method again after performing that save.  
Hope this is more clear…

---

<div class="post-metadata">

**Author:** ![agiletortoise](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@agiletortoise](https://forum.servoy.com/u/agiletortoise)\
**Post date:** [October 24, 2006, 4:57pm UTC](https://forum.servoy.com/t/pane-layout-update-issue/6617/5 "2006-10-24T16:57:45Z")

</div>

I’m probably not being very clear either. I don’t want to have to click a button or otherwise manually trigger the call. It needs to happen from an Event or be very disorienting to the user.  
g.
