-1
私のコントローラにテーブルを作成しました。onRoutePatternMatched
です。 今、私はこのテーブルをビューに持っていきたいと思います。 これを行う必要がありますoTable.placeAt("sample1");
XMLビューでテーブルを挿入
xml-viewの特定の場所に挿入する正しいコードは何ですか?
Home.view.xml
<?xml version="1.0" encoding="UTF-8" ?>
<mvc:View controllerName="ztest.controller.VarConf" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m"
xmlns:html="http://www.w3.org/1999/xhtml">
<Page>
<content id="sample1"></content>
<content id="sample2">
<Label text="{varConfDet>/chassisnr}" />
</content>
</Page>
</mvc:View>
エラー: sap-ui-core.js:152 Uncaught Error: DOM element with ID 'sample1' not found in page, but application tries to insert content.
ビュー内でテーブルを定義しないのはなぜですか? – matbtt