smartfield注释-valuehelp下拉列表-不显示描述 [英] smartfield annotation - valuehelp dropdown - does not show description

查看:61
本文介绍了smartfield注释-valuehelp下拉列表-不显示描述的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,即智能字段(使用WebIDE在xml视图中构建)不显示关键字段的描述,而是仅在两个下拉列表列中显示关键字段.

I have a problem where the smartfield (build in xml view using WebIDE) does not show the description of the key field instead just shows the key field in both the dropdown list columns.

示例:1(1),预期值为1(地方税).

example : 1(1) and the expectation is 1( local tax ) .

我的服务是使用tcode:SEGW构建的,并使用WebIDE将下拉列表的ui和注释开发为固定列表.

My service is built using tcode : SEGW and using WebIDE to develop the ui and annotation for the dropdown as a fixed list.

我看到了 smartfield注释-valuehelp下拉列表的解决方案,但是我无法添加sap:text到我在SEGW中的服务.

I see a solution smartfield annotation - valuehelp dropdown , but I am unable to add the sap:text to my service in SEGW.

问题:

问题屏幕截图

WebIDE中的注释:

Annotation in WebIDE:

        </Annotations>
        <Annotations Target="Metadata.ET_FV60Header/Pmethod">
            <Annotation Term="Common.Text" String="Text1"/>
            <Annotation Term="Common.ValueListWithFixedValues" Bool="true"/>
            <Annotation Term="Common.ValueList">
                <Record>
                    <PropertyValue Property="CollectionPath" String="VH_PmtMethSet"/>
                    <PropertyValue Property="Parameters">
                        <Collection>
                            <Record Type="Common.ValueListParameterInOut">
                                <PropertyValue Property="LocalDataProperty" PropertyPath="Pmethod"/>
                                <PropertyValue Property="ValueListProperty" String="Zlsch"/>
                                <Annotation Term="Common.Label" String="Text1"/>
                            </Record>
                            <Record Type="Common.ValueListParameterDisplayOnly">
                                <PropertyValue Property="ValueListProperty" String="Text1"/>
                            </Record>
                        </Collection>
                    </PropertyValue>
                </Record>
            </Annotation>
        </Annotations>

推荐答案

我能够通过添加属性"sap:text"来解决该问题.使用以下内容在SAP中定义我的实体;

I was able to solve the problem by adding the property "sap:text" to my entity definition in SAP using the following;

  1. 使用tcode SE80或SE24打开相应的ZCL * MPC_EXT类.
  2. 重新定义方法"DEFINE".在以上课程下.对于通过tcode创建的服务,可以在此方法中添加其他属性:SEGW.

在DEFINE方法下添加的代码

** ET_Entity是我的价值帮助实体"数据模型名称(不是实体集)** FIELD_ID是我们要在下拉列表中显示说明的上述实体下的键属性.** FIELD_DESC是包含描述的属性.

** ET_Entity is my Value Help Entity data model name ( not entity set) ** FIELD_ID is the key property under the above entity to which we want to display the description in the dropdown list. ** FIELD_DESC is the property that contains the description.

实体元数据:

值帮助的实体数据定义(作为下拉列表)

这篇关于smartfield注释-valuehelp下拉列表-不显示描述的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆