on 07-10-2015 4:05 PM
Hi, i'm new in SapUi5.
in my first page I have an input form, after I click search im going to set model like this:
sap.ui.getCore().setModel(oJsonModel,"VascheDetails");
After I call a new page I want to see the objects of the first row in ObjectHeader. I tried like this
<ObjectHeader
headerText="Dettagli vasca"
title="{VascheDetails>/0/Matnr}">
<attributes>
<ObjectAttribute title="Materiale" text="" />
<ObjectAttribute title="Partita" text="" />
<ObjectAttribute title="Codice Campagna" text="{VascheDetails>/0/Zccam}" />
<ObjectAttribute title="Data prod. vasca" text="{VascheDetails>/0/Datav}" />
</attributes>
</ObjectHeader>
but it doesn't work. How can I solve my problem?
Thank you
Giacomo
this.getView().setModel(oJSONModel,"VascheDetails") // Declare your model in onInit
method of controller and then write this
Why you have used /0 here?? Is this the actual path?
Is this an oDataModel or JSONModel??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Then my first question is:-
binding="{VascheDetails>/0}"
this.getView().setModel(oJsonModel,"VascheDetails");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.