Foundset in tabpanel

Forum to discuss the new web client version of Servoy.

Foundset in tabpanel

Postby jay.rao » Mon Jul 16, 2018 1:46 pm

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.
jay.rao
 
Posts: 59
Joined: Mon Apr 10, 2017 1:32 pm

Re: Foundset in tabpanel

Postby kwpsd » Mon Jul 16, 2018 7:31 pm

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.
Kim W. Premuda
San Diego, CA USA
User avatar
kwpsd
 
Posts: 687
Joined: Sat Jul 28, 2007 6:59 pm
Location: San Diego, CA USA


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 1 guest