text: sap.ui.define([
  	"sap/ui/core/mvc/Controller"
  ], function (Controller) {
  	"use strict";
  
  	return Controller.extend("com.erpx.site.prulia.PRULIA.controller.UsefulLinks", {
  
  		/**
  		 * Called when a controller is instantiated and its View controls (if available) are already created.
  		 * Can be used to modify the View before it is displayed, to bind event handlers and do other one-time initialization.
  		 * @memberOf com.erpx.site.prulia.PRULIA.view.UsefulLinks
  		 */
  		onInit: function () {
  			var oRouter = sap.ui.core.UIComponent.getRouterFor(this);
  			oRouter.getRoute("UsefulLink").attachPatternMatched(this._onObjectMatched, this);
  		},
  		_onObjectMatched: function (oEvent) {
  			this.getView().getModel("appParam").setProperty("/showBack", true);
  		},
  
  		/**
  		 * Similar to onAfterRendering, but this hook is invoked before the controller's View is re-rendered
  		 * (NOT before the first rendering! onInit() is used for that one!).
  		 * @memberOf com.erpx.site.prulia.PRULIA.view.UsefulLinks
  		 */
  		//	onBeforeRendering: function() {
  		//
  		//	},
  
  		/**
  		 * Called when the View has been rendered (so its HTML is part of the document). Post-rendering manipulations of the HTML could be done here.
  		 * This hook is the same one that SAPUI5 controls get after being rendered.
  		 * @memberOf com.erpx.site.prulia.PRULIA.view.UsefulLinks
  		 */
  		//	onAfterRendering: function() {
  		//
  		//	},
  
  		/**
  		 * Called when the Controller is destroyed. Use this one to free resources and finalize activities.
  		 * @memberOf com.erpx.site.prulia.PRULIA.view.UsefulLinks
  		 */
  		//	onExit: function() {
  		//
  		//	}
  		
  		handleUrlPress: function(event){
  			window.open(event.getSource().data("openUrl"));                         
  		}
  
  	});
  
  });