Documente Academic
Documente Profesional
Documente Cultură
Table of Contents
1
2
Preview
1 TASK BACKLOG
Implement a map location formatter in your existing MyApp project that fulfills this backlog.
User Story
As a user of the app
I want to see a map location for the address
So that I can easily see where the address is located.
Details
Show a panel with the text Location below the address form
Inside the panel, show the address visually using an sap.m.Image control
Write a formatter named formatMapUrl that converts the address to a URL for the image
Pass in the fields from the address model to the formatter function
Verify that the image displays the address displayed in the form above
Hint:
Use the google maps static API and to set a marker for the address. You can specify width, height,
zoom level, and a marker. The resulting image should look like this:
Copyright/Trademark
</head>
Just add the script tag after the SAPUI5 bootstrap tag. It injects a button to your app that can run tests
against your application coding to verify the functionality that you have added.
Run the code validator
Note: Test logic
The tests will check for certain conditions to be fulfilled in your app. They rely on specific controls
being used, nesting orders, aggregations being filled, or ids set to a specific value. You need to stick
close to the task of the exercise otherwise you are not able to score the extra points for the exercise.
1. Run the validator by clicking on
the blue icon in the lower left
and select the bonus exercise.
Copyright/Trademark
Coding Samples
Any software coding or code lines/strings (Code) provided in this documentation are only examples
and are not intended for use in a productive system environment. The Code is only intended to better
explain and visualize the syntax and phrasing rules for certain SAP coding. SAP does not warrant the
correctness or completeness of the Code provided herein and SAP shall not be liable for errors or
damages cause by use of the Code, except where such damages were caused by SAP with intent or
with gross negligence.
Copyright/Trademark