Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
Karol-K
Advisor
Advisor

Purpose

A KPI View (a bit different to the KPI Tile from samples) but with correct value format and support. The API and properties is very similar to the KPI tile, but some special functions are not available. I hope this is not too big restriction.

This component solfs also the problem Problem regional formats setting

How does it looks like?

Styles
scn-pack-KpiViewthe view itself
scn-pack-KpiView-Headerfor header
scn-pack-KpiView-Titlefor title
scn-pack-KpiView-Linkfor link
scn-pack-KpiView-Imagefor image
scn-pack-KpiView-ValuePrefixfor value prefix
scn-pack-KpiView-Valuefor value
scn-pack-KpiView-ValueSuffixfor value suffix
scn-pack-KpiView-Footerfor footer


Available Properties

Property NameDescription
data

cell selection

headerText

text for header

headerCssClasscss class for header
titleTexttext for title
titleCssClasscss class for title
valuePrefixTexttext for value prefix
valuePrefixCssClasscss class for value prefix
valueTexttext for value
valueHAlignalign of the value (cannot be changed by scripts, need refresh app when changed)
valueCssClasscss class for value
valueDecimalPlacesnumber of decimal places 0-9
valueSuffixTexttext for value suffix
valueSuffixCssClasscss class for value suffix
footerTexttext for footer
footerHAlignalign of the footer (cannot be changed by scripts, need refresh app when changed)
footerCssClasscss class for footer
linkTexttext for link
linkTooltiptooltip for link
imageurl for image
imageSizeimage size (choice of 16, 32, 64, 128 px)

Scripting Functions

ScriptsShort Description
setters / getters for the majority of propertiesall those which could be changed in runtime

void setDataSelection(

/* Data cell tha tcontains the value displayed */ ResultCellSelection cellSelection)

for data selection cell


Events


EventDescription
onClick

triggered when user clicks on some space

onLinkClicktriggered when user clicks on link


Example Application

An Application with example can be downloaded at the BIAPP Repository:

Releases

Source Code & Licensing

This component is for free use. It is under the Open Source Apache Version 2.0 License.

Important Maintenance Notice (... as I am SAP Employee)

The component is NOT delivered under SAP maintenance license.

You cannot claim any Support on this component from SAP!


The components are created on "private" basis - you can use them as is. I can modify, correct or improve - but there is no obligation to do it. Of course I will try to correct bugs or improve the component as long I can.

Have Fun!

for other components see: Karol's SDK Components

31 Comments