Problems with SumTime in GroupFooter

Stimulsoft Dashboards.WEB discussion
Post Reply
Jens
Posts: 1
Joined: Mon Nov 02, 2020 3:52 pm

Problems with SumTime in GroupFooter

Post by Jens »

Hi,
i got a problem creating a Sum of String Values in a GroupFooter, wich i convertet into a DateTime Object. I tried this code:

Code: Select all

{ 
myTable.column1 == "stringValue" ? 
(SumTime(DateTime.Parse(myTable.column2)).Hours  + 

SumTime(DateTime.Parse(myTable.column2)).Days * 24).ToString("00")+ ":" +  

SumTime(DateTime.Parse(myTable.column2)).Minutes.ToString("00") : "nope"
}	
The result is always 00:00 (as well without the condition). My Datasource is a Table with string Values in the Format "hh:mm:ss". In the end i like just "hh:mm".

Thanks!!!
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Problems with SumTime in GroupFooter

Post by Lech Kulikowski »

Hello,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.
Post Reply