Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

SAPUI5 Binding

$
0
0

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


Viewing all articles
Browse latest Browse all 8124

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>