openSAP LumiraDesigner PDF
openSAP LumiraDesigner PDF
openSAP LumiraDesigner PDF
EXERCISE 1:
Business scenario:
You will learn the new features that are delivered with SAP Lumira, designer edition 2.x.
Please keep in mind :
- You can only do this exercise if you already have a Lumira designer client and Lumira Discovery
Client installed on your laptop
- With this exercise, no BI Platform is required. Lumira Designer Client and Lumira Discovery
Client is sufficient.
Exercise goals:
• Task 1A: Building a simple Lumira Designer application based on offline Data Sources
Optional Part:
Prerequisites
After opening Lumira Designer, closing the welcome page and creating a new blank application, you see the
screen above. For these Tasks, the framed boxes are essential. The following description will help you familiarize
yourself with the interface.
2
SAP Lumira Designer Exercise
➢ Lumira documents. Here you can find the Lumira documents and contained applications and
composites.
All of these views/windows can be moved to a different position via drag and drop. You can of course position
these views as you like for your convenience.
3
SAP Lumira Designer Exercise
4
SAP Lumira Designer Exercise
5
SAP Lumira Designer Exercise
6
SAP Lumira Designer Exercise
7
SAP Lumira Designer Exercise
8
SAP Lumira Designer Exercise
9
SAP Lumira Designer Exercise
10
SAP Lumira Designer Exercise
Select
ANA262_E1_TEMPLATE as
template.
11
SAP Lumira Designer Exercise
Tasks
TASK 1A – DESCRIPTION
Explanation Screenshot
12
SAP Lumira Designer Exercise
13
SAP Lumira Designer Exercise
14
SAP Lumira Designer Exercise
15
SAP Lumira Designer Exercise
16
SAP Lumira Designer Exercise
17
SAP Lumira Designer Exercise
Top Margin: 0
Let Margin: 10
Bottom: auto
Right Margin: auto
Width: 500
Height: 300
18
SAP Lumira Designer Exercise
Click OK to continue.
19
SAP Lumira Designer Exercise
20
SAP Lumira Designer Exercise
Click on OK to continue.
21
SAP Lumira Designer Exercise
22
SAP Lumira Designer Exercise
Top Margin: 0
Let Margin: 570
Bottom: auto
Right Margin: auto
Width: 500
Height: 300
Top Margin: 0
Let Margin: 1130
Bottom: auto
Right Margin: auto
Width: 500
Height: 300
23
SAP Lumira Designer Exercise
24
SAP Lumira Designer Exercise
25
SAP Lumira Designer Exercise
Click OK to continue.
26
SAP Lumira Designer Exercise
27
SAP Lumira Designer Exercise
28
SAP Lumira Designer Exercise
29
SAP Lumira Designer Exercise
30
SAP Lumira Designer Exercise
Click on OK to continue.
31
SAP Lumira Designer Exercise
32
SAP Lumira Designer Exercise
33
SAP Lumira Designer Exercise
34
SAP Lumira Designer Exercise
Click on OK to continue.
35
SAP Lumira Designer Exercise
36
SAP Lumira Designer Exercise
37
SAP Lumira Designer Exercise
Top Margin: 60
Let Margin: 0
Bottom: 0
Right Margin: 0
Width: auto
Height: auto
38
SAP Lumira Designer Exercise
39
SAP Lumira Designer Exercise
Press Button OK to
continue.
40
SAP Lumira Designer Exercise
41
SAP Lumira Designer Exercise
CONTENT.setTopMargin(200);
DS_2.setFilter("DS:15,DIM:id_68",
CHART_3.getSelectedMembers("DS:2,DIM:id_16"));
DS_1.setFilter("DS:2,DIM:id_16",
CHART_3.getSelectedMembers("DS:2,DIM:id_16"));
DS_3.setFilter("DS:15,DIM:id_68",
CHART_3.getSelectedMembers("DS:2,DIM:id_16"));
DS_KPI.setFilter("DS:2,DIM:id_16",
CHART_3.getSelectedMembers("DS:2,DIM:id_16"));
DS_FILTERBAR.setFilter("DS:2,DIM:id_16",
CHART_3.getSelectedMembers("DS:2,DIM:id_16"));
42
SAP Lumira Designer Exercise
43
SAP Lumira Designer Exercise
44
SAP Lumira Designer Exercise
45
SAP Lumira Designer Exercise
Charts
✓ Right mouse click on the chart you can start the context
menu. Within context menu you can set different options
of charts
✓ Define Conditional Formatting Settings for Charts. These
settings could be defined based on measures or key
figures.
✓ Conditional Formatting Settings defined as be shared
within the same Excel File (DS_1,
DS_FILTERBAR_DS_KPI are sharing the same
conditional Formatting Settings. DS_2 and DS_3 are
sharing the same conditional formatting settings)
✓ If you select neighborhood on Bubble Chart, all other
charts are filtered with the same neighborhoods.
46
SAP Lumira Designer Exercise
Task Description:
Design Time
Run Time:
47
SAP Lumira Designer Exercise
Desktop:
Ipad:
iPhone
48
SAP Lumira Designer Exercise
49
SAP Lumira Designer Exercise
TASK 1B – DESCRIPTION
Explanation Screenshot
Click OK to continue
50
SAP Lumira Designer Exercise
51
SAP Lumira Designer Exercise
6) Go to Properties View of
ADAPTIVE_LAYOUT_1. Here
we see the default parameter
of Minimum Width of
Medium/Large/Extra Large
Viewport. Let’s keep the
default value.
You are provided with 4
responsive options:
Small view port: width less
than 640 pixels,
Medium view port: width
between 640 and 1024 pixels,
Large view port: width
between 1024 and 1920
pixels,
Extra Large view port: width
more than 1920 pixels
52
SAP Lumira Designer Exercise
53
SAP Lumira Designer Exercise
54
SAP Lumira Designer Exercise
55
SAP Lumira Designer Exercise
56
SAP Lumira Designer Exercise
57
SAP Lumira Designer Exercise
58
SAP Lumira Designer Exercise
Task Description:
59
SAP Lumira Designer Exercise
TASK 1C – DESCRIPTION
Explanation Screenshot
Composite is a reusable
component that can be defined
within Designer and reused
across multiple applications
2) Enter ANA262_EXE1_C as a
composite name.
60
SAP Lumira Designer Exercise
61
SAP Lumira Designer Exercise
62
SAP Lumira Designer Exercise
7) Go to Properties view to
define DataSource as
interface properties
Select DataSourceAlias as
Type.
63
SAP Lumira Designer Exercise
Create Container
Components Panel
Name: CONTENT
CSS Class: myTile
Layout:
Top Margin: 0
Left Margin: 0
Bottom Margin: 0
Right Margin: 0
Width: auto
Height: auto
(you can use maximize button
to set this layout)
64
SAP Lumira Designer Exercise
65
SAP Lumira Designer Exercise
66
SAP Lumira Designer Exercise
Name: ICON_FULLSCREEN
Color: blank (remove color
please)
Background color: blank
(remove color please)
Layout:
Top Margin: 5
Left Margin: auto
Bottom Margin: auto
Right Margin: 5
Width: 25
Height: 25
67
SAP Lumira Designer Exercise
Name:
DIALOG_FULLSCREEN
Draggable: true
Resizable: true
Layout:
Top/left/Bottom/Right Margin:
auto
Width:10
Height:10
68
SAP Lumira Designer Exercise
DIALOG_FULLSCREEN.close();
69
SAP Lumira Designer Exercise
70
SAP Lumira Designer Exercise
71
SAP Lumira Designer Exercise
72
SAP Lumira Designer Exercise
DIALOG_FULLSCREEN.setWidth(900);
DIALOG_FULLSCREEN.setHeight(600);
DIALOG_FULLSCREEN.open();
We need to define On
Initialization event. With this
event, we would like pass the
parameter of DataSource and
DataSourceSelection.
73
SAP Lumira Designer Exercise
KPI_CHART.setDataSource(DataSource);
KPI_CHART_FULLSCREEN.setDataSource(DataSource);
KPI_CHART.setDataSelection(DataSourceSelection);
KPI_CHART_FULLSCREEN.setDataSelection(DataSourceSel
ection);
74
SAP Lumira Designer Exercise
Task Description:
75
SAP Lumira Designer Exercise
TASK 1D – DESCRIPTION
Explanation Screenshot
2) Double click on
ANA262_EXE1_D or start the
context menu to open this
application.
76
SAP Lumira Designer Exercise
Name: KPI_TILE_1
DataSource: DS_KPI
Layout:
Width: auto
Height: auto
Top/Left/right/Bottom Margin:
0
77
SAP Lumira Designer Exercise
78
SAP Lumira Designer Exercise
79
SAP Lumira Designer Exercise
80
SAP Lumira Designer Exercise
81
Task 1E – Tune REsponsive Design to an iPad specific layout
Task Description:
Explanation Screenshot
2) Double click on
ANA262_EXE1_E or start the
context menu to open this
application.
Copyright/Trademark
3) We would like to display
CHART_3, CHART_4,
CHART_5 and CHART_6 with
a Pagebook in case the
running device is iPad. For
that let’s first define a
Pagebook within BLOCK_3.
Visible: false
Show Page Indicator: true
Copyright/Trademark
6) Open PAGEBOOK_1 in
Outline View and create
another 2 pages via context
menu.
Copyright/Trademark
8) Now let’s create a PANEL
within each page.
Copyright/Trademark
11) As the next step let’s create a
Global Script Object.
Click on OK button to
continue.
Copyright/Trademark
14) Now Global Script Function
window is opening. Here you
can enter a description for this
function (this is optional field).
if (info.indexOf("iPad") != -1) {
APPLICATION.createInfoMessage(info);
PAGEBOOK_1.setVisible(true);
PANEL_1.moveComponent(CHART_3);
PANEL_2.moveComponent(CHART_4);
PANEL_3.moveComponent(CHART_5);
PANEL_4.moveComponent(CHART_6);
}
Copyright/Trademark
16) We would like to trigger the
function CheckDevice with On
Startup event. Therefore,
please add the one codeline
on the right side to the script
editor:
Click OK to continue.
GLOBAL_SCRIPTS_1.CheckDevice();
Copyright/Trademark
19) Now let’s save application.
Copyright/Trademark
23) In case you don’t have iPad
with you, you can simulate
this behavior in browser
Google Chrome.
Please copy and paste the
URL to Chrome
Copyright/Trademark
25) Now you can start the device
toggle bar to switch the
application to iPad
Copyright/Trademark
Task 1F – Extend with a Bookmark Dialog
Estimated time: 15 minutes
Task Description:
Copyright/Trademark
Copyright/Trademark
TASK 1F – DESCRIPTION
Explanation Screenshot
Copyright/Trademark
4) Now please open the
document ANA262_EXE1
(you can also run time step in
local mode)
Copyright/Trademark
8) Once its opened, you can see
the Outline View is not empty
anymore.
9) Go To tab Components.
Under category Samples you
can find the composite
BOOKMARK_DIALOG.
Copyright/Trademark
10) Go to Properties View of
BOOKMARK_DIALOG_1.
Select on Technical
Components in Outline View
and start context menu per
right mouse click:
Create Bookmarks
12) BOOKMARKS_1 as
bookmark object is created for
this application. Now please
go to Outline View and start
the bookmark definition as the
screenshot shown on the right
side.
Copyright/Trademark
In definition window, please
select all Data Sources and
all Charts as bookmark
definition.
Click OK to continue
Copyright/Trademark
14) Go to Properties View and
enter the following:
Tooltip: Bookmark
Layout:
Top Margin: 0
Left Margin: auto
Bottom Margin: auto
Right Margin: 5
Width: 60
Height: 60
Copyright/Trademark
17) Start the script editor on On
Click event.
Click OK to continue.
BOOKMARK_DIALOG_1.openBookmarkDialog(BOOKMAR
KS_1);
Copyright/Trademark
20) Now you can see how this
application runs. You can
start to bookmark dialog to
save or open bookmarks.
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