I've created a bean that provides a tabbed menu layout with a series of tabs for sections (crm, shop) etc and for each of those sections a series of buttons to show each form (crm has a button for contacts, a button for accounts and so on)
I did this because I have so many different sections in the servoy solution and I found it was the simplest solution (only took a couple of hours to make the bean... and I suck at Swing)
The bean is initialised on application startup with:
forms.navigation.elements.menuBean.application = application;
forms.navigation.elements.menuBean.tabString = "TabName1:ButtonName1:FormName1;TabName1:ButtonName2:FormName2;TabName2:ButtonName3:FormName3
The bean parses that string and constructs JTabbedPanes and JButtons
It is passed the JSApplication object, from which I can show the the relevant form on a button click by calling JSApplication.js_showForm(Object)
What I can't figure out how to do (and have seen other posts saying it is impossible) is call a servoy javascript method instead of show a form - which would give me far more flexibility. Is there any way I could hack a solution? Is there by any chance some control class I can get a reference to or anything?
Or is there a way in which I can mimic this?
Cheers
Willie