Technical Articles
How to set dynamically scale for key figures and also how to change the number formatting in SAC Analytics Application Designer
Hi Friends,
Writing the blog to explain how to change or set dynamically scale for key figures and also how to change the dynamic number formatting in SAC Analytics Application Designer.
As there is no document or step provided in SAP DeveloperHandbookSACAnalyticsDesigner
Please follow the below step.
Step 1- drag and drop a radio button on the canvas
Step2- hard code the radio button with 3 value by default as shown
step 3 We have to write a code on select radio button
The above code will change the scaling of the chart dynamic.
we can use the Chart_1.getNumberFormat().setScaleFormat(NumberFormatScaleFormat.Short)
to change the scaling text to short or long text for scaling format
to change the number format for a given chart at run time we have to use a below code.
Chart_1.getNumberFormat().setDecimalPlaces(1);
Thanks,
SaurabhS.
Hi Saurabh,
Which chart you have used, because this function is not showing to me in BAR Chart. Please guide me on this.
Its a bar chart only.
Can you share a screen shot of the code.
Thanks,
Saurabh S.
Pls check below screen shot of Radio Button & Code :-
I am getting the function of getNumberFormat.
I guess, You have updated version of SAC Designer, because in RadioButton, I can see few more options like Data Source type Manual Input, Enable the wrtie-back in runtime.
All above features, I can not see in my RadioButton.
Hi Mukesh,
currently i am using 2020.13.1 version of SAC.
My Version :- Version 2020.8
Hi Saurabh Suresh Sonawane
is it possible to change Data Label Settings in a Numeric Point Chart via script? It looks that this feature is missing
BR Alex
Yes,
The above mention feature is still missing in the SAC.
Thanks,
Saurabh S.
Hi Saurabh
thanks for the blog. If I have a table where the measures have scale, how to get dynamically the scale used by a measure. There is setScaleUnit but where is getScaleUnit ?
thanks