Skip to Content
0
Former Member
Jul 10, 2013 at 12:26 PM

SAPUI5 Binding

152 Views

Hi all,

First of all i have just started development in SAPUI5.

I have some basic question.

I have done binding to elements such as sap.m.Lable, sap.m.List etc.

In UI5 we declare string like follow :

var variable1 = "Hello World";

Follwing is binding eg. which i have done:

var lblPRNo= new sap.m.Label("lblWorkItem");

lblPRNo.setWidth("50%");

lblPRNo.bindProperty("text","BODetails>/Instid");

PRBasicPage.addContent(lblPRNo);

BODetails is a name of JSONModel.

What i want to achieve is binding "BODetails>/Instid" value to var variable1.

Thanks and regards

Harshal