Embedded Analytics using smart-business framework
SAP Smart business provides API for developer to use its KPI tiles and drilldown within their application. We have created a sample application which has reference example and API documentation.
Reference application provides details of different type of tiles and controls possible with smart business. It also produces code used to create instance of those controls.
How to Access the Embedded Reference Application
- On the SAP HANA Cloud Platform, under Overview, choose Services.
- Click on the SAP Smart Business Service
- Click on the Developer Reference
It will open application with URL:
https://ssbdesigntime-<<account>>.dispatcher.int.sap.hana.ondemand.com/embeddedSampleApp/index.html.
Reference Application
SAP Smart Business provides APIs to enable developers to use its KPI tiles and drilldown within their application. We have created a reference application which has a reference example.
The reference application provides details of different type of tiles and controls possible with SAP Smart Business. It also produces the code used to create instances of those controls.
Features of the Reference Application :
- Enables the user to create the following tiles types for an evaluation:
- Numeric
- Actual vs. Target
- Comparison
- Comparison multi-measure
- Trend
- Dual (enables the user to see a numeric tile along with 1 of 4 other tile types within a single tile)
The reference application also allows the user to view the source code for the reference tile control that the user generates.
Enables the user to create a drilldown application for any evaluation:
- Provides a switch option for hiding/showing subcomponents within the drilldown
- Provides the option to delegate events between two drilldown applications, which means that when you apply filters to one drilldown, these filters are applied to another drilldown if they are chained.
- Currently events which is delegated is: filterChange
The reference application also allows the user to view the source code for the KPI control that the user generates.
So sample application lets you use see how control behaves and how can you instantiate these controls.
For detailed API, usage and step by step guide you can follow KPI tiles and drilldown.
Cheers.
Note :
To know more about Smart Business Service, refer to the articles
Note: In case you face any issue with Smart Business Service, you can create an Incident on SAP Support Portal with the components: CA-GTF-SB-HCP. You may also contact Smart Business team at smartbusiness@sap.com.
Hi Ananya. Do you have any idea why I am not able to see my "Reference Application" ? All I see is a blank light blue page (see file below).
Hi Wagner,
I can't tell what is the issue just be looking this blank page, can you please answer if
Otherwise you can create an Incident on SAP Support Portal with the components: CA-GTF-SB-HCP also you may also contact Smart Business team at smartbusiness@sap.com.
Regards,
Ananya
Hi Wagner,
Please create ssbruntime destination as following if it doesn’t exists.
URL should be in format : https://sapsmartbusiness-<yourHanaTrailAccount>.dispatcher.hanatrial.ondemand.com
Regards,
Ananya
Hi Ananya,
Thansk for your blog. I have a question. As I know the process to setup the smart businees process, we should enable the protal service first. Then the smart business componets are run in the fiori launchpad enviroment. I have a question I developed a standalone fiori application of course it also deployed on the same SCP accout, can I enable this smart business confiugred KPI or tile in my application.
Best regards,
Terry
Hi Huang,
Yes you can, that's what this blog is about. go to follow up blogs:
https://blogs.sap.com/2017/01/24/step-by-step-guide-to-use-kpi-tiles/
https://blogs.sap.com/2017/01/24/step-by-step-guide-to-use-kpi-drilldown-embedded-control/
In these blogs I have explained the way to consume smartbusiness runtime controls in any(custom/extended) standalone fiori application.
Regards,
Ananya