on 03-25-2016 8:21 AM
Dear friends,
I am new to sap fiori development, recently I create a application with temple in web IDE, but I was confuse how the data model blind the odata or json model.
In sap ui5, we can use this blinding to get the value of specific entity in odata.
But in fiori xml view we can see the data blinding like this, so how this "shipTo>/Name1" blind which field of which entity of my odata model or json model?
farther more, some value like this "{masterView>/title}", but title is either the field or entity, and it did return the number of row in one entity.
In addition, it have another way to blind the value, what's the different between "{buyerName}" and "{path: 'buyerName'}"
Thanks for your sincerely answer!
HI Zongjie
suggest you try the Data Binding tutorial in the SAPUI5 SDK - it will help!
You can also find details of how to handle json vs xml odata models if you filter the sapui5 sdk documentation on binding
To point you in the right direction:
/ at the start of a binding indicates an absolute path to the data eg the direct path in your odata model
That's what you have been using so far
No slash indicates a relative binding eg perhaps the controller js has specified the start of the absolute path in your odata model under the name shipto
Relative paths are easier to work with when you have more complex odata model hierarchies
path is often used in calculated fields & formatters where extended syntax is needed to eg match multiple data elements to a single control
Good luck!
Jocelyn
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.