on 12-29-2015 9:46 AM
Hi All,
I try to understand the data-binding of the new Master-Detail App (up 1.30).
I have a data model with two entitytypes (Patient - Labor).
The debugger shows me the right contextPath, but I don't understand where this mapping of this two entities happens.
Binding context
Would be really nice, if someone could give me helpful hints!
The sap template Master-Detail I'm using:
Binding context
BR
It is context binding. Before this you would have to refer: Data Binding - SAPUI5: UI Development Toolkit for HTML5 - SAP Library
Context Binding: is a reference to a data object in a model.
Here they mention the selected context of records and bind the same path to view or controls.
Regards,
Karthik A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Karthik,
thanks for this very helpful link, but it doesn't help me at this moment.
I'm still try to understand where the data from the second entitytype (Labor) comes from.
"Context Binding: is a reference to a data object in a model."
Maybe I found it.:
Within the data object I see the data for the patient (master-entitytype).
Furthermore there is an other object with a link:
URL: ....../PATIENT(236)/PATIENT
If I call this link directly, I get an result with the second entitytype (Labor) and I could find the mapped fields which I could see in the debugger:
"Labor(LaborID=12775,PatientID=236)"
Is this the reference, how we get the data of the associated entitytypes loaded?
(For testing I'm using an xsodata-service with an association of Patient and Labor.)
If I'm wrong with my assumption, please let me know.
BR
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
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.