Start in your Main form and select File / New Form
Choose the same Server and Table as the Main form
Select fields from same table as your main form - place horizontal
Click in an empty part of the Body of the Form then in the Properties select Table or List. If you choose List note that the height of each line will be the same as height of the Form.
Exit from Designer mode then select your Main Form
Go back to main form - enter Designer mode then click on Tab Panel icon or select Elements / Select Tab Panel. Double-click on your new List Form and it will appear on your Main Form. Postion, size and format as required.
Hope this helps - I’m sure some of the real experts will be able to add further detail.
Thanks for your reply. Surely, it will be helpful for the one how to use the tab panel. Thats nice anyway.
I still need to know what is the functionality of tab panel, whether it must have a relation with the main form? and how to perform a find/search using script for a solution which needs no relation between main and tab panel form?. Thanks.
On reading posts this morning realised that I had described setup I am working on with the Tab Panel and and Main Form using same dataset.
However would usually be used with to show Invoice or Order detail lines from different table but linked though relationship from Invoice/Purchase ID etc.
I still need to know what is the functionality of tab panel, whether it must have a relation with the main form? and how to perform a find/search using script for a solution which needs no relation between main and tab panel form?. Thanks.
Basically, FormPanels are used to show related data in the main form
example:
Main form is based on table companies
Place one tabpanel on the main form, whereby each tab of that panel refers to an other form, using a relation to display data in there > companies_to_contacts, companies_to_orders, companies_to_addresses etc…
You can create searchscripts in the “child” forms.
Search results will stay within the boundaries of the relation.
Example:
Doing a searchScript in the contactslist form(shown in the tabpanel) will search within the related contact records of the company that is shown in the main Form.
However, if you decide to display the same contactslist as a form by it self (that is NOT in a tabPanel), your search Script will go through the whole contacts table.
BTW: we’re currently discussing the possibility of using relationless TABpanels, which would open a new dimension in Servoy(create a form once, use multiple times throughout your entire solution)…to be continued
maarten:
BTW: we’re currently discussing the possibility of using relationless TABpanels, which would open a new dimension in Servoy(create a form once, use multiple times throughout your entire solution)…to be continued
I have been searching for the property that makes all tabs equally wide on the top tab cofiguration. It seems the tab width will only go to the minimun witdh for the text until two rows are needed then everything changes. Is there no setting for uniform tab width?
Tabs are shown according to the LAF (Look And Feel) file. So the answer is no. There is no setting in Servoy for this.
Maybe there is a possibility to add such a setting by the development team. I suggest you send in a feature request for it.
So does anyone have a hack that they use to get around this? Or am I the only person who likes the look of uniform tabs?
I have tried appending spaces but they are truncated off automatically.
You find this behaviour only under Filemaker developers!
(been there because you can design your own tabs there)
Did’nt see it anywhere with native Look & Feels with Windows XP or Mac OSX.
You can do it in Servoy also, but than you have to create the tabs your own, with your own graphics or border, and hide the default tabs of the tabpanel
You can program every (own) tab to switch to the right form
I guess you can create your own tabs (images) and use that. Just set the tab position property to ‘hide’ to get rid the original tabs.
You can switch tabs by setting the tabindex of the tabpanel via a method.
Here is a get us by that I should have caught earlier.
You change the width of an individual tab by entering the “name” property dialog then check HTML and go to the HTML tab and pad the display word with
like so…
Display This
which prints like this…
| Display This |
So this is how you manualy add spaces without servoy truncating them off. it was described in
“Servoy Developer Volume I” page 234