Usage of Tabpanel

Hi, I am novice to Servoy. I have few questions on the functionality of Tabpanel…

  1. It seems that the tabpanel form should always be related to the main form? Am I right?.

  2. How can I do a separate query/listing on the tabpanel form eventhough it is residing under the main form and they are not related?

  3. Pls let me know the situations where we can use tabpanel.

Thanks.
Shaikna

Hi Shaikna

I’m also new to Servoy but hope this will help.

  • 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.

Regards

Graham Greensall

Hi Graham,

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.

Regards,
Shaikna

Hi Shaikna

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 ;)

Thanks for the reply. That would be nice to see a tab panel form which can work independently within the main form. Any tentative schedule?.

Pls post the result of the discussion (if possible) and keep us updated about the progress.

tabs without a relation will be in the next beta build (b6)

Hi Johan, I got beta 5 and tried to use the tab form. It still asks me for the relation?? how should I get a relationless tab form. Thanks.


shaikna

Please, look closelly what Johan says:

in the next beta build (b6)

so not in b5

Yepp.. sorry… I overlooked. :shock:

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 ;)

Three cheers for all that ongoing research! :D

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?

thanks
-Nick-

Hi Nick,

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.

Thanks.

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.

-Nick-

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

Hi Nick,

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.

Hope this helps.

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

sorry about that last post I used escape characters that rendered instead of showing see the refference for actual details. :oops: