0
簡單的問題。我是SAP Fiori的初學者,嘗試從Web IDE SAP Fiori創建的表中檢索值。但我不成功。有人提示如何到達那裏?SAP Fiori從表中獲得價值
<Table id="table0" items="{/Entity1_Set}" noDataText="Drop column list items here and columns in the area above">
<items><ColumnListItem counter="0" id="item1" detailPress="onShowHello" press="" type="DetailAndActive">
<cells>
<Text id="text5" maxLines="0" text="{Id}"/>
<Text id="text6" maxLines="0" text="{field1}"/>
<Text id="text7" maxLines="0" text="{field2}"/>
<Text id="text8" maxLines="0" text="Euro"/>
</cells>
</ColumnListItem>
</items>
<columns>
<Column id="column0">
<header>
<Label id="label0" text="Floor"/>
</header>
</Column>
.JS控制器
sap.ui.define([ 「SAP/UI /核心/ MVC /控制器」 ],功能(控制器){ 「使用嚴格」;
return Controller.extend("QuickStartApplication.controller.View1", {
onShowHello: function(){
sap.m.MessageToast.show("Hello World!");
}
});
});
在hello world中,我想顯示錶格中字段的值。
謝謝。
謝謝你的幫助。 –