$.sap.log.setLevel($.sap.log.Level.DEBUG);
function fnCallback(result) {
alert('Result is ' + result);
}
function fnCallback(result) {
jQuery.sap.log.info('Result is', result);
}
data-sap-ui-resourceroots='{ "your.namespace": "./" }'
sap.ui.jsview('your.namespace.view.My', {
createContent: function(oController) {}
});
var myView = sap.ui.view({
viewName: 'your.namespace.view.My',
type: sap.ui.core.mvc.ViewType.JS
});
sap.ui.localResources('myapp');
<core:View controllerName="myapp.My"
xmlns="sap.m" xmlns:core="sap.ui.core">
<Button
text="My Button"
icon="sap-icon://popup-window"
press="handleShowPopup"
/>
</core:View>
sap.ui.controller('myapp.My', {
});
one app <-> one main model
other models in their own namespace
text={i18n>placeholder}
placeholder=Translation
secondPlaceholder=Long Translation
{
"Data": [
{
"name": "string",
"description": "string",
"subject": "string",
"status": "New / In Progress",
"sent": "2015-03-21 12:24:36",
"content": "",
"attachments": [
{
"name": "project.pdf"
}
]
}
]
}