Foundset in tabpanel

Hi,
I wanted to know if I can achieve a very specific scenario in case of tabpanel. I want to attach a foundset to the tabs in the tabpanel or know the foundset attached in the containedForm so that I can get the count of records in the foundset, also update my count if the serverSize changes.
This is very specific case and want to know if there are any possibilities at tabpanel or tabpanel_server js.

Some clarification first…tab panels are containers and, as such, do not have associated foundsets. You may put objects (forms) in the tab panel container, and each form in the container may have an associated foundset. You can then use the form name to extract the foundset information as follows:

var currentRecordIndex = forms[ formName ].foundset.getSelectedIndex()

var numberOfRecordsInFoundset = forms[ formName ].foundset.getSize()

var totalRecordsInTable = databaseManager.getFoundSetCount( forms[ formName ].foundset )

Servoy will automatically update the count info as it updates the backend.

I hope this helps.