Feb 09, 2021, 7:11 PM
[CLOSED] CustomSummaryType in DateColumn
Hi,
we want to use the Property .CustomSummaryType = "totalDateTime" in DateColumn.
If there is no date in this row(ColumnIndex), i don't want to count this row.
Is it possible to send the ColumnIndex to this function totalDateTime?
For example if (record.get(ColumnIndex) <> '') total += 1;
I hope you understand me :-).
Thanks
Gidi
we want to use the Property .CustomSummaryType = "totalDateTime" in DateColumn.
If there is no date in this row(ColumnIndex), i don't want to count this row.
Is it possible to send the ColumnIndex to this function totalDateTime?
For example if (record.get(ColumnIndex) <> '') total += 1;
I hope you understand me :-).
Thanks
Gidi
Dim _ScriptTotalDateTime As String = "<script>"
_ScriptTotalDateTime &= " var totalDateTime = function (records) {"
_ScriptTotalDateTime &= " var i = 0,"
_ScriptTotalDateTime &= " length = records.length, "
_ScriptTotalDateTime &= " total = 0,"
_ScriptTotalDateTime &= " record;"
_ScriptTotalDateTime &= " for (; i < length; ++i) {"
_ScriptTotalDateTime &= " record = records[i];"
_ScriptTotalDateTime &= " total += 1;"
_ScriptTotalDateTime &= " }"
_ScriptTotalDateTime &= " return total;"
_ScriptTotalDateTime &= " };"
_ScriptTotalDateTime &= "</script>"
aktPage.ClientScript.RegisterClientScriptBlock(aktPage.GetType(), "totalDateTime", _ScriptTotalDateTime)
Last edited by fabricio.murta; Feb 22, 2021 at 6:48 PM.