board logo
Posted by: WUICTeam - Sunday, November 15, 2026 9:01:08 AM
[b]Question[/b] I added [c]orderedTabs[/c] to the [c]md_props_bag[/c] of a table, but the tabs of the edit form still show up in the old order (or there are no tabs at all). What does [c]orderedTabs[/c] actually match, and when is it applied? [b]Answer[/b] [c]orderedTabs[/c] only sorts tabs that exist, and tabs exist only if the table has the tab-edit option ([c]md_tab_edit[/c]) enabled. Without it the form renders a single flat list of fields and the array is never read. The same happens if the table uses a custom edit template: the template replaces the default form. [b]What it matches[/b] [list] [*]Each entry is compared with the [c]mc_edit_associated_tab[/c] value of the editable columns, case-insensitively. [c]"General"[/c] and [c]"general"[/c] are the same tab. [*]It is compared with the raw tab name, not with the translated header. If the header shows "Generale", the entry must still be the key stored in the column, not the translation. [*]Columns hidden in edit do not create tabs. Editable columns with no [c]mc_edit_associated_tab[/c] are grouped in a tab named [c]non_associati_a_tab[/c], which you can list as well. [*]Entries that match no tab are ignored. Tabs you do not list are placed after the listed ones, in their original order. [/list] [b]Which tab opens first[/b] After sorting, the first visible tab is the selected one. Reordering therefore also changes the tab the user lands on. [code] { "archetypes": { "form": { "columns": 2, "orderedTabs": ["general", "advanced", "audit"] } } } [/code] Common mistakes: a typo in a tab key (silently ignored), listing the translated label instead of the key, and expecting the order to change on a table where the tab option is off. [url=https://wuic-framework.com/docs/parametric-dialog]Documentation: Form (parametric-dialog)[/url]