I was tasked to create a form with the data organized into months (like the Table of Contents form pattern).
I accomplished this by simply creating 12 grids on the 12 tab pages all linked to the same Form Datasource. And then I overrode the Tab.TabChanged(...) method to apply a month filter.
I know this is not standard, but I'm just a developer - following orders here.
The issue at the moment is that when the New button is clicked the form behaves inconsistently. If the current tab is January (the first tab page), everything is fine. But if the current tab page is something else the form jumps to January and does not create a new record.
My quick solution was to override the ActionPane's New button as such:
void clicked() { JanuaryTabPage.activatePage(); super(); }
Then if the current tab page is something else than January, the form will still jump to January, but at least a new record will be displayed.
How can I change the form's functionality so that a record can be created in any month? In other words no jump to the first tab page.
Thanks for reading