3. 3
What is XML Template
XML View as a
Template
XML Dom
(View/fragment)
XML
Preprocessor
The XML templating concept enables you to use an XML view/fragment as a
template.
4. 4
• Used for customizing or personalizing the Product
• To Create view or part of UI Dynamically
• Flexibility to create user specific UI
• Easy to control UI fields from backend(Annotations)
• Some time extending Smart Template is not enough
Making the UI or Parts of UI Smart.
Why XML Template
7. 7
Annotations - As prerequisite
Meta Model - <oDataModel>.getMetaModel()
Meta Context - <MetaModel>.getMetaContext(<sPath>)
Pre-processing Instruction
Annotation Helper
What is required
8. 8
Machine-readable additional metadata
Semantic annotations “sap:semantics”(e.g.
‘tel’,’address’, unit-of-measure, currency-code
etc.)
Capability annotations(inserts, updates, or
deletes)
Vocabularies
Vocabularies provide the ability to
annotate metadata as well as instance
data, and define a powerful
extensibility point for OData.
Annotations