Sie sind auf Seite 1von 11

Week 5 Unit 5: Offline Configuration

Possibilities on HCPms

Offline Configuration Possibilities on HCPms


Offline OData service configuration overview
The Offline OData service can be configured to best
meet the needs of your use cases.
Configure indexes on properties
Configure data to be cached on server
Change delta determination
Offline config created in a file and uploaded to SAP HANA
Cloud Platform mobile services (HCPms) application
configuration

HCPms
OData Offline Service
Client Store Provisioning and Refresh
Delta Enablement
OData Cache

Only required to change default behavior

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

Offline Configuration Possibilities on HCPms


Offline OData service application configuration file
The Offline OData service configuration file is made
up of one or more end point configurations, each of
which has one or more defining request configuration.
End point configuration allows:
Set indexes on entity properties
Configure what data will be allowed in the database initially
sent to device
Configure if data is cached or not
Refresh interval on cached data

Defining request configuration allows:


Set if data is cached or not
Refresh interval on cached data
Delta tracking behavior
2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

Offline Configuration Possibilities on HCPms


Application configuration file end points
End point configuration options
name name of your back-end endpoint

[endpoint]
name=YourConnectionName
prepopulate_offline_db=Y|N|SHARED-ONLY

prepopulate_offline_db what data to include


in database delivered to device

prepopulate_offline_db_interval=NNN

index_type creating an index on a entity type/


property

indexed_type=<namespace>.<entity type name2>: Property2A


[ASC|DESC][, Property2B [ASC|DESC], ]

request_format set the format the data will be


requested in

delta_request_format=application/atom+xml

indexed_type=<namespace>.<entity type name1>: Property1A


[ASC|DESC][, Property1B [ASC|DESC], ]

request_format=application/json;q=1,application/atom+xml;q=0.5

delta_request_format format that delta


requests will be made in

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

Offline Configuration Possibilities on HCPms


Application configuration file defining requests
Defining request configuration options
name name of your defining request
is_shared_data specifies if data is shared
between users or not

[defining_request]
name=DefiningRequestName
is_shared_data=N|Y
refresh_interval=NNN
track_deltas=AUTO|ALWAYS|NEVER
delta_token_lifetime=NNN

refresh_interval how often to refresh the


cached data
track_deltas control how/if deltas are tracked
delta_token_lifetime how long a delta token is
valid

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

Offline Configuration Possibilities on HCPms


Application configuration file example
[endpoint]
Name=OrderExample
prepopulate_offline_db=SHARED-ONLY
prepopulate_offline_db_interval=1440
indexed_type=SAPODataExample.CustomerType: Surname, GivenName
indexed_type=SAPODataExample.CustomerType: Address/Province, Address/City
[defining_request]
name=Customers
is_shared_data=N
[defining_request]
name=Orders
is_shared_data=N
[defining_request]
name=OrderItems
is_shared_data=N
[defining_request]
name=Products
is_shared_data=Y
refresh_interval=1440

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

Offline Configuration Possibilities on HCPms


Application configuration file upload to HCPms
The application configuration file needs to be uploaded to the offline area of your application defined
on HCPms.

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

Offline Configuration Possibilities on HCPms


Demo

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

Offline Configuration Possibilities on HCPms


Recap Week 5: Creating an Offline App
HCPms supports offline applications with Offline
OData and the SAP Mobile Platform SDK.
SAP Web IDE and the hybrid app toolkit can be
used to quickly create an offline mobile application.
Offline OData can be configured to best support
your use case.

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

Thank you

Contact information:
open@sap.com

2015 SAP SE or an SAP affiliate company. All rights reserved.


No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an SAP affiliate company.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate
company) in Germany and other countries. Please see http://global12.sap.com/corporate-en/legal/copyright/index.epx for additional trademark information and notices.
Some software products marketed by SAP SE and its distributors contain proprietary software components of other software vendors.
National product specifications may vary.
These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP SE or its
affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP SE or SAP affiliate company products and
services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as
constituting an additional warranty.
In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop
or release any functionality mentioned therein. This document, or any related presentation, and SAP SEs or its affiliated companies strategy and possible future
developments, products, and/or platform directions and functionality are all subject to change and may be changed by SAP SE or its affiliated companies at any time
for any reason without notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forwardlooking statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place
undue reliance on these forward-looking statements, which speak only as of their dates, and they should not be relied upon in making purchasing decisions.

2015 SAP SE or an SAP affiliate company. All rights reserved.

Public

11

Das könnte Ihnen auch gefallen