You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

本地注解添加的Smart Table字段不显示,提示“未选择列”问题排查求助

本地注解添加的Smart Table字段不显示,提示“未选择列”问题排查求助

我正在尝试在项目中创建Fiori本地注解,添加的注解代码如下:

</edmx:Reference>
  <edmx:DataServices>
    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="local1">
      <Annotations Target="SAP.PO_Self_Service_HomePage">
        <Annotation Term="UI.LineItem">
          <Collection>
            <Record Type="UI.DataField">
              <PropertyValue Property="Value" Path="Compcode"/>
              <PropertyValue Property="Label" String="Compcode"/>
            </Record>
          </Collection>
        </Annotation> 
      </Annotations>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>

我已经把这段代码更新到annotations文件夹中,同时修改了manifest文件来调用这个注解文件:

"type": "OData", 
    "settings": {
        "annotations": [ 
            "annotation0"
        ],
        "localUri": "localService/mainService/metadata.xml",
        "odataVersion": "2.0"
    }
},
"annotation0": {
    "type": "ODataAnnotation",
    "uri": "annotations/annotation0.xml",
    "settings": { 
        "localUri": "annotations/annotation0.xml"
    }
}

目前没有报错,在浏览器的网络面板里也能看到注解文件正常加载,但Smart Table里就是不显示字段,还弹出以下提示:

Error
There are no columns selected for your table.
Before you perform the search, please make sure that at least one column is made visible...

我还在Smart Table里添加了initialvisiblefields属性,但还是没有效果。

有没有人能帮忙分析下问题出在哪呀?


备注:内容来源于stack exchange,提问作者anjaneylu

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.14 11:09:31