OpenSAP Ui51 Week0 All Slides
OpenSAP Ui51 Week0 All Slides
* Bonus * Bonus +
2 bonus exercises
* (2x10 points)
=
Record of achievement
when results above
Online forums during entire 6 weeks of course 120 points
Learning effort: ~4-5 hours/week (max. 240 points)
Unit 0.1 Unit 0.2 Unit 0.3 Unit 0.4 Unit 0.5
Course Environment Do You Really SAPUI5 SDK – Debugging and A Glance at the
and Setup Understand Demo Kit Troubleshooting Coding Exercises
JavaScript?
Cloud
Connector *
DB
SAP Web IDE is a powerful, Web-based integrated development tool that simplifies the end-to-
end application development lifecycle for SAP Fiori apps, Fiori-like apps, and SAPUI5 apps
Developing with SAP Web IDE SAP Web IDE – Enablement @ SCN
More details:
hcp.sap.com
Business Data & Storage Mobile
Internet of Things
SAP Fiori User Experience SAP Fiori Design Guidelines SAP Fiori, Demo Cloud Edition
Developing Mobile Apps Develop mobile-enabled apps Build, extend, integrate, and
with SAP HANA Cloud Deploy apps to mobile devices mobilize SAP Fiori apps by
Platform (mobile2) Learn about mobile features adding (native) mobile features
Contact information:
[email protected]
© 2016 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.
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 SE’s 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 forward-
looking 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.
JavaScript Garden
Do self-test questions
for this unit
while (aQuestions) {
aQuestions.pop().answer();
}
Use documentation
Enjoy the rest of this
link in question to
video as a recap!
learn the concept!
You really
understand JavaScript!
Java Scheme
JS
JavaScript
Self Perl
Boolean
1 == true Beware of
True or false
True truthy/falsy values,
Object always use “===” for
Function / Array / Date / RegExp 1 === true strict checks
Null False
Deliberate non-value
var iAmount = 23; Use Hungarian
Undefined
var sString = “Hello”; notation
Indicates an uninitialized value
Even functions are just objects “with an executable part” // properties referenced using array notation
oObject["property"];
If a function returns a reference to the current context then a programming technique called
method chaining can be used
Method chaining is widely used in many JavaScript frameworks including jQuery and SAPUI5
jQuery("#myButton")
.text("Click me")
.css("color", "#c00")
.bind("click", function(e) {
alert("Thanks for clicking");
});
Chaining is a nice time-saver (the element in the example has to be looked up only once)
Debugging long method chains is more difficult
Latest release:
https://sapui5.hana.ondemand.com/
https://openui5.hana.ondemand.com/
Specific release:
https://sapui5.hana.ondemand.com/1.28.8/
https://openui5.hana.ondemand.com/1.32.5/
Preview
Controls
Samples
Stackoverflow: http://stackoverflow.com/questions/tagged/sapui5
Slack: http://slackui5invite.herokuapp.com/
YouTube: https://www.youtube.com/openui5videos
Blog: http://openui5.tumblr.com/
Contact information:
[email protected]
© 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.
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 SE’s 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 forward-
looking 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.
Diagnostics window
CTRL + ALT + SHIFT + S
Main features: SAPUI5 control tree, view & change control properties & bindings
Works on our supported desktop browsers
UI5 inspector
Chrome developer tools extension (F12)
Main features: SAPUI5 control tree, view & change control properties & bindings (more to come)
Works only with Google Chrome
General
Use Google Chrome if possible for debugging
Check the console log for errors (press F12 key in Chrome)
Set breakpoints and step through your code to understand where something is going wrong
SAPUI5
If your control is not visible, check in the DOM inspector if your respective HTML exists
Use debug sources for easier debugging
Check if your respective file is loaded or if there is a 404 (Not Found) error on the Network tab
Check if your respective file contains the changes you made on the Sources tab
Have a look at the Troubleshooting section in the Demo Kit
Contact information:
[email protected]
© 2016 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.
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 SE’s 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 forward-
looking 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.
write.some.code();
?!
write.some.
code(); SAP Web IDE
Testing Tools
Preparation:
Include validator
script in index.html
and run the app
Select a Unit
1 3
Press the
Check
Button or
Results
F9
© 2016 SAP SE or an SAP affiliate company. All rights reserved. Public 4
A Glance at the Coding Exercises
How to do a bonus exercise
Task
Backlog write.some.code(); 08154711
Contact information:
[email protected]
© 2016 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.
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 SE’s 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 forward-
looking 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.