Skip to content

Instantly share code, notes, and snippets.

@jakes2255
Last active Aug 22, 2019
Embed
What would you like to do?
onPressAdd: function () {
//retrive model using helper function in base class
var oJsonModel = this.getMyModel("Results");
//create an additional node to be added to the model
var additional_props = {
"organization": "SAP",
"place": "Bangalore"
};
//add the new node to the current model
oJsonModel.setProperty("/address",additional_props);
//enable the panel visibility
this.getView().byId("idPanelMore").setVisible(true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment