Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

UI5 Databinding using Path:

Hi ,

Please explain me the difference and significance of using path:/ and the plain model property name references from the below.

var oTextField1 = new sap.ui.commons.TextField({id : "Field1",value : {path : "/firstName"}});
var oLabel2 = new sap.ui.commons.Label({text : "Last Name:"});

var oTextField2 = new sap.ui.commons.TextField({id : "Field2",value : {path : "/lastName"}});

var oTextView1 = new sap.ui.commons.TextView("textView1", {text : "{/firstName}"});
var oTextView2 = new sap.ui.commons.TextView("textView2", {text : "{/lastName}"});

When we need to use /path and when to use direct property names references?. Please Clarify.

Thanks,

Urmi

Tags:
Former Member
Former Member replied

hi Urmila

Can you check if this example helps?

Example

-D

2 View this answer in context
Not what you were looking for? View more on this topic or Ask a question