Smart templates provide a framework for generating UIs at runtime based on metadata annotations and predefined templates for the most used application patterns. The goals are to ensure design consistency, keep apps up to date with evolving design guidelines, and reduce the amount of frontend code for building SAP Fiori apps.
The term “smart” refers to the annotations that add semantics and structures to the provided data, and the way in which the templates understand these semantics.
Smart templates are part of the SAPUI5 delivery.
Smart templates – The production line for UIs
Development steps in creating a smart template SAP Fiori app
The responsiveness of the smart templates depends on the responsiveness of the controls used.
The templates generally use priority annotation on fields and actions to control responsiveness. This annotation supports the values high, medium, and low. Annotating actions with a priority level helps to control the overflow behavior of the toolbar. In the responsive table, the priorities also define the pop-in behavior of columns.
Behavior and Interaction
The behavior and interaction generally follows the guidelines for the respective floorplan or concept. If the guideline offers choices, the templates implement the most generic option or, where possible, provide different options to choose from. Deviations from the guidelines are sometimes necessary due to current technical limitations, which are listed on the respective pages.
The templates contain a certain amount of default text, which can be overridden by the app development team if necessary. One such example is standard message texts.
The templates offer breakout scenarios at page level, where it’s possible to add, remove, or replace whole pages, and at section level on the object page. See the object page article for more details.
Want to dive deeper? Follow the links below to find out more about related controls, the SAPUI5 implementation, and the visual design.