TopLogic - the automated application engine
  • Releases
  • Dokumentation
  • Github
  • Discord
  1. Home
  2. Releases
  3. TL_8.0.0-alpha11
  4. #29793

8.0.0-alpha11
TopLogic Release

2026-10-20

enhancement

major
#29659
TL Views: Popover-Element mit beliebigem Inhalt an einer auslösenden Schaltfläche
#29713
TL Views: a user cannot hide a tile of a <dashboard> and add it again later
#29755
React-UI: Auswahl in Objektlisten (<object-list selection>) – Karten direkt anwählbar
#29756
React view table: Excel export (parity with classic TableComponent) and generic download view action
#29757
React view table: show row count (total / filtered / selected) like the classic table
#29776
TL Views: Einheitliches Drag & Drop für Tabellen, Baum-Tabellen, Bäume und Kanban-Boards mit mehreren Drop-Operationen, Drop-Positionen und Drag-Arten
#29782
Concept: Discover right for the model based security (filtered object sources, masked form fields)
#29785
OpenAPI server: request bodies are not validated against the declared schema
#29786
MUI: Avatar (TLAvatar) mit Material UI darstellen
#29787
React UI: Atomare Bausteine (Schaltflächen, Menü-Auslöser, Checkboxen, Eingabefelder, Chips, …) sehen überall gleich aus und lassen sich durch eine Komponentenbibliothek (z.B. Material UI) ersetzen
#29797
XML import into existing data: resolve IDs against existing objects, skip known subtrees, optional references, language and variables from the input
#29799
Form dependencies: derived fields do not follow edited values; Java script functions cannot report what they read to the ScriptTracer
#29811
TL Views: a <button> ignores the display mode of its command and always shows icon and label
#29812
TL Views: a table column declares its own comparator; enumeration columns follow the enumeration's order
#29814
TL Views: no supported way for a server-side background source (a bus listener) to push a channel value into a view; only <start-job> does it through internal API
#29815
TL Views table: no per-row CSS class (a row cannot be marked as changed, stale or own)
#29816
TL Views table: a <computed-column> cannot be hidden by default (shown only through the column chooser)
#29821
Design System wave 3b: table, tree, column selection and text read the design system package
#29825
Design System: column selection of the React table – grouping as one select, checkbox first, visible and hidden columns apart
#29829
TL Views: Beschreibbarer Kanal, der aus anderen Kanälen vorbelegt wird
#29830
Transaction monitor: Select a time range or a revision range instead of a single day.
#29836
Design System wave 4a: dialog, window, drawer, snackbar and notice bar read the design system package
#29840
Persistent object wrapper hierarchy: remove dead and duplicated code, move stateless behavior into interface defaults, replace class identity checks
#29849
Configuration: an encrypted property value that is not a valid encrypted value is silently "decrypted" to garbage instead of being rejected
#29854
PowerPoint-Präsentationen aus TL-Script erzeugen: deklarative Folienbausteine, Export in eine Firmenvorlage, Analyse von Vorlagen
#29858
Privileged TL-Script functions: authorize a configured script as a whole by a command group on a computed security object
#29859
React-Einfachauswahl: Die aktuell gewählte Option fehlt in der Optionsliste
#29866
Design System wave 4b: app shell, app bar, sidebar and bottom bar read the design system package
#29870
Design System wave 4c: layout containers read the design system package
#29907
Entwicklerkommandos und Skript-Rekorder außerhalb des Produktivmodus für alle Benutzer
minor
#28605
Possibility to download a recorded script
#28995
Column filter should consider comparator of the column when sorting the options
#29801
TL Views: the split of <adaptive-detail> is configurable (size, unit, min-size on <selector> and <detail>; drawer width as drawer-size)
#29805
TL Views: a <value-input> is declared like a model attribute (mandatory, annotations) - a mandatory enumeration input offers no "no value" option

defect

critical
#29784
OpenAPI server: basic authentication of a technical user accepts an empty password when the configured password is empty (e.g. unset environment variable)
#29823
HistoryCompaction: Löschen von REVISION/REVISION_XREF und Umschreiben der Revisionsbereiche in je einer Transaktion lässt die Datenbank explodieren
major
#29580
RowSourceObserver: a disposed observer is still notified and throws NPE (_scope null) from DerivedViewChannel and GlobalModelEventForwarder
#29783
TLScriptFunctions: a script function is bound to an arbitrary overload of the same name, including a private one
#29788
Configuration: the error for an undecodable encrypted property echoes the value (e.g. a plain-text password) into the log
#29789
tl:generate-java fails on the first build after a TopLogic version change: it neither resolves the engine web fragments nor reads the project's own model sources
#29791
TL Views table: the row activation button runs the activation command without selecting its row, so commands reading the selection channel see another row (wrong breadcrumb label)
#29792
TL Views: a closed dialog (and a left tile-stack frame) stays visible for 1 s unless the application ships its own exit animation - move the demo's animations into the engine
#29800
Model patch of an existing database fails when a class gains a generalization and overrides its attributes in the same change
#29806
WrapperGenerator: every top-level class of a module with a singleton extends StructuredElement (regression of #26716)
#29807
WrapperGenerator: classifier constants of two enumerations collide, the generated factory does not compile
#29808
TL Views: the <on-submit> command of a text or number <value-input> runs on Enter only, not when the field is left with a changed value
#29810
TL Views: the selection channel of a <tree> keeps an object deleted in another view, and scripts over it fail
#29813
TL Views: a <tree> does not react to a change of an object it does not display yet, so a node that becomes a child of a shown node does not appear
#29822
CompactHistoryTask: Wartungsfenster bleibt nach dem Lauf aktiv, Task-Ende geht im Neustart der Persistenzschicht verloren
#29824
TL Views table: "Standard wiederherstellen" in the column selection drops a declared group-by (and does not restore the declared sort)
#29837
TestCompileJSPs modifies the module's source webapp and breaks concurrently running scripted tests of the same module
#29838
ClusterManager: a database connection that failed in a cluster transaction is returned to the pool and keeps failing every refetch
#29846
Changing the type of a column with content fails on Oracle (ORA-01439) and of an indexed column on MS SQL Server
#29848
ReportQueueTest.testAddJob fails sporadically: the queue thread may process the job before the test checks that it is queued
#29871
TestZipper.testEmptyFolder fails depending on the order in which the file system lists a folder
#29878
React UI does not react behind a proxy that buffers or refuses the window event stream
minor
#29766
TL-Script add() wirft UnsupportedOperationException bei Multi-Referenz auf transientem Objekt
#29804
XML import: line and column of a message location are formatted with a thousands separator ("line 4,433")
#29809
TL Views: a <value-input type="tl.core:Binary"> shows the file name as text instead of the binary field (no upload, no download)

task

minor
#29790
Upgrade guide 7.11 to 8.0: add the Maven >= 3.8.9 requirement, state that 7.10.x applications can follow it, and point to it from the release notes
#29793
Developer docs: recipe for an application-defined primitive type whose display depends on the owning object (custom datatype, value class, type-level storage, label provider, input control)
task

minor

#29793

Developer docs: recipe for an application-defined primitive type whose display depends on the owning object (custom datatype, value class, type-level storage, label provider, input control)

Documentation

The developer documentation (tl-docs) has no article on defining an application-specific primitive model type. Doing it right needs knowledge spread over several engine areas (model datatypes, storage mappings, attribute storage, annotations, label providers, the React field control chain), and the obvious first attempts lead to inconsistent displays. Please add a recipe article, e.g. model/custom-primitive-type.

The abstract problem

An attribute holds a simple value that is stored as a plain database value (a number, a string), but must be displayed and entered in a domain notation - and the notation is not a property of the value alone but of its context, e.g. of the project, mandator or container the owning object belongs to. The requirements:

  • The database keeps the plain value (no schema/data change, queries and sorting on the raw value keep working).
  • The model defines the presentation once, on the type; every attribute of the type, every view (form field, read-only display, table cell, search/filter/export text, label) shows the value the same way, without per-view configuration.
  • Where the notation comes from is declared in the model, per attribute, not hard-coded in Java (no "walk up from the object to the project" in a control).
  • Input is parsed in the notation of the context, with validation.

Concrete case (E-Home application, TL 8.0.0-alpha10): KNX group addresses are 16-bit numbers; an ETS project chooses whether they are written main/middle/sub (8/0/9), main/sub (8/9) or as the plain number (16393). Before, the address was a tl.core:Integer and displayed as "16.393".

Why the obvious approaches fail

  • A datatype with a <format>/`StorageMapping` only sees the value: StorageMapping.getBusinessObject(Object) has no owner, LabelProvider.getLabel(Object) has no owner, the read-only display path (FieldControlService.createDisplayControl, CellRenderer.render(value) of table columns) gets value (and attribute) but no row object. A context-dependent format cannot be applied there.
  • A custom input control alone (ReactFieldControlProvider reading AttributeFieldModel.getObject()) covers forms and editable cells only; tables, labels and search texts stay raw - the display becomes inconsistent.

The approach that works

The context is attached to the value when it is read, at the one place that knows the owner - the attribute storage - so the value becomes self-describing and every value-only display path can render it:

  1. Value class (GA): wraps the raw value plus the context-derived notation; equals/`hashCode`/`compareTo` on the raw value only, toString() is the display text (the React state serializer falls back to toString() for unknown objects).
  2. Datatype in the model: <datatype name="GA" db_type="int" kind="Custom"> with a custom StorageMapping (getApplicationType() = value class; storage ↔ value without context; getStorageObject/`isCompatible` also accept the raw type so imports and scripts can keep writing plain numbers).
  3. Storage on the type: <annotations><storage-algorithm><group-address-storage/></storage-algorithm></annotations> on the datatype. TLStorage is also a type annotation; StorageImplementationFactory.visitProperty uses the property type's storage annotation when the attribute declares none - so every attribute of the type gets it automatically. The storage subclasses PrimitiveStorage and overrides getAttributeValue(TLObject, TLStructuredTypePart) to attach the context (ga.withStyle(style(object))).
  4. Context source as attribute annotation: an application TLAttributeAnnotation with @TagName("ga-style") and an Expr property (<ga-style><style>ga -> recursion($ga, x -> $x.container()).filter(x -> $x.instanceOf(…:Project`)).firstElement().get(…:Project#groupAddressStyle)</style></ga-style>`). The storage compiles it once in init(attribute) (QueryExecutor.compile, disableSecurity() - the notation is model data, not subject to the reader's rights). No annotation / no result → a default notation. The annotation is found via the TypeIndex (build processor), no registration needed.
  5. Label provider for the value class, registered with kind="CODE" in LabelProviderService → table cells, search/filter/export texts and labels.
  6. Input control on the datatype: <input-control><impl class="…ControlProvider"/></input-control> (TLInputControl has DefaultStrategy.VALUE_TYPE, so it applies to all attributes of the type). The control subclasses ReactTextInputControl and overrides applyRawClientValue to parse in the notation of the current value; for an empty value it asks the attribute's storage for the context (AttributeFieldModel → AttributeOperations.getStorageImplementation(part)), and if the object has no context yet (a new object in a create dialog), it accepts any notation. Parse errors go to AbstractFieldModel.setError.

Points the recipe should also mention

  • Changing an existing attribute's type to the new datatype: the incremental model upgrade logs rename/delete of the old part and creation of a new one (and proposes migration processors). In this case (flex attribute, same value type) the stored values survived; the article should state when they do and recommend an explicit migration (update-property with the new type) for production data.
  • Context changes are not observed: a form showing such a value is not refreshed when only the context object (e.g. the project's notation) changes; it shows the new notation after it is rebuilt.
  • The messages_en.properties entries of new I18NConstants/config classes are generated after the test phase; a first build with tests can fail TestI18NConstantsTranslations until a build without tests has run.
  • Tests: verify the label path with LabelProviderService.getLabelProvider(value) (it returns a LabelResourceProvider adapter wrapping the registered provider) and the storage path by reading the attribute in a KB test.

Reference implementation: E-Home de.haumacher.ehome.knx (GA, GAStorageMapping, GroupAddressStorage, GAStyle, GALabelProvider, GAControlProvider) and ehome.logical.model.xml (datatype GA, GroupAddress#address).

Lösung

Article model/custom-primitive-type (chapter model, shipped by com.top_logic.layout.view, visible via the tl-mcp read_doc tool and the Documentation window of a React application): the problem and requirements, why a format/`StorageMapping` or an input control alone fail, and the six steps above with quoted code. Further sections: asking the storage of the attribute instead of the object (getStorageImplementation(object, part) returns TransientStorage for an object in a create dialog), the policy for an object without context, typed text not echoed back converted while editing, context changes (a <table> follows them when it lists the context type in observed-types, a form only after it is displayed again), access grants, changing an existing attribute to the type (what the startup upgrade does, when values survive, an explicit update-property with new-type for production data), the I18N/test build order, and tests.

Worked example in the React demo com.top_logic.demo.react (Demos → Temperatures), which the article quotes: model module demo.temperature with datatype Temperature (stored as double in °C), DemoSite with a temperatureUnit (°C / °F / K) composing DemoSensor`s with `minTemperature/`maxTemperature`. Java in com.top_logic.demo.react.temperature: value class Temperature, TemperatureUnit, TemperatureMapping (<temperature-mapping/>), TemperatureStorage (<temperature-storage/>), annotation <temperature-unit unit="s -> $s.container().get(...)"/>, TemperatureLabelProvider, TemperatureControlProvider/`TemperatureInputControl`. Seed data with sites in each unit, a site/sensor master-detail view and a "New Sensor" create dialog, access grants for the users group.

  • Get Started
  • Github
  • Discord
  • Das Unternehmen hinter TopLogic
  • Softwareentwicklung heute
  • Kontakt

© Copyright – Business Operation Systems GmbH

  • top-logic.com
  • Nutzungsbedingungen
  • Impressum
  • Rechtlicher Hinweis
  • Datenschutz
  • DE
  • Login