cancel
Showing results for 
Search instead for 
Did you mean: 

UI5 Databinding using Path:

former_member214868
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member182862
Active Contributor
0 Kudos

hi Urmila

Can you check if this example helps?

Example

-D

former_member214868
Participant
0 Kudos

Hello Dennis,

Thanks for the JS Bin Example which demonstrates the additional formatting options with path.

-Urmi

Answers (0)