This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
jQuery.sap.declare("openui5.DatePicker"); | |
jQuery.sap.require("sap.ui.commons.DatePicker"); | |
sap.ui.commons.DatePicker.extend("openui5.DatePicker", { | |
renderer: { | |
}, | |
init: function() { | |
if (sap.ui.commons.DatePicker.prototype.init) { // check whether superclass has an init() method | |
sap.ui.commons.DatePicker.prototype.init.apply(this, arguments); // call super.init() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ZCL_BSCL_SQL_STATEMENT definition | |
public | |
final | |
create private . | |
public section. | |
interfaces IF_BSCL_SQL_TYPES . | |
interfaces IF_BSCL_SQL_STATEMENT . | |
interfaces IF_BSCL_DDL_VIEW_STATEMENT . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta name="description" content="RowRepeater with Stackoverflow data" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<title>Stackoverflow OData SAPUI5 tag</title> | |
<link rel="stylesheet" type="text/css" href=""> | |
<style> | |
#sample1{ | |
margin-left: auto ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'), | |
httpProxy = require('http-proxy'), | |
proxy = new httpProxy.createProxyServer(); | |
var routing = { | |
'sapui5': { | |
target: 'http://localhost:8001' //sdk | |
}, | |
'apps': { | |
target: 'http://localhost:8002' //applications |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<title>OData BlueCrystal Simple Example (Declaritive HTML)</title> | |
<script id="sap-ui-bootstrap" src="http://localhost:8888/sapui5/1.16/resources/sap-ui-core.js" | |
type="text/javascript" data-sap-ui-libs="sap.m, sap.me" | |
data-sap-ui-modules="sap.ui.core.plugin.DeclarativeSupport" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'), | |
open = require('open'), | |
app = express(), | |
port = process.env.PORT || 8888, | |
sapui5 = '/sapui5', | |
url = 'http://localhost:' + port + sapui5, // + "/latest"; | |
year = 60 * 60 * 24 * 365 * 1000; | |
// Use compress middleware to gzip content | |
app.use(express.compress()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// cut down version | |
// for each customer | |
// retrieve image from OData Media Link Entries (Util.retrieveBitmap) | |
// store image on file (Util.writeBitmapToFile) | |
// | |
// later on when showing customer retrieve image from file (readBitmapFromFile - drawable) | |
public List<Customer> getCustomers() throws ProxyException { | |
List<Customer> customers = getContactsSVC().getCustomers(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, | |
body { | |
margin: 0; | |
padding: 0; | |
} | |
button { | |
margin: 0; | |
padding: 0; | |
border: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv='X-UA-Compatible' content='IE=edge' /> | |
<meta charset="UTF-8"> | |
<title>Mobile OData Demo</title> | |
<script id='sap-ui-bootstrap' | |
src='resources/sap-ui-core.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
METHOD contacts_create_entity. | |
CONSTANTS: | |
co_folder TYPE string VALUE '/SAP/PUBLIC/ATCONTACTS'. | |
*--- get the values passed in | |
io_data_provider->read_entry_data( IMPORTING es_data = er_entity ). | |
*--- set handle to first 3 letters of firstname and first letter of last name | |
er_entity-handle = |{ er_entity-firstname(3) }{ er_entity-lastname(1) }|. |