Skip to content

Instantly share code, notes, and snippets.

@strawherotk
strawherotk / barcode.controller.js
Last active August 6, 2018 11:13
demo - float validation
sap.ui.define([
"sap/ui/core/mvc/Controller"
], function (Controller) {
"use strict";
return Controller.extend("barcodescan.controller.barcode", {
onInit: function () {
var oViewModel = new sap.ui.model.json.JSONModel({
number: 0
@strawherotk
strawherotk / mydata.hdbdd
Last active July 24, 2018 15:21
SAP HANA XS example on Cloud Platform
namespace testhana.hello.data;
@Schema: 'MYDT'
context mydata {
type SDate : UTCTimestamp;
type SString : String(40);
type LString : String(255);
@strawherotk
strawherotk / ProcStep_BaseController.js
Created July 20, 2017 03:24
BBraun Code snippets
/*global history */
sap.ui.define([
"sap/ui/core/mvc/Controller",
"sap/ui/core/routing/History"
], function(Controller, History) {
"use strict";
return Controller.extend("com.bbraun.app.safetymaintenance.bbraunProcessSteps.controller.BaseController", {
/**
* Customize Show Change Log button to be on the right side