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>SAPUI5 Contacts Demo</title> | |
<script id="sap-ui-bootstrap" | |
type="text/javascript" | |
src="http://localhost/sapui5/resources/sap-ui-core.js" | |
data-sap-ui-theme="sap_goldreflection" | |
data-sap-ui-libs="sap.ui.commons,sap.ui.commons,sap.ui.table,sap.ui.ux3" |
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_get_entityset. | |
DATA: | |
lt_contacts TYPE STANDARD TABLE OF zat_contacts, | |
lra_handle TYPE RANGE OF zat_handle, | |
lra_firstname TYPE RANGE OF ad_namefir, | |
lra_lastname TYPE RANGE OF ad_namelas, | |
lv_property TYPE string. | |
FIELD-SYMBOLS: | |
<fs_contacts> LIKE LINE OF lt_contacts, |
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
ONTACTS_DELETE_EN |
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_update_entity. | |
DATA: ls_contact TYPE zcl_ztest1_mpc=>ts_contac. | |
DATA: lv_set_exp TYPE string. | |
*--- get existing value | |
me->contacts_get_entity( | |
EXPORTING | |
iv_entity_name = iv_entity_name | |
iv_entity_set_name = iv_entity_set_name | |
iv_source_name = iv_source_name |
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_get_entity. | |
DATA: | |
ls_key_tab LIKE LINE OF it_key_tab. | |
READ TABLE it_key_tab INTO ls_key_tab INDEX 1. | |
SELECT SINGLE * | |
INTO er_entity | |
FROM zat_contacts | |
WHERE handle = ls_key_tab-value. |
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) }|. |
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
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
// 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
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()); |
OlderNewer