All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ui5.controller.Schemas.controller Maven / Gradle / Ivy

showFooter : function() {
	return false;
},
init : function() {
	var oModel = new JSONModel();
	var that = this;
	oModel.attachRequestFailed(function(oEvent) {
			that.displayError(JSON.parse(oEvent.getParameter("responseText")));
	});
	var sURL = "../rest/schemas";
	oModel.loadData(sURL);
	oStateModel.setProperty("/modelurl", sURL);
	this.getView().setModel(oModel);
	oStateModel.setProperty("/title", "All Schemas known by the server");
	oStateModel.setProperty("/breadcrumbs", [ {"text" : "Homepage", "link" : "./Home"} ] );
},
cancel : function(oEvent) {
},
save : function(oEvent) {
},
onPressRefresh : function(oEvent) {
	var oModel = this.getView().getModel();
	oModel.loadData(oStateModel.getProperty("/modelurl"));
},
onPressAddTopic : function(oEvent) {
	var path = oEvent.getSource().getBindingContext().getPath();
	var oModel = this.getView().getModel();
	var obj = oModel.getProperty(path);
	if (!!obj.connectionname && obj.connectionname.length != 0) {
		window.location.href = './Connection?new=' + encodeURI(obj.connectionname);
	}
},
schemaformatter : function(name) {
	return "SchemaDefinition?name=" + encodeURI(name);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy