process measures

368 views
Skip to first unread message

lizete....@gmail.com

unread,
Aug 26, 2015, 12:07:51 PM8/26/15
to Fujitsu RunMyProcess Developer Community
Dear all,
I have a process with a measure "amount" to be used in a web interface report.
The amount has the value 100.00 in web interface and when i check the measure in process report it has 100.0
When it is use in the web interface report just appear 100
What i need to do to have in the web interface report the amount 100.00 ?
Can you help, pls
Best regards,
Process report_error.docx

Murali

unread,
Aug 27, 2015, 5:11:55 AM8/27/15
to Fujitsu RunMyProcess Developer Community, lizete....@gmail.com
Hi Lizete,

Define the 'amount' variable/widget as 'Text' type in web interface, and calculate the measure value using below free marker syntax.

WI_Amount_Measure : ${amount?number?string("0.00")}

Let us know if this helps your query/requirement.

Regards,
Murali

lizete....@gmail.com

unread,
Aug 27, 2015, 5:52:34 AM8/27/15
to Fujitsu RunMyProcess Developer Community, lizete....@gmail.com

Sorry, but the result is the same... see attach file.

Measures_error.docx

lizete....@gmail.com

unread,
Aug 28, 2015, 5:26:19 AM8/28/15
to Fujitsu RunMyProcess Developer Community, lizete....@gmail.com
On Wednesday, August 26, 2015 at 5:07:51 PM UTC+1, lizete....@ts.fujitsu.com wrote:

Hello!
Do you have same news about it? Thanks

Murali

unread,
Aug 28, 2015, 6:55:22 AM8/28/15
to Fujitsu RunMyProcess Developer Community, lizete....@gmail.com
Hi Lizete,

Declare the measure as Text instead of Number to display 2 decimals.

measures anyways used to refer/display in reports, which should be fine.

Hope this helps.

Regards,
Murali

lizete....@gmail.com

unread,
Aug 28, 2015, 9:23:45 AM8/28/15
to Fujitsu RunMyProcess Developer Community, lizete....@gmail.com
On Wednesday, August 26, 2015 at 5:07:51 PM UTC+1, lizete....@ts.fujitsu.com wrote:
Hello!
Thank you. No it display 2 decimals, but it not possible use this measure to aggregate data.I don´t know how to manage it.
If you have any suggestion, pls. Thanks

Bidisha Das

unread,
Aug 29, 2015, 9:42:42 AM8/29/15
to suppor...@runmyprocess.com
Hi,
I guess you are now able to get upto 2 decimals value(100.00) for Amount column in WI report using the above solution provided by Murali.If yes,then don't change anything and try performing Aggregation like Count/Sum etc on it in WI report.You will get the desired result. If not,let me know.


Thanks & Regards
Bidisha

lizete....@gmail.com

unread,
Aug 31, 2015, 5:43:18 AM8/31/15
to Fujitsu RunMyProcess Developer Community, lizete....@gmail.com
On Wednesday, August 26, 2015 at 5:07:51 PM UTC+1, lizete....@ts.fujitsu.com wrote:
Dear Bidisha,
I don't understand what is the solution, sorry.
If i define measure as a number i don´t get two decimals and is possible use it in aggregate function.
If i define measure as a text i get two decimals but is not possible use it in aggregate function.
If i need two decimals and aggregate function what i must do?

Pankaj Kumar

unread,
Aug 31, 2015, 6:33:37 AM8/31/15
to Fujitsu RunMyProcess Developer Community, lizete....@gmail.com
Hi Lizete,

you can create two measure "amount_str" for displaying the value like 100.00 and make it of String type and another measure "amount" of Number type to perform the aggregate functions on the measures. This way you can switch easily between measures accordingly as per your need.


Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/94c0c0cc-36db-4db8-a2cb-03f4eca0bf8f%40runmyprocess.com.

lizete....@gmail.com

unread,
Aug 31, 2015, 12:11:24 PM8/31/15
to Fujitsu RunMyProcess Developer Community, lizete....@gmail.com
On Wednesday, August 26, 2015 at 5:07:51 PM UTC+1, lizete....@ts.fujitsu.com wrote:
Yes, i was my approach... but the total (aggregate) don´t have two decimals because is a number...... but thank you for the sugestion. We need to have type "number" working with amounts and not just with numbers!
If you have another idea let me know, pls. Thanks

Bidisha Das

unread,
Sep 2, 2015, 7:11:20 AM9/2/15
to suppor...@runmyprocess.com
Hi Lizete,
There is no other way you can do it because you can't format a number up to 2 decimal places as you want (100.00). It has to be a string.On the other hand you can't perform aggregate function except Count on a string. 

As a result the only way is to take the same measure 2 times (one as Number format to perform aggregate function on it & the other as Text(string format) to display as number.00


Thanks & Regards
Bidisha

lizete....@gmail.com

unread,
Sep 2, 2015, 10:16:19 AM9/2/15
to Fujitsu RunMyProcess Developer Community, lizete....@gmail.com
On Wednesday, August 26, 2015 at 5:07:51 PM UTC+1, lizete....@ts.fujitsu.com wrote:

Thank you for your reply

Reply all
Reply to author
Forward
0 new messages