Tab Panels in Web Client

Hi

Can tabs be dynamically assigned in the web client and triggered from buttons ? I am using the following script which works in the smart client but not the web client

forms.DBRD_Main.elements.Content.removeAllTabs();
forms.DBRD_Main.elements.Content.addTab(forms.F001_DISP_Instructions);

Many thanks

Gordon

Hi Gordon,

This works fine for me in both smart and web client

elements.tabs_70.removeAllTabs();
elements.tabs_70.addTab( forms.contacts_addr, 'addrTab', 'address', 'contact address info', null, '#000000', '#FFFFFF', forms.contacts_card.sj_contactsid, 2);

I have a button on a form that toggles a setting on and off and then redraws the tabs as needed. You may find that web client requires the additional parameters like tab text, tab position etc to work properly. (I tried taking out all the parameters except the form name and that didn’t work for me even in smart client!)

Hi David

I have a button on a form that toggles a setting on and off and then redraws the tabs as needed. You may find that web client requires the additional parameters like tab text, tab position etc to work properly. (I tried taking out all the parameters except the form name and that didn’t work for me even in smart client!)

The issue was a genuine bug and resolved by Johan who gave me a tweaked set of files - the change is going to be added into the next iteration of Servoy and therefore may already have been fixed. Essentially, what I was doing was correct and the smart client was behaving as expected the web client was not. I can confirm that my version is now working.

Gordon

OK - thanks for the update. Glad you got it fixed!