Page 1 of 1

Problems with SumTime in GroupFooter

Posted: Wed Nov 18, 2020 5:16 pm
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!!!

Re: Problems with SumTime in GroupFooter

Posted: Fri Nov 20, 2020 12:51 pm
by Lech Kulikowski
Hello,

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

Thank you.