org-scn-design-studio-community / sdkpackage

SDK Package of SCN Design Studio Community
Apache License 2.0
32 stars 29 forks source link

KPI Tile cuts strings to numbers on settings #60

Closed KarolKalisz closed 9 years ago

KarolKalisz commented 9 years ago

http://scn.sap.com/thread/3804810

reason to support easy use of integers, there was a parse method of the string to integer. now it is parsing only if the content is exact as the parsed content,

eg. 7.80 -> float 7.8, will stay as string "7.80" 7.8 -> float 7.8, will convert to float "7.80"

67 -> integer (no dot inside) will convert to int 63,763.21 -> stays as string.

if you want to handle the content always as string, add SPACE at the beginning or at the end, then the logic will keep it as string