I’m working on a SAP Fiori Elements V4 (OData V4) app using a sap.ui.table.GridTable.
Users edit a “description” field in a GridTable column. For single-line inputs, users don’t see any character counter, so they often exceed the max length and only notice at save time.
In UI5, sap.m.TextArea can show the exceeded text / counter, but when FE renders the field as a TextArea, the GridTable row height grows and the layout becomes inconsistent.
What I want:
- keep the column visually single-line (same row height as other inputs)
- show a character counter
-allow scrolling for long text instead of growing height (rows=1, growing=false)
What I tried:
overriding FieldGroup and/or LineItem fields with a custom fragment template that renders sap.m.TextArea.
valueLiveUpdate="true" showExceededText="true" width="100%" />Adding it to controlConfiguration
- Either nothing changes (template not applied)
- Or the entire table disappears
How can I add a live character counter to a single-line editable column in a Fiori Elements V4 GridTable (without increasing row height), using supported annotations or extensions?
Any help would be appreciated.