Layout Controls

Layout controls are structural containers in a .client file. They organize other controls into columns, collapsible sections, tabs, and visual groupings β€” but they do not display data themselves.

ControlComparable toPurpose
arrangeCSS Flexbox row, <div class="flex">Side-by-side horizontal layout
sectionHTML <details>, accordion componentCollapsible group within a page
fieldsetHTML <fieldset>, form sectionLabeled flat field grouping (non-collapsible)
tabset / tabBrowser tabs, React <Tabs>Tab navigation within a page
groupingfieldsetGrouped form with sub-groupsField grouping with nested groupingfield blocks
panelBordered content panelStandalone bordered container

arrange

Groups two or more components horizontally side by side. Typically used inside a page to create multi-column layouts (a summary group + a detail list, for example).

Syntax

arrange {
   <Component1>;
   <Component2>;
   ...
}
page OrderDetailPage using SalesOrderSet {
   -- Side by side: header form on left, line items on right
   arrange {
      group OrderHeaderGroup;
      list OrderLinesList;
   }
}

Responsive Behavior

On narrow viewports, Aurena may stack arrange columns vertically. The layout is a hint, not a guarantee β€” the framework is responsive. Compare to: CSS flex-wrap, Bootstrap col-md-6.

The Classic ERP Layout

The most common usage is arrange { group SummaryGroup; list DetailsListWithBind; } β€” a summary form on the left with a bound child list on the right. This mirrors the standard master-detail layout seen in SAP Fiori, Salesforce record pages, and most enterprise UIs.


section

A collapsible section within a page or dialog. The user can expand or collapse it by clicking the section header. Useful for separating primary data (always visible) from secondary data (collapsed by default).

Syntax

section <SectionName> {
   label = "<Section header text>";
   collapsed = [<boolean>];    -- true = starts collapsed; false = starts expanded
 
   <contents: group, list, arrange, or other controls>
}
page CustomerPage using CustomerSet {
   group CustomerHeaderGroup;    -- always visible: core fields
 
   section ContactSection {
      label = "Contact Details";
      collapsed = [true];        -- collapsed by default; users expand if needed
      group ContactGroup;
   }
 
   section AuditSection {
      label = "Audit Information";
      collapsed = [true];
      group AuditGroup;
   }
}

Use collapsed = [true] for Secondary Data

Primary data (the record’s core fields) should never be in a collapsible section β€” users should see it immediately. Put audit info, optional details, and rarely-used fields in collapsed sections.

Compare to: Material UI Accordion with defaultExpanded={false}, Bootstrap Collapse, HTML <details> element.


fieldset

A flat, labeled grouping of fields within a group or dialog. Unlike section, a fieldset is not collapsible β€” it just provides visual separation and a sub-label within a form. Useful when a single group contains logically distinct areas.

Syntax

-- Used inside a group:
fieldset <Name> {
   label = "<Fieldset header>";
   <field/lov declarations>
}
group CustomerGroup for Customer {
   label = "Customer";
 
   field CustomerName {
      size = Large;
   }
   field CustomerNo {
      size = Small;
   }
 
   fieldset BillingFieldset {
      label = "Billing Address";
      field BillingStreet {
         size = FullWidth;
      }
      field BillingCity {
         size = Medium;
      }
      field BillingPostalCode {
         size = Small;
      }
      field BillingCountry {
         size = Medium;
      }
   }
 
   fieldset ShippingFieldset {
      label = "Shipping Address";
      field ShippingStreet {
         size = FullWidth;
      }
      field ShippingCity {
         size = Medium;
      }
      field ShippingPostalCode {
         size = Small;
      }
   }
}

Fieldset vs Section vs Group

Use group for the top-level form container bound to an entity. Use fieldset to subdivide that form visually without creating a new entity binding. Use section to add collapsibility at the page level.

Compare to: HTML <fieldset> + <legend>, a React FormSection wrapper component.


tabset and tab

Groups components into tabs within a page. The user clicks tab headers to switch between panels. Each tab is an independent section with its own content.

Syntax

tabset {
   tab <TabName1> {
      label = "<Tab header>";
      <contents>
   }
   tab <TabName2> {
      label = "<Tab header>";
      <contents>
   }
}
page OrderDetailPage using SalesOrderSet {
   group OrderHeaderGroup;
 
   tabset {
      tab LinesTab {
         label = "Order Lines";
         list OrderLinesList;
      }
      tab DeliveryTab {
         label = "Delivery";
         group DeliveryGroup;
      }
      tab NotesTab {
         label = "Notes & Attachments";
         group NotesGroup;
      }
   }
}

Tabs vs Sections: When to Choose Which

Use tabs when sections are mutually exclusive β€” the user views one at a time (order lines vs. delivery vs. notes). Use sections when sections might be viewed together but one is less important (core fields always visible, audit trail collapsed).

Compare to: SPA routing patterns, React Router <Tabs>, browser native tab panels.


groupingfieldset and groupingfield

An advanced form layout that groups fields into a visual grid with column headers. The groupingfieldset is the container; groupingfield defines one column of the grid.

Syntax

groupingfieldset <Name> {
   label = "<outer label>";
   groupingfield <FieldGroupName> {
      label = "<column header>";
      <field/lov declarations>
   }
   groupingfield <FieldGroupName2> {
      label = "<column header>";
      <field/lov declarations>
   }
}
groupingfieldset QuantityBreakdown {
   label = "Quantities";
   groupingfield PlannedGroup {
      label = "Planned";
      field PlannedQty {
         size = Small;
      }
      field PlannedDate {
         size = Small;
      }
   }
   groupingfield ActualGroup {
      label = "Actual";
      field ActualQty {
         size = Small;
      }
      field ActualDate {
         size = Small;
      }
   }
   groupingfield VarianceGroup {
      label = "Variance";
      field VarianceQty {
         size = Small;
      }
   }
}

When to Use groupingfieldset

Use when you have parallel sets of fields that share a logical structure β€” planned vs. actual vs. variance, or multiple time period columns (Q1, Q2, Q3, Q4). Compare to: a comparison table in HTML, a styled <table> with column headers.


repeatingsection

A container bound to an array attribute that repeats its content (a list, markdowntext, or htmltext) once per row β€” distinct from list itself, this is for repeating mixed display content, not a grid.

Syntax

repeatingsection <Name> for <Datasource> {
   [orderby = <Attr> asc;]
   ( list <Name> ...; | markdowntext { ... } | htmltext { ... } )*
}

No Marble description beyond the grammar shape. See Display Controls β†’ htmltext for the htmltext construct most commonly nested here.


resizablearrange

A container variant of arrange whose panels can be resized by the user at runtime β€” β€œA container for an arranged set of individual visual items.”

Syntax

resizablearrange {
   [orientation = <Horizontal | Vertical>;]
   [height = <Value>;]
   [collapsed = [<condition>];]
   [arrangeid = <Value>;]
   -- content: map, gantt, list, etc.
}
page ... {
   resizablearrange {
      map ...
      gantt ...
      list ...
   }
}

resizablearrange vs. plain arrange

Plain arrange (documented above) is a fixed side-by-side layout declaration. resizablearrange is for the same idea but lets the end user drag to resize each panel at runtime β€” useful when combining a map/ganttchart with a list where neither panel has an obviously β€œcorrect” fixed width.


Patterns & Tips

Page Structure Pattern: Header β†’ Tabs β†’ Detail

A common IFS page pattern is: group HeaderGroup (always-visible key fields) β†’ tabset (categorized sub-sections). This gives users immediate access to the core record data while organizing additional details into named tabs.

Don't Nest Sections Inside Tabs Inside Sections

Deep layout nesting (section > tab > section) creates a confusing user experience. Keep the hierarchy flat: at most one level of tabs or sections within any given page area.

arrange Components Must Be Defined Elsewhere

The identifiers inside arrange { } (like list SomeList) must be fully declared as standalone constructs in the same .client file (or included fragment). arrange is purely a placement declaration β€” not a definition.


See Also

  • Pages β€” where arrange, tabset, and section are declared
  • Group β€” the form container placed inside layout controls
  • List β€” grids placed inside layout controls
  • Card and Sheet β€” card templates and sheet overlays
  • Dialog β€” dialogs use fieldset and arrange for multi-column layouts