on 08-27-2018 3:18 PM
Hi,
I've got simple app which i want the user to input some data and a controll field, which is simple 4 characters.
By that i mean that there is label with
text = {Code}
and it displays fine.
I've also a input field and in controller i can access it with simple
var input = this.getView().byId("input").getValue()
But i can't find a way to compare user input to {Code}.
What is the appropriate way to do it?
As far as I can see your {Code} is inside your default model (you haven't specified a model so I just assumed it).
If you want to get the value of {Code} you can do
this.getView().getModel().getProperty("/Code")
This is a very basic thing to do. I would suggest you to first read carefully the documentation and video tutorial about how SAPUI5 works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.