Sorting for custom column


Author
Message
sitob80
sitob80
I'm into this (233 reputation)I'm into this (233 reputation)I'm into this (233 reputation)I'm into this (233 reputation)I'm into this (233 reputation)I'm into this (233 reputation)I'm into this (233 reputation)I'm into this (233 reputation)I'm into this (233 reputation)
Group: Forum Members
Posts: 18, Visits: 105
Hi,

beside the time of the log entry we have some timing values in our log files that are logged as 1us, 200ms, 30s, >10min in the log file and provide as some more information about a running workflow. Now I've implemented a custom reader that
parses these settings and puts them into a column defined like this.
new FieldColumnInfo(ElementType.String, "Duration", true, 8, 25),

The parsing, displaying and filtering works, but what obviously doesn't work is the sorting of the log entries according to this column.
Next I've tried to implement the Column as
new FieldColumnInfo(ElementType.Timestamp,"Duration",true,12,50)
and convert our time to a timestamp. This time I get an additional column named "Relative" and not "Duration" that doesn't contain any values.

Personally for us it would be best to keep the string representation in the display and provide a custom sort algorithm that is used if someone clicks on the column.
So is there any way how I can achieve sorting for these kind of values?

Thank you very much
sitob80
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Login

Explore
Messages
Mentions
Search