on 04-11-2017 3:09 PM
Hello,
I am using design studio 1.6 SP4 Patch 1 to create a dashboard where my initial view has already the number using a division formula over there, to the number is in this format: "X.XX" and I want to show it as "XX.XX%". I tried to use percentage share formula but the view collapses (I am using a hana view):
So what i did is that i created a script like this, jusy to multiply it by 100 to get the percentage and then I add a global scrip with this sign %:
This script work with other dashboard but here it doesn't work. How can I change from float to string?
Hi Alejandra,
I agree with your script with first 4 lines and i want you to add this in the start up script instead of writing this in formatter function based on performance stand point.
You can write first four lines of the script as it is in the start up instead of writing it in the text formmatter function (remove 5,6 and 7 script lines)
then you can add below piece of code to display the values as required.
TEXT_5.setText(Convert.floatToString(multi,"0.00")+ " %" );
Out put will be as shown in the screen shot from one of my design studioreport.
Feel free to let me know if you have any further questions.
BR,
Lakshmikanth Adharapurapu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
one more point...you need to add this script in all the places to refelect on top of start up script if you are using drop down filters or any onselect conditions.
BR,
Lakshmikanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can set a formmatedvalue via formatterfunction --> compontent properties -> display --> source --> bound to DS -> Formatter function:
script your function like
var int = Convert.stringToInt(formattedValue);
int = int * 100;
return int + " %";
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.