related form on SplitPane not working

I have a splitpane (the native one) which gets initialized with related forms:

elements.addressSplitPane.setLeftForm(forms.address_details_left, accounts_to_addresses);
elements.addressSplitPane.setRightForm(forms.address_details_right, accounts_to_addresses);

But this doesn’t seem to work. And if you look at the wiki/sample code it says the following:

.setLeftForm(form, relatedfoundset/relationname)
//Set a relationless or related form as left panel.
elements.addressSplitPane.setLeftForm(forms.orders,‘ordersTab’,‘Orders’);

It looks like there are 2 parameters for the method, but the sample has 3 parameters. I’ve tried some things but couldn’t get it to work with through the relation (other than that it works).

Ahh… stupid me!

I was initializing the splitpane on the onLoad event instead of onRecordSelection… :D

The small discrepancy in the doc/sample code is still a bit confusing though.

the sample discrepancy will be fixed in Servoy 5.1.2 (don’t think will make it in 5.1.1)