Thursday, 22 October 2015

How the Data Binding in sap ui5?

In UI5 data binding is very simple comparative all other bindings.


there are only 4 steps we need to follow.

1_ ready the Json Data.

2_create the JsonModel.

3_add the Json Data to the JsonModel.

4_set the Json Model object globally to the Core.


this is the simple Binding.

EX:

step1:
var jsondata={info:"Rajendra  Mobility Developer"};

step2:

var jsonmodel=new sap.ui.model.json.JsonModel();

step3:

jsonmodel.setData(jsondata);

step4:

 sap.ui.getcore().setmodel(jsonmodel); // we can acces this core info anywhere in the application



Saturday, 17 October 2015

how can i show the Toast messge in SAPUI5 ?


THIS IS THE SIMPLE STATEMENT FOR SHOWING THE TOAST/BLINK MESSAGE

sap.m.MessageToast.show("hello toast", {duration: 3000});

Life cycle of the Controller.js in SAPUI5 ?

Controller.js execution starts from  onInit(),and then OnBeforeRendering(),and then OnAfterRendering(),and then OnExist().


you can check the flow of Controller.js by putting the alert message in every method.


EX:
onInit: function() {alert("onit");},
onBeforeRendering: function() {alert("onBefore");}
onAfterRendering: function() {alert("onAfter");},
onExit: function() {alert("onEXist");}


which is the better why for developing the UI in SAPUI5 ? why ?

we have lot of suggestions for doing the  User Interface in SAPUI5 ,they are JAVA SCRIPT, XML, HTML,JSON formats,
if you have prior knowledge on JavaScript,its better go with the JavaScript,but if you are new or starting level for sapui5 better  go with the XML ,its gives more flexible and used to quick learn for the Fiori.

what is the best editor for developing the sap ui5?

Eclipse is always best Editor,for the every development department.by adding the corresponding Plugins. 

for the sap Ui5, including Eclipse more suggestions are  WEB IDE and Hana Studio.

what is sap ui5 ?

SAPUI5 (SAP user interface for HTML 5) is a collection of libraries that developers can use to build desktop and mobile applications that run in a browser. With SAP's SAPUI5JavaScript toolkit, developers can build SAP web applications using HTML5 web development standards.