我想value通过value从另一个page或另一个输入区域取一个来设置文本。这是我的文本字段。我为尝试了多种组合this.byId("thisOne").,但没有用。
this.byId("thisOne").setValue("Some thing");
Run Code Online (Sandbox Code Playgroud)
其它的办法:
sap.ui.getCore().byId("thisOne")....
Run Code Online (Sandbox Code Playgroud)
文字元素:
<Text text="" id ="thisOne"/>
Run Code Online (Sandbox Code Playgroud)
我的XML文件:
<mvc:View
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m" controllerName="App.view.Take"
xmlns:l="sap.ui.layout"
xmlns:f="sap.ui.layout.form">
<Page showHeader="false">
<Label text="thisOne" />
<Input text="" id="thisOne" />
<Button type="Accept" text="Accept" ></Button>
<Button type="Reject" text="Reject" ></Button>
</Page>
</mvc:View>
Run Code Online (Sandbox Code Playgroud) sapui5 ×1