Professional Documents
Culture Documents
Exercises / Solutions
Matthias de la Roche / SAP
Jeff Gebo / SAP
MOB160
TABLE OF CONTENTS
1 BUILD .................................................................................................................................................... 3
1.1 Login into BUILD .......................................................................................................................... 3
1.2 Cloning a Build project ................................................................................................................. 4
1.3 Adapting your app ........................................................................................................................ 6
1.4 Further Adapting your app ........................................................................................................... 7
2 HCP Webide Configuration ................................................................................................................. 12
2.1 Configuring SAP Web IDE to access BUILD ............................................................................. 12
3 Webide development .......................................................................................................................... 21
3.1 Importing the BUILD project into webide .................................................................................. 21
3.2 Adapting imported SAP Web IDE project .................................................................................. 24
3.3 Adding search capabilities and mobile features to your app ..................................................... 34
4 Run The App On Your Mobile Device ................................................................................................. 44
4.1 Test On Your Device ................................................................................................................. 44
5 OPTIONAL EXERCISE ....................................................................................................................... 49
5.1 Create Splash BUILD Project .................................................................................................... 49
2
MOB160
In this session you will explore SAP Build by building a low fidelity prototype and then clone a
sample app from the App Gallery. In the next steps you will import this prototype into Web IDE
and adapt the app to use mobile features.
SAPs UX strategy is about the design and development of delightful applications according to the SAP
Fiori concept. SAP Fiori applications adhere to this concept and can be deployed in cloud or on premise.
BUILD provides knowledge, tools, and inspiration that will help you create apps that your users love. It is
a new cloud based collaborative design tool. See for yourself how easy it can be to use BUILD to create
interactive prototypes, get feedback from users, and jump-start development without writing a single line
of code.
1 BUILD
Explanation Screenshot
1. Go to https://www.build.me/
2. Enter the following email :
mob160-xxx@teched.cloud.sap
xxx is your assigned group
number
3. Press Proceed
3
MOB160
Explanation Screenshot
Explanation Screenshot
4
MOB160
Explanation Screenshot
5
MOB160
Explanation Screenshot
Explanation Screenshot
6
MOB160
Explanation Screenshot
7
MOB160
Explanation Screenshot
8
MOB160
Explanation Screenshot
9
MOB160
Explanation Screenshot
10
MOB160
Explanation Screenshot
11
MOB160
Explanation Screenshot
Explanation Screenshot
1. Open
12
MOB160
Explanation Screenshot
2. Click
https://account.hanatrial.ondem
and.com/
3. Press logon
13
MOB160
Explanation Screenshot
6. We need to create 2
destinations for BUILD
7. Press on Connectivity ->
Destinations
9. Enter:
Name: WEB_IDE_PLUGIN
Type: HTTP
Description:
BUILD Destination
URL:
https://www.build.me/webideplu
gin
Proxy Type: Internet
Authentication:
NoAuthentication
14
MOB160
Explanation Screenshot
14. Enter:
Name: BUILD_Production
Type: HTTP
Description:
Destination for BUILD
URL:
https://www.build.me/webide/
Proxy Type: Internet
Authentication:
NoAuthentication
15
MOB160
Explanation Screenshot
sap-client : 800
TrustAll : true
WebIDEEnabled -- true
WebIDESystem : ES4
16
MOB160
Explanation Screenshot
WebIDEUsage:
odata_abap,dev_abap,ui5_execute
_abap
17
MOB160
Explanation Screenshot
18
MOB160
Explanation Screenshot
19
MOB160
Explanation Screenshot
20
MOB160
3 WEBIDE DEVELOPMENT
Explanation Screenshot
21
MOB160
Explanation Screenshot
3. Press Next
22
MOB160
Explanation Screenshot
23
MOB160
Explanation Screenshot
24
MOB160
Explanation Screenshot
25
MOB160
Explanation Screenshot
26
MOB160
Explanation Screenshot
27
MOB160
Explanation Screenshot
28
MOB160
Explanation Screenshot
29
MOB160
Explanation Screenshot
30
MOB160
Explanation Screenshot
31
MOB160
Explanation Screenshot
32
MOB160
Explanation Screenshot
33
MOB160
Explanation Screenshot
Explanation Screenshot
onSearch: function() {
2. Add the text in yellow just var filters = [];
before the onInit: function . var searchString =
this.getView().byId("searchField").getValue();
3. You will be able to format the if (searchString &&
text after copying the text into searchString.length > 0) {
the editor filters = [new
sap.ui.model.Filter("SalesOrderID",
sap.ui.model.FilterOperator.Contains, searchString)];
}
34
MOB160
Explanation Screenshot
this.getView().byId("sap_m_List_1").getBinding("items"
).filter(filters);
},
onBarcodeScan: function() {
var that = this;
var code = "";
try {
cordova.plugins.barcodeScanner.scan(function(result)
{
that.getView().byId("searchField").setValue(result.text)
;
var filters = [];
var searchString =
that.getView().byId("searchField").getValue();
if (searchString &&
searchString.length > 0) {
filters = [new
sap.ui.model.Filter("SalesOrderID",
sap.ui.model.FilterOperator.Contains, searchString)];
}
that.getView().byId("sap_m_List_1").getBinding("items
").filter(filters);
}, function(error) {
alert("Barcode
scanning failed: ", error);
});
} catch (e) {
alert("Cordova plugin is not
available.");
}
},
onInit: function() {
35
MOB160
Explanation Screenshot
36
MOB160
Explanation Screenshot
37
MOB160
Explanation Screenshot
Click strg+alt+home or
strg+alt+pos1 and
minimize the RDP session.
38
MOB160
Explanation Screenshot
39
MOB160
Explanation Screenshot
40
MOB160
Explanation Screenshot
41
MOB160
Explanation Screenshot
42
MOB160
Explanation Screenshot
43
MOB160
Explanation Screenshot
This app allows us to scan the QR-Code from the SAP Web IDE-WebPreview and start the same App on
a mobile device.
All the Kapsel plugins our mobile app might need are already included in the Companion App.
Explanation Screenshot
44
MOB160
45
MOB160
46
MOB160
47
MOB160
48
MOB160
5 OPTIONAL EXERCISE
BUILD also provides excellent support for creating low-fidelity protypes, that can ne used to pitch an idea
to a group of interested parties and already at an early stage collect feedback and new ides..
In this exercise we will assume that you already have some paper based design and will use that to build
your first prototype.
Explanation Screenshot
1. Go to https://build.me and
press Login
49
MOB160
50
MOB160
51
MOB160
52
MOB160
53