扩展项目中的SAPUI5智能字段

扩展项目中的SAPUI5智能字段,sapui5,Sapui5,我有一个工作应用程序(a),它使用XML中的SmartFields。 我基于这个工作应用程序创建了一个扩展项目,我的工作应用程序(A)仍然工作正常,所有数据都按预期显示 但当我运行扩展项目时: 应用程序(A)中使用的SmartFields仅显示标签,未显示绑定值,即使使用UI5检查器,该值也包含数据 即使是我在扩展项目中创建的SmartFields(我为包含SmartFields的额外片段创建了扩展点),也只显示标签,而不显示我插入的值: <core:FragmentDefinition

我有一个工作应用程序(a),它使用XML中的SmartFields。 我基于这个工作应用程序创建了一个扩展项目,我的工作应用程序(A)仍然工作正常,所有数据都按预期显示

但当我运行扩展项目时: 应用程序(A)中使用的SmartFields仅显示标签,未显示绑定值,即使使用UI5检查器,该值也包含数据

即使是我在扩展项目中创建的SmartFields(我为包含SmartFields的额外片段创建了扩展点),也只显示标签,而不显示我插入的值:

<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.uxap" xmlns:layout="sap.ui.layout" xmlns:m="sap.m"
xmlns:suite="sap.suite.ui.commons" xmlns:comp="sap.ui.comp.variants" xmlns:smartForm="sap.ui.comp.smartform"
xmlns:smartField="sap.ui.comp.smartfield">
<ObjectPageSection title="{i18n_AfkoppelingsDossier>tab.Project}" id="projectTab-ObjectPageSection--id">
    <subSections>
        <ObjectPageSubSection>
            <blocks>
                <smartForm:SmartForm id="ProjectSmartFormId" editable="true">
                    <!-- Kolom 1 -->
                    <smartForm:Group label="{i18n_AfkoppelingsDossier>title.project}">
                            <smartForm:GroupElement useHorizontalLayout="true">
                            <m:Input value="abc"/>
                        </smartForm:GroupElement>
                        <smartForm:GroupElement>
                            <smartField:SmartField id="IDWBSElement" textLabel="{i18n_AfkoppelingsDossier>label.WBS.element}" value="a"/>
                        </smartForm:GroupElement>
                        <smartForm:GroupElement useHorizontalLayout="true">
                            <smartField:SmartField id="IDContractNumber" textLabel="{i18n_AfkoppelingsDossier>label.contrNr.contractor}" value="nummerke"/>
                        </smartForm:GroupElement>
                        <smartForm:GroupElement useHorizontalLayout="true">
                            <smartField:SmartField id="IDMaxIntervention" textLabel="{i18n_AfkoppelingsDossier>label.max.intervention}" value="0.00€"/>
                        </smartForm:GroupElement>
                        <smartForm:GroupElement useHorizontalLayout="true">
                            <smartField:SmartField id="IDLocationInfomeeting" textLabel="{i18n_AfkoppelingsDossier>label.location.infomeeting}" value="Locatie"/>
                        </smartForm:GroupElement>
                    </smartForm:Group>
                </smartForm:SmartForm>
            </blocks>
        </ObjectPageSubSection>
    </subSections>
</ObjectPageSection>

我已经检查了我的DevTools,它的值在那里,所以我不知道它为什么不显示值

SmartField的属性:

有什么想法可以导致这个问题吗


提前谢谢

我能够重新创建它,而且
值属性
似乎只适用于绑定

&

data.json和view.xml文件:

[{
“核武器”:“核武器”,
“欧元”:“0.00欧元”,
“本地”:“本地”,
“信”:“a”
}]


请不要截屏您的代码,这是一种不好的做法。请在帖子中包含您的代码:)也许这与
css
有关?如果使用devtools时该值在那里…@eibersji done,对不起:)@OlayinkaO我没有更改任何css,该值显示在属性中,但该值不显示在我的DOM中。是的,也许你可以尝试在devtools中使用css来查看它的隐藏位置,或者使用
CTRL+ALT+SHIFT+S
来使用
控制树
感谢Olayinka的帮助,我决定使用一个简单的表单而不是SmartFields。通过绑定,我的数据显示在我的主应用程序中(已经是这样)。但在我的扩展应用程序中,尽管该值已明确绑定到SmartField,但不知何故,该值并未显示。无需担心,很高兴提供帮助:)