Release Notes 22.1.000
Version Information
Version Information |
|---|
Release 22.1.000 |
Bootstrap 5 Upgrade
This release requires to update to Bootstrap Version 4.
See https://getbootstrap.com/docs/5.0/migration/ for details on this mandatory step to perform the update on existing projects.
Angular 22 Migration
Projects upgrading to the SmartComponent Library NG 22.1 release line must also migrate to Angular 22. See Migrating to Angular 22 for prerequisites, update commands, migration-only commands, breaking changes, and validation guidance.
Custom Smart Form Providers
Custom Smart Form implementations should use provideSmartFormInstanceServices() to register the services that must be scoped to each form instance. See Using provideSmartFormInstanceServices in custom Smart Forms for implementation and migration guidance.
System requirements
An overview of required dependencies and version can be obtained at https://consultingwerk.atlassian.net/wiki/spaces/SCL/pages/862060549 .
Overview of included tickets
Bug Fixes
SCLNG-1531 Smart Dialog dimensions respected more consistently
Smart Dialog sizing now treats configured width and height values as actual dialog sizing constraints rather than only loose minimums. The dialog layout was adjusted so embedded content can flex correctly inside the available space. Related SmartFramework Administration dialogs, including the Open Object Master dialog, were updated so large grids remain contained inside the Kendo dialog. This improves usability for dialog-heavy workflows where fixed or bounded dimensions are required.
SCLNG-1569 Correct copied row editing after Smart Grid copy
Smart Grid copy handling was fixed so inline edit moves to the copied row instead of remaining on the original source row. The grid now waits until the copy operation has updated selection state before enabling the edit row. Additional guards handle empty selected-row arrays during the copy flow. This avoids a race where users could accidentally keep editing the original record immediately after copying it.
SCLNG-1598 Badge image-only fallback is centered
Smart Badge rendering was improved for narrow badge containers that cannot show both image and text. When the badge falls back to image-only display, the image is now centered within the badge box. Text overflow is handled with ellipsis when there is enough room for text but not the full label. This produces a cleaner badge presentation in constrained grid or viewer layouts.
SCLNG-1631 Smart Data Source request cancellation uses valid request tracking
Smart Data Source request cancellation was corrected for Smart Lookup autocomplete flows. Calls to cancel pending requests now use the proper request tracking so the backend no longer rejects them with an invalid client request id. This complements the lookup and combo editor cancellation behavior by making the underlying cancellation call effective. Users get fewer stale autocomplete responses and fewer cancellation-related backend errors during fast typing.
SCLNG-1674 SSEH screenvalues now mirror JSDO catalog fields
SSEH screenvalue serialization now filters records against the JSDO catalog before posting values to the backend. Client-only and transient properties are stripped from root and view-table records, while catalog-defined fields, including valid indexed fields, are preserved. This prevents backend READ-JSON failures caused by frontend-only structures being sent as temp-table fields. The payload now more closely matches what the JSDO itself would submit for the same data.
SCLNG-1683 Before-image SSEH payload uses backend-compatible shape
SSEH screenvalues that include prods:before now use a JSDO/ProDataset-compatible change payload shape. Table entries are serialized in the structure expected by the backend before-image parser instead of the legacy compact object shape. This fixes failures in backend event handling when before-image data is present. The legacy compact shape is preserved for cases where no before-image is emitted.
SCLNG-1694 Smart Grid inline editing keeps row selection in sync
Smart Grid now keeps row selection synchronized when inline editing starts on a different row. If another row is already being edited, the grid completes the cancel or veto flow before moving edit state and selection to the requested row. Public selection state is updated consistently, so toolbar actions and dependent components see the row that is actually being edited. This prevents updates from remaining on the previous row or silently failing to open the newly requested row.
SCLNG-1695 Pixel-layout buttons render correctly in embedded Smart Frames
Embedded Smart Frames now apply pixel-layout positioning and dimensions to button fields as well as lookup and text fields. Frame-level style settings are passed through the Smart Form wrapper, restoring the relative positioning and configured height required by absolute child coordinates. Button wrappers now resolve the underlying DOM element correctly, allowing configured button size and placement to take effect. Pixel-designed frames such as Search Attribute Values therefore render their controls in the repository-defined layout without overlaps.
SCLNG-1696 Application dropdown popup aligns with its input
The Application selector in Smart Developer Tools now opens its dropdown directly beneath the input field. Popup placement uses the surrounding Smart Form's configured append target instead of always appending to the component's scrollable flex container. Windowed and inline forms therefore use the same placement strategy as Smart Combo Editor controls. This prevents the popup from appearing offset from the selector during AppServer configuration.
SCLNG-1697 Smart Icon Picker borders restored across built-in themes
Smart Icon Picker once again displays its complete outer border in the Syntra, Rounded Light, and Nimbus themes. Theme styling now clips the inner textbox and caret backgrounds to the picker's padding box so they cannot paint over the wrapper's bottom border. The change also preserves each theme's configured rounded corners. Icon selectors in maintenance forms therefore have the same complete input outline as other composite controls.
SCLNG-1698 Selected Smart Icon remains visible across built-in themes
The selected icon in Smart Icon Picker is now fully visible in the Nimbus, Syntra, and Rounded Light themes. Theme-specific picker styling removes generic input-prefix padding from the icon glyph inside its fixed-width slot. The glyph is no longer pushed underneath the adjacent opaque input field. Users can therefore confirm the current icon selection without opening the picker.
SCLNG-1702 Object Master Designer cancel and toolbar actions restored
Object Master Designer now handles Cancel, Add, Save, and related toolbar actions correctly when its viewer and attributes grid share one toolbar. SmartComponent Library NG tracks grid-owned toolbar transactions and coordinates them with dispatch to the active data-entry target. Legacy toolbar consumers remain compatible without disabling an action before the active viewer can process it. Cancel once again reverts edited values, clears the dirty state, disables the viewer, and restores the toolbar to a usable state. Subsequent actions such as Add continue to work after a cancelled edit.
Improvements
SCLNG-939 PDF document viewer component and lifecycle fixes
SmartComponent Library NG includes a PDF-oriented document viewer component with toolbar mapping and auto-load behavior. The viewer lifecycle now clears stale documents before new loads and during teardown, which avoids showing an old PDF while a new document is being prepared. Registry waiters and selected-document binding were hardened as part of the component work. Diagnostics are routed through the Smart logger and error handler so viewer failures are reported consistently with the rest of the framework. This gives applications a reusable document-viewing surface for PDF content with more predictable cleanup and error handling.
SCLNG-999 Compatible MessageId casing in question payloads
Question payload handling now accepts both MessageId and MessageID when exchanging Smart UI Action questions with the backend. SmartComponent Library NG normalizes the two property names so they remain synchronized internally. Outgoing payloads use the backend-canonical MessageID spelling, while existing clients that send MessageId continue to work. This removes manual property mapping and improves compatibility between frontend validation questions and SmartComponent Library backend question objects.
SCLNG-1310 Centralized Smart Form instance providers
Smart Form now exposes a reusable provideSmartFormInstanceServices() helper that registers services which must be scoped to a single form instance. Standard Smart Forms and custom form implementations can use the same provider set instead of repeating service entries in each component. This keeps new form-scoped services available to repository-driven forms and custom forms as soon as the framework provider list is updated. The change reduces downstream maintenance in SmartFramework Administration forms when additional registries or form-level services are introduced.
SCLNG-1311 Reworked Smart Form launch and close lifecycle
Smart Form launching has been reworked around a central lifecycle that supports repository-form launches, modal launches, SDI/floating-window presentation, custom form context, and external data sources. Launched forms can return dialog-style results and additional payload data to the caller. Form lifecycle handling now covers FormClosing, FormClosed, and modal close behavior, including the ability to block a close when the server-side FormClosing event fails or cancels. Custom SmartFramework Administration forms were updated to use the same form SSEH service path as standard forms. This gives dynamic launch scenarios a consistent frontend contract for both framework-provided and custom forms; see Server-driven form launch and close lifecycle for configuration and usage details.
SCLNG-1317 Smart Grid double-click action support
Smart Grid now supports a configurable double-click action independent of the existing default action behavior. The new configuration can start inline edit, switch the associated viewer into edit mode, open a detail form in view or update mode, or explicitly disable double-click handling. Both backend-style DoubleClickAction and frontend-style doubleClickAction configuration are accepted by the grid wrapper. This lets repository layouts define a double-click interaction that matches the intended workflow without relying on a single global default.
SCLNG-1318 Server-driven form launch and close UI actions
SmartComponent Library NG now supports server-side event handler UI actions for launching and closing forms. Backend handlers can request form launches using the new lifecycle introduced for dynamic launching, including modal behavior and launch parameters. Close actions participate in the same lifecycle as user-initiated closes, so form closing events and modal result handling remain consistent. This makes backend-driven navigation and dialog flows possible without custom client-side glue code for each form. See Server-driven form launch and close lifecycle for configuration and usage details.
SCLNG-1325 Before-image values in SSEH screenvalues
Server-side event handler calls can now include a before-image alongside the current screen values. The before-image is exposed from the Smart Data Source contract and is serialized under screenvalues.prods:before, mirroring the JSDO change-tracking convention. This gives server-side handlers access to both the original selected values and the edited screen values when processing viewer, grid, toolbar, form, frame, and related SSEH events. Created records continue to omit a before-image because there is no original row state for add or copy operations.
SCLNG-1341 Combo editors in input prompt questions
Input prompt questions can now render combo editors by using the combo property type and the same control options available to Smart Viewer combo fields. The implementation supports Business Entity combo boxes, simple value lists, value-list pairs, and value-list keys with deterministic option resolution. PascalCase and lower-camel-case option names are normalized, including LimitToList variants and display/value combinations. Comma-separated display and value definitions are interpreted consistently before values are returned to the question parameter object. This enables server-driven questions and validation prompts to collect constrained choices without custom frontend dialogs.
SCLNG-1376 Foreign-field mappings for Smart Data Source view tables
Smart Data Source now derives foreign-key field and value mappings for both entity tables and associated view tables during record initialization. GetInitialValues receives table-aligned arrays so each table's foreign fields correspond to values from the parent data source. Tables without a mapping retain an empty entry, preserving positional alignment across the dataset. This allows added child records with view-table data to inherit the correct parent context without custom initialization logic.
SCLNG-1386 Autocomplete filtering for Smart Lookup named queries
Smart Lookup autocomplete now applies the user's search phrase to records returned by named queries. Filtering is performed on the client after the query result arrives, so named-query lookups no longer default to an unrelated first record. The same behavior also applies when lookup configuration uses an explicit query string. This keeps autocomplete suggestions aligned with typed input while preserving backend-defined query logic.
SCLNG-1429 Clear errors for invalid detail-form datasource mappings
Detail-form datasource mappings are now validated instead of failing silently when a referenced datasource cannot be found. The validation reports which mapped datasource names are missing and includes the available datasource names to make configuration mistakes easier to diagnose. Datasource lookup and registry behavior were normalized to handle repository names case-insensitively. This helps users and developers identify invalid DetailFormDataSources configuration before it turns into confusing downstream form behavior.
SCLNG-1449 Active tab-page context in SSEH calls
Server-side event handler payloads now include the active page information for tab folders. The payload tracks each tab folder instance together with the active tab key and index, including nested tab folders. Server-side handlers can use this context to understand which tab page the user was working in when the event fired. This removes the need for handlers to infer tab state indirectly from other form data.
SCLNG-1467 Status bar updates from server-side event handlers
Server-side event handlers can now return a SetStatusBarText UI action to update application status bar content. The action exposes a text value that SmartComponent Library NG routes through the registered status bar integration. Forms can provide immediate workflow feedback, such as reflecting the currently selected record, without custom client-side handlers. Status text updates therefore participate in the same standardized UI-action response pipeline as other server-driven interface changes.
SCLNG-1468 Enable or disable tab pages from server-side event handlers
Server-side event handlers can now enable or disable individual tab-folder pages through the EnableDisableTabPage UI action. A page can be addressed by its key or index, and an optional tab-folder instance selects the target folder. When no folder instance is supplied, the first registered tab folder is used. Tab-folder resolution is asynchronous and a missing Enabled value is handled consistently with the backend contract. This lets backend workflow logic control page availability without form-specific frontend code.
SCLNG-1473 Multi-selection support for Smart Lookup
Smart Lookup now supports multi-selection workflows driven by lookup options such as multiple and delimiter. Users can select multiple rows from the lookup dialog or enter a delimited list of display values directly. Single-value lookup behavior remains unchanged, including normal key-field handling. Multi-value input returns the delimited display text and clears the key value rather than attempting per-segment key resolution. The eXperience Package also ships theme support for the chip-style multi-selection lookup presentation.
SCLNG-1502 Modal floating forms hide window sizing actions
Modal forms opened in floating windows no longer display maximize or minimize actions. SmartComponent Library NG tracks the modal state on the window reference and uses it when rendering window controls. Non-modal floating forms and detail forms retain their normal sizing actions. This prevents users from changing modal windows into states that conflict with the blocking dialog workflow.
SCLNG-1504 Configurable HelpText visualization API
SmartComponent Library NG now provides a DI-based HelpText visualization system that can be configured at project or downstream package level. Applications can use the built-in tooltip behavior, render HelpText as empty-field placeholder text, disable visualizations, or provide custom visualization implementations. Configuration is merged by host type so downstream packages can override specific areas such as fields, grids, forms, tab folders, or document viewers without replacing every setting. The API includes visualization context, support checks, teardown, and overlay coordination so multiple visualizations can coexist predictably. This turns HelpText into an extensible UI feature instead of a single hard-coded tooltip path; see HelpText Visualizations for configuration and extension details.
SCLNG-1509 New Nimbus application theme
The eXperience Package now includes the Nimbus theme as a selectable built-in application theme. Nimbus introduces its own color palette, button and input styling, breadcrumb layout, and coordinated border-radius settings for buttons and windows. It also supports drawer-based placement for the user menu, settings, window list, and drawer toggle, with application configuration applied at startup. SmartComponent Library NG supplies the breadcrumb back-button behavior used by the theme, while SmartFramework Administration supports the required shell configuration. The result is a cohesive alternative presentation that can be selected through application settings without custom theme code.
SCLNG-1521 Grow-only automatic sizing for Smart Grid badge columns
Smart Grid badge columns now measure their rendered content after data loads and grow when necessary to avoid truncating badges. The calculated width never shrinks below the configured baseline or a previously applied larger width during the current view. Measurements are refreshed when sorting, filtering, grouping, column visibility, or tab selection changes the rendered content. Widths are cached by badge key and account for header and cell presentation without requiring the grid to be resizable. This keeps badge text and icons readable while avoiding distracting column shrinkage.
SCLNG-1523 Theme-aware default badge styles
The eXperience Package now provides ten numbered badge styles, badge01 through badge10, for every built-in theme. Semantic styles for error, warning, info, and success states are included alongside the numbered variants. Theme mixins derive coordinated background, border, and contrast-aware text colors while allowing theme-specific overrides. Applications can apply consistent badge presentation without defining a separate color set for each theme.
SCLNG-1540 Disabled Smart Viewer text areas remain scrollable
Disabled Smart Viewer editor controls backed by Kendo TextArea can now still be scrolled. This allows users to inspect long readonly or disabled text values without temporarily enabling the field. The change enables pointer interaction on the inner textarea while preserving the disabled editing state. It makes disabled viewer fields more useful in forms that display multi-line text or large notes.
SCLNG-1570 Grid filtering disabled when no columns are filterable
Smart Grid now computes the grid-level filterable setting from the actual column metadata. When no grid columns are filterable, the grid disables filtering instead of rendering filter UI that cannot be used. This keeps the grid behavior aligned with the configured column capabilities. It also avoids confusing users with a filter surface that has no valid filter targets.
SCLNG-1594 Lookup and combo requests cancel when typing resumes
Smart Lookup autocomplete and filterable Smart Combo Editor now cancel pending data requests when the user continues typing. This prevents slow responses from an older search term from overwriting the newer user input. The behavior keeps displayed suggestions aligned with the current search phrase instead of a stale request. It improves reliability for remote data sources or slow network conditions where autocomplete responses can arrive out of order.
SCLNG-1632 Toolbar buttons without TableIO targets can run event handlers
Toolbar buttons can now execute local and server-side ToolClick event handlers even when the toolbar has no action TableIO target. This supports forms that use toolbar commands but do not participate in standard data-entry TableIO workflows. Targetless toolbar events are handled explicitly instead of being blocked by missing target state. The change makes command-only forms and utility toolbars easier to model in the repository.
SCLNG-1633 Toolbar SSEH calls include the active TableIO target
Toolbar and ribbon server-side event handler calls now include the active TableIO target name. Backend handlers can use this value to understand which viewer or grid the toolbar command was targeting at the time of invocation. The same implementation also handles targetless toolbar buttons for workflows that do not have a TableIO target. This gives toolbar SSEH calls a more complete and consistent execution context.
SCLNG-1644 Lookup fields supported in SSEH input prompts
Server-side event handler input prompts now support lookup fields in the Angular frontend. Lookup definitions can come from repository-backed descriptors or from lookup properties supplied directly by the server-side handler. The prompt can control whether the lookup assigns display text, value, or key-value data to the parameter object. This brings lookup-based prompt interactions to SmartComponent Library NG for workflows that already expose lookup metadata from the backend.
SCLNG-1645 Reliable ABL filter parsing for names ending in operator text
ABL filter parsing no longer mistakes the end of a table or field name for a word-based comparison operator. Operators such as LE, EQ, and CONTAINS must now be separated by whitespace, while symbolic operators such as =, <=, and <> remain valid without additional spacing. Table and field names containing hyphens are also accepted by the parser. OpenQueryUiAction filters therefore handle names such as eKostenstelle correctly instead of splitting them at an operator-like suffix.
SCLNG-1669 Disabled grid columns can use distinct styling
Smart Grid can now render disabled columns with distinct styling, including a disabled-column background color supplied by the theme. The implementation adds disabled-column classes and theme styling while accounting for inline editing, row selection, virtual scrolling, and grouped grids. SmartFramework Administration attribute grids were updated to apply the disabled class where needed. This makes readonly or disabled columns easier to distinguish without changing their data behavior.
SCLNG-1671 Generic deep-link capture and dispatch mechanism
SmartComponent Library NG now provides a generic deep-link mechanism for shareable links into a specific application state. Applications and downstream packages can register handlers through the SMART_DEEP_LINK_HANDLER extension point while SmartComponent Library NG handles URL capture, login-safe persistence, dispatch, and URL cleanup. Shareable URLs are built against the application base href and can use the configurable features.deepLink.paramName setting. Deep links are dispatched once after authentication is ready, so links can survive login redirects without reopening repeatedly on refresh. This feature provides the framework foundation used by the Object Master Designer deep-link work; see Generic Deep Links (Shareable Links) for configuration and usage details.
SCLNG-1672 Empty string ABL filters stay empty strings
OpenQueryUiAction filter parsing now preserves empty string comparisons in ABL query strings. A condition such as KD-Datenursprung EQ "" is no longer converted into a numeric zero comparison. This prevents string filters from returning the wrong data when the intended comparison is against an empty character value. The fix is in the ABL-to-Kendo filter conversion path used when opening queries from UI actions.
SCLNG-1677 Dynamic layout fragments inside an existing Smart Form
SmartComponent Library NG now has a dynamic layout fragment host for loading and swapping Smart Form layout fragments inside an existing form runtime. Fragment data sources and controls are registered into the parent form rather than creating a nested Smart Form. This preserves the parent form identity for SSEH, screen values, TableIO targets, toolbar behavior, and UI action resolution. Slot replacement cleans up the previous fragment without clearing unrelated parent-form registrations. The feature is the reusable runtime primitive used by tree-view form detail panes and other hot-swappable form regions.
SCLNG-1678 Smart Form tree-view layouts supported
SmartComponent Library NG can now render Smart Form JSON layouts that represent tree-view forms through settings.rootNodeType. The form remains a single parent Smart Form runtime while the tree is rendered in the left pane and selected-node detail templates are rendered in a right-side dynamic layout slot. Detail controls participate in the parent form for data sources, dirty state, TableIO, SSEH payloads, and UI actions. Tree-view detail loading handles template URLs, fragment lifecycle, parent foreign keys for added records, and edit-lock feedback. Existing standalone Smart Tree View usage remains compatible while repository-defined tree-view forms gain first-class runtime support.
SCLNG-1684 Line breaks preserved in error messages
Error and SmartMessage dialogs now preserve line breaks from backend error text. Multi-line validation or conflict messages are displayed with their intended structure instead of being collapsed into one line. This makes detailed backend messages easier to read, especially when they list multiple field values or diagnostic details. The change improves message clarity without changing the backend message contract.