本地注解添加的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
相关产品推荐
相关产品推荐

