Related Tabpanel not showing specific record in smart client

In one form the user is browsing through inventory records and then wants to click on one to see both the details of that specific record as well as other inventory records of that patient. No problem getting the window to pop up and show that specific patient and all the related inventory records of that patient. However I’d like the specific inventory sample to be the selected child record showing and that’s no problem in web-client. But in smart client it doesn’t work unless I go through the process twice. The second time it shows properly. The tab panel is a split pane with the left hand side showing all the related records and the right hand side showing the ‘selected’ one. In the picture below you can see the sampleid of 6050 was the record chosen to view and after clicking the button all the related samples of that patient are showing on the left and available for selection but the one sample that is currently selected and showing on the right is that same 6050 sampleid. This is in web-client. Running that in smart client always the first sampleid (1264 in this case) will show unless I close the popup window and redo the method then the correct one is selected.
[attachment=0]Screen shot 2012-02-07 at 7.17.41 PM.png[/attachment]
I’ve tried two different codes, one doing ‘loadRecords(id)’ and the other running a ‘for’ statement to select the record with that sampleid. Both work in web-client, neither works in smart client. (sample_nav is the left split pane which acts as the navigator form. Makes no difference whether I load both that and the main form or just the ‘nav’ form). Is there a better or alternative way to code this so that it works in both? Do I need to redesign my tab panel? Here’s my two codes:

if(sampleid) {
			forms.sample_nav.controller.loadRecords(sampleid);
			forms.sample.controller.loadRecords(sampleid);
		}

and

		for ( var i = 1 ; i <= forms.lpp_patient.patient_to_sample.getSize() ; i++ ) {
			forms.sample_nav.controller.setSelectedIndex(i)
			if(forms.sample_nav.sampleid === sorcid) {
				return;
			}

This is Servoy 6.0.5, OS 10.6. Any suggestions?

why not share the foundset? because it seems that you want to show details of something from a list? so why doesn’t the list and the details just have the same foundset?