sap.suite.ui.microchart - HarveyBallMicroChart
sap.suite.ui.microchart.HarveyBallMicroChart expressed in abap2UI5 - a SAPUI5-only control, so the demo kit original is outside OpenUI5 and this is orientation rather than a 1:1 port.
Z2UI5_CL_SMPC_SAPUI5_005
Controls
sap.suite.ui.microchart
UI5 1.71
needs SAPUI5
needs SAPUI5. This sample is listed here because a sample somebody cannot find is worse than one they cannot run: sap.suite.ui.microchart. The ABAP is below; installed on a system that has what it needs, it runs there.
The facts
- Repository
- abap2UI5/samples-controls
- Class
Z2UI5_CL_SMPC_SAPUI5_005- Source file
z2ui5_cl_smpc_sapui5_005.clas.abap↗- Library
- sap.suite.ui.microchart
- Minimum UI5
- 1.71 — the floor abap2UI5 holds its samples to
- In the playground
- needs SAPUI5 — it opens for reading instead
Keywords: harveyballmicrochart, shell, harveyballmicrochartitem
Controls it builds
- sap.m.Page
- sap.m.Shell
- sap.suite.ui.microchart.HarveyBallMicroChart
- sap.suite.ui.microchart.HarveyBallMicroChartItem
- sap.ui.core.mvc.View
Read out of the builder chain by the abap2UI5 linter, not from the category this sample is filed under — which is what makes “which samples build one of these” a question the catalogue can answer at all.
Libraries
The ABAP
z2ui5_cl_smpc_sapui5_005.clas.abap — 70 lines
Click a number to link to a line — shift-click for a range.
Read it on GitHub ↗
" @keywords harveyballmicrochart shell harveyballmicrochartitem
" @summary sap.suite.ui.microchart.HarveyBallMicroChart expressed in abap2UI5 - a SAPUI5-only control, so the demo kit original is outside OpenUI5 and this is orientation rather than a 1:1 port.
"! <p class="shorttext">sap.suite.ui.microchart - HarveyBallMicroChart</p>
"!
"! SAPUI5-only control: it ships with SAPUI5, not with OpenUI5, so there is no
"! demo kit original in this repo's sample universe and no 1:1 port (AGENTS section 3).
"! Collected here as orientation - how the control is expressed in abap2UI5.
"!
"! SAPUI5 demo kit: https://ui5.sap.com/#/entity/sap.suite.ui.microchart.HarveyBallMicroChart
CLASS z2ui5_cl_smpc_sapui5_005 DEFINITION PUBLIC.
PUBLIC SECTION.
INTERFACES z2ui5_if_app.
PROTECTED SECTION.
DATA client TYPE REF TO z2ui5_if_client.
METHODS view_display.
PRIVATE SECTION.
ENDCLASS.
CLASS z2ui5_cl_smpc_sapui5_005 IMPLEMENTATION.
METHOD z2ui5_if_app~main.
me->client = client.
IF client->check_on_navigated( ).
view_display( ).
ENDIF.
ENDMETHOD.
METHOD view_display.
DATA(view) = z2ui5_cl_ui5_view_builder=>factory( ).
view->ele( n = `View` ns = `mvc`
)->a( n = `displayBlock` v = `true`
)->a( n = `height` v = `100%`
)->a( n = `xmlns` v = `sap.m`
)->a( n = `xmlns:mvc` v = `sap.ui.core.mvc`
)->a( n = `xmlns:core` v = `sap.ui.core`
)->a( n = `xmlns:mchart` v = `sap.suite.ui.microchart`
)->ele( `Shell`
)->ele( `Page`
)->a( n = `title` v = `Harvey Chart`
)->a( n = `navButtonPress` v = client->_event_nav_app_leave( )
)->a( n = `showNavButton` b = client->check_app_prev_stack( )
)->ele( n = `HarveyBallMicroChart` ns = `mchart`
)->a( n = `size` v = `L`
)->a( n = `total` v = `10`
)->a( n = `totalLabel` v = `11`
)->a( n = `totalScale` v = `true`
)->a( n = `showFractions` b = abap_true
)->a( n = `showTotal` b = abap_true
)->tag( n = `HarveyBallMicroChartItem` ns = `mchart`
)->a( n = `color` v = `Good`
)->a( n = `fraction` v = `8`
)->a( n = `fractionScale` v = `Mrd` ).
client->view_display( view->stringify( ) ).
ENDMETHOD.
ENDCLASS.
More in sap.suite.ui.microchart
- sap.suite.ui.microchart - InteractiveDonutChart — sap.suite.ui.microchart.InteractiveDonutChart expressed in abap2UI5 - a SAPUI5-only contr…
- sap.suite.ui.microchart - InteractiveLineChart — sap.suite.ui.microchart.InteractiveLineChart expressed in abap2UI5 - a SAPUI5-only contro…
- sap.suite.ui.microchart - InteractiveBarChart — sap.suite.ui.microchart.InteractiveBarChart expressed in abap2UI5 - a SAPUI5-only control…
- sap.suite.ui.microchart - RadialMicroChart — sap.suite.ui.microchart.RadialMicroChart expressed in abap2UI5 - a SAPUI5-only control, s…
On this page