Runtime hiding tabs from panel

Hi,

Is it possible to hide tabls from a tabpanel based on data from a selected record?

Thanks in advance

Michel

Yes, you can add and remove tabs dynamically using the following functions:

forms.yourForm.elements.yourTabpanel.addTab(...);
forms.yourForm.elements.yourTabpanel.removeTabAt(index);

So in your case, you could do that in the onRecordSelection method of your main form.

Thanks, I’ll check it out.

Michel