SAP Analytics Cloud, Analytics Designer
Total Page:16
File Type:pdf, Size:1020Kb
SAP Analytics Cloud, analytics designer Developer Handbook Document Version: 3.0 - 2019-11-11 Table of Contents 1 Table of Contents Table of Contents .................................................................................................................... 1 Figures..................................................................................................................................... 6 Preface..................................................................................................................................... 8 1 About Analytics Designer ........................................................................................... 9 1.1 What is an analytic application? ..................................................................................... 9 1.2 What is Analytics Designer? .......................................................................................... 9 1.3 What can you do with analytic applications that you can't do with stories? ..................... 9 1.4 How are stories and analytic applications related to each other? .................................... 9 1.5 Why do we need both stories and analytic applications? .............................................. 10 1.6 What is the typical workflow in creating an analytic application? ................................... 10 1.7 What are typical analytic applications? ........................................................................ 11 1.8 How does scripting work in analytic applications? ........................................................ 11 1.9 What's the scripting language for analytic applications? ............................................... 12 2 Getting Started .......................................................................................................... 13 2.1 Prerequisites ............................................................................................................... 13 2.1.1 Required access ......................................................................................................... 13 2.1.2 Required roles ............................................................................................................. 13 2.1.3 Required licenses ........................................................................................................ 13 2.1.4 Modes ......................................................................................................................... 14 2.2 Designing elements ..................................................................................................... 14 2.2.1 Canvas........................................................................................................................ 14 2.2.2 Widgets and filters ....................................................................................................... 14 2.2.3 Data sources and models ............................................................................................ 14 2.3 Managing your analytics application ............................................................................ 15 2.3.1 Transporting an analytic application ............................................................................. 15 2.3.2 Sharing an analytic application .................................................................................... 15 2.3.3 Bookmarking your analytic application ......................................................................... 15 2.3.4 Translating your analytic application ............................................................................ 16 2.3.5 Exporting your analytic application to PDF ................................................................... 17 2.3.6 Commenting in your analytic application ...................................................................... 19 2.4 Navigating from analytic application to another document or URL ................................ 20 2.4.1 Create a story from a widget ........................................................................................ 20 2.4.2 Navigation APIs........................................................................................................... 21 3 Designing an Analytic Application ........................................................................... 23 3.1 Creating ...................................................................................................................... 23 3.2 Browsing ..................................................................................................................... 23 3.3 Opening analytic applications in a specific mode ......................................................... 24 3.3.1 Opening an analytic application from File Repository with CRUD permissions ............. 24 3.3.2 Opening an analytic application from File Repository with read permissions ................ 24 3.3.3 Opening a mode with the URL ..................................................................................... 24 Table of Contents 2 3.3.4 Switching between present and view mode.................................................................. 25 3.4 Toolbar functionalities.................................................................................................. 25 3.4.1 Toolbar in edit mode .................................................................................................... 25 3.4.2 Toolbar in view mode .................................................................................................. 26 3.5 Edit mode functionalities .............................................................................................. 26 3.5.1 Outline and side panels ............................................................................................... 26 3.5.2 Scripting section .......................................................................................................... 27 3.5.3 Layout section ............................................................................................................. 28 4 Scripting in Analytics Designer ................................................................................ 32 4.1 Why scripting?............................................................................................................. 32 4.2 Scripting language overview ........................................................................................ 32 4.2.1 Type system ................................................................................................................ 32 4.2.2 Tooling – code completion and value help ................................................................... 32 4.2.3 Events ......................................................................................................................... 32 4.2.3.1 Application events .................................................................................................... 32 4.2.3.2 Individual Widget Events .......................................................................................... 33 4.2.4 Global script objects .................................................................................................... 33 4.2.5 Accessing objects........................................................................................................ 33 4.2.6 Script Variable ............................................................................................................. 33 4.2.7 Timer .......................................................................................................................... 34 4.3 Script editor ................................................................................................................. 37 4.3.1 Creating and editing event-based scripts ..................................................................... 37 4.3.2 Creating and editing functions in global script objects .................................................. 38 4.3.3 Script editor layout....................................................................................................... 39 4.3.4 Info panel: errors and reference list ............................................................................. 40 4.3.5 Renaming Widgets, Script Variables and Script Functions ........................................... 40 4.4 Scripting language features ......................................................................................... 41 4.4.1 Typing ......................................................................................................................... 41 4.4.2 No automatic type casting ........................................................................................... 41 4.4.3 Accessing objects........................................................................................................ 41 4.4.4 Finding widgets with fuzzy matching ............................................................................ 42 4.4.5 External Libraries ........................................................................................................ 42 4.4.6 Debugging with console.log()....................................................................................... 43 4.4.7 Loops .......................................................................................................................... 43 4.4.8 Double and triple equals (===) operators ..................................................................... 44 4.4.9 If, else, statements .....................................................................................................