<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Smart Table with annotation.xml in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/smart-table-with-annotation-xml/qaa-p/14258113#M4930697</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I resolved the issue. I needed to pass my &lt;CODE&gt;annotations.xml&lt;/CODE&gt; file during the model creation.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        const serviceUri = this.getOwnerComponent()!.getManifestEntry("/sap.app/dataSources").mainService.uri;
        console.log("serviceUri: " + serviceUri);

        const localAnnotationUrl = sap.ui.require.toUrl("dummy3/annotations/annotation0.xml");
        console.log("localAnnoUrl: " + localAnnotationUrl);

        const model = new ODataModel(serviceUri, {
            annotationURI: localAnnotationUrl
        });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Oct 2025 16:43:59 GMT</pubDate>
    <dc:creator>francesco_zambon21</dc:creator>
    <dc:date>2025-10-31T16:43:59Z</dc:date>
    <item>
      <title>Smart Table with annotation.xml</title>
      <link>https://community.sap.com/t5/technology-q-a/smart-table-with-annotation-xml/qaq-p/14257535</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I created a freestyle application configured with an OData V2 service. After generating the project, I added an &lt;CODE&gt;annotations.xml&lt;/CODE&gt; file to define the columns for my entity type. Then, I added a SmartTable controller bound to my entity.&lt;/P&gt;&lt;P&gt;However, the columns are not being displayed in the SmartTable.&lt;BR /&gt;Could you please help me understand what might be missing or incorrectly configured?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Main.view.xml&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;mvc:View
    controllerName="dummy3.controller.Main"
    xmlns:mvc="sap.ui.core.mvc"
    xmlns="sap.m"
    xmlns:smartTable="sap.ui.comp.smarttable"
&amp;gt;
    &amp;lt;Page
        id="page"
        title="{i18n&amp;gt;title}"
    &amp;gt;
        &amp;lt;smartTable:SmartTable
            id="idSalesOrderSmartTable"
            entitySet="ZC_SALESORDER_HEADER"
            header="Sales Order"
            enableAutoBinding="true"
        /&amp;gt;
    &amp;lt;/Page&amp;gt;
&amp;lt;/mvc:View&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Main.controller.ts&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import SmartTable from "sap/ui/comp/smarttable/SmartTable";
import Controller from "sap/ui/core/mvc/Controller";
import ODataModel from "sap/ui/model/odata/v2/ODataModel";

/**
 * &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/2105801"&gt;@namespace&lt;/a&gt; dummy3.controller
 */
export default class Main extends Controller {

    /*eslint-disable @typescript-eslint/no-empty-function*/
    public onInit(): void {

        const serviceUri = this.getOwnerComponent()!.getManifestEntry("/sap.app/dataSources").mainService.uri;
        console.log("serviceUri: " + serviceUri);
        const model = new ODataModel(serviceUri);

        this.getView()!.setModel(model);
    }
}&lt;/LI-CODE&gt;&lt;P&gt;annotation0.xml&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0"&amp;gt;
    &amp;lt;edmx:Reference Uri="/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Vocabularies(TechnicalName='%2FIWBEP%2FVOC_COMMON',Version='0001',SAP__Origin='LOCAL')/$value"&amp;gt;
        &amp;lt;edmx:Include Namespace="com.sap.vocabularies.Common.v1" Alias="Common"/&amp;gt;
    &amp;lt;/edmx:Reference&amp;gt;
    &amp;lt;edmx:Reference Uri="/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Vocabularies(TechnicalName='%2FIWBEP%2FVOC_UI',Version='0001',SAP__Origin='LOCAL')/$value"&amp;gt;
        &amp;lt;edmx:Include Namespace="com.sap.vocabularies.UI.v1" Alias="UI"/&amp;gt;
    &amp;lt;/edmx:Reference&amp;gt;
    &amp;lt;edmx:Reference Uri="/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Vocabularies(TechnicalName='%2FIWBEP%2FVOC_COMMUNICATION',Version='0001',SAP__Origin='LOCAL')/$value"&amp;gt;
        &amp;lt;edmx:Include Namespace="com.sap.vocabularies.Communication.v1" Alias="Communication"/&amp;gt;
    &amp;lt;/edmx:Reference&amp;gt;
    &amp;lt;edmx:Reference Uri="/sap/opu/odata/sap/ZUI_CUSTOMERS_SRV_V2/$metadata"&amp;gt;
        &amp;lt;edmx:Include Namespace="cds_zc_customers_srv" Alias="SAP"/&amp;gt;
    &amp;lt;/edmx:Reference&amp;gt;
    &amp;lt;edmx:DataServices&amp;gt;
        &amp;lt;Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="local1"&amp;gt;

            &amp;lt;Annotations Target="cds_zc_customers_srv.ZC_SALESORDER_HEADERType"&amp;gt;
                &amp;lt;Annotation Term="UI.LineItem"&amp;gt;
                    &amp;lt;Collection&amp;gt;
                        &amp;lt;Record Type="UI.DataField"&amp;gt;
                            &amp;lt;PropertyValue Property="Value" Path="OrderNumber"  /&amp;gt;
                        &amp;lt;/Record&amp;gt;
                    &amp;lt;/Collection&amp;gt;
                &amp;lt;/Annotation&amp;gt;
                
            &amp;lt;/Annotations&amp;gt;
        &amp;lt;/Schema&amp;gt;
    &amp;lt;/edmx:DataServices&amp;gt;
&amp;lt;/edmx:Edmx&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;manifest.json&lt;/P&gt;&lt;LI-CODE lang="json"&gt;{
    "_version": "1.76.0",
    "sap.app": {
        "id": "dummy3",
        "type": "application",
        "i18n": "i18n/i18n.properties",
        "applicationVersion": {
            "version": "0.0.1"
        },
        "title": "{{appTitle}}",
        "description": "{{appDescription}}",
        "resources": "resources.json",
        "sourceTemplate": {
            "id": "@sap/generator-fiori:basic",
            "version": "1.19.0",
            "toolsId": "48310874-b0e7-4597-8f03-42bef0d4e584"
        },
        "dataSources": {
            "ZUI_CUSTOMERS_SRV_V2_VAN": {
                "uri": "/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annotations(TechnicalName='ZUI_CUSTOMERS_SRV_V2_VAN',Version='0001')/$value/",
                "type": "ODataAnnotation",
                "settings": {
                    "localUri": "localService/mainService/ZUI_CUSTOMERS_SRV_V2_VAN.xml"
                }
            },
            "mainService": {
                "uri": "/sap/opu/odata/sap/ZUI_CUSTOMERS_SRV_V2/",
                "type": "OData",
                "settings": {
                    "annotations": [
                        "ZUI_CUSTOMERS_SRV_V2_VAN",
                        "annotation0"
                    ],
                    "localUri": "localService/mainService/metadata.xml",
                    "odataVersion": "2.0"
                }
            },
            "annotation0": {
                "type": "ODataAnnotation",
                "uri": "annotations/annotation0.xml",
                "settings": {
                    "localUri": "annotations/annotation0.xml"
                }
            }
        }
    },
    "sap.ui": {
        "technology": "UI5",
        "icons": {
            "icon": "",
            "favIcon": "",
            "phone": "",
            "phone@2": "",
            "tablet": "",
            "tablet@2": ""
        },
        "deviceTypes": {
            "desktop": true,
            "tablet": true,
            "phone": true
        }
    },
    "sap.ui5": {
        "flexEnabled": true,
        "dependencies": {
            "minUI5Version": "1.141.3",
            "libs": {
                "sap.m": {},
                "sap.ui.core": {}
            }
        },
        "contentDensities": {
            "compact": true,
            "cozy": true
        },
        "models": {
            "i18n": {
                "type": "sap.ui.model.resource.ResourceModel",
                "settings": {
                    "bundleName": "dummy3.i18n.i18n"
                }
            },
            "": {
                "dataSource": "mainService",
                "preload": true,
                "settings": {}
            }
        },
        "resources": {
            "css": [
                {
                    "uri": "css/style.css"
                }
            ]
        },
        "routing": {
            "config": {
                "routerClass": "sap.m.routing.Router",
                "controlAggregation": "pages",
                "controlId": "app",
                "transition": "slide",
                "type": "View",
                "viewType": "XML",
                "path": "dummy3.view",
                "async": true,
                "viewPath": "dummy3.view"
            },
            "routes": [
                {
                    "name": "RouteMain",
                    "pattern": ":?query:",
                    "target": [
                        "TargetMain"
                    ]
                }
            ],
            "targets": {
                "TargetMain": {
                    "id": "Main",
                    "name": "Main"
                }
            }
        },
        "rootView": {
            "viewName": "dummy3.view.App",
            "type": "XML",
            "id": "App",
            "async": true
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 22:19:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smart-table-with-annotation-xml/qaq-p/14257535</guid>
      <dc:creator>francesco_zambon21</dc:creator>
      <dc:date>2025-10-30T22:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Smart Table with annotation.xml</title>
      <link>https://community.sap.com/t5/technology-q-a/smart-table-with-annotation-xml/qaa-p/14258113#M4930697</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I resolved the issue. I needed to pass my &lt;CODE&gt;annotations.xml&lt;/CODE&gt; file during the model creation.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        const serviceUri = this.getOwnerComponent()!.getManifestEntry("/sap.app/dataSources").mainService.uri;
        console.log("serviceUri: " + serviceUri);

        const localAnnotationUrl = sap.ui.require.toUrl("dummy3/annotations/annotation0.xml");
        console.log("localAnnoUrl: " + localAnnotationUrl);

        const model = new ODataModel(serviceUri, {
            annotationURI: localAnnotationUrl
        });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Oct 2025 16:43:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/smart-table-with-annotation-xml/qaa-p/14258113#M4930697</guid>
      <dc:creator>francesco_zambon21</dc:creator>
      <dc:date>2025-10-31T16:43:59Z</dc:date>
    </item>
  </channel>
</rss>

