Filtering relative to table contents itself?

Filtering relative to table contents itself?

jlecountjlecount Posts: 2Questions: 1Answers: 0
edited June 2015 in Free community support

Hi all,

Apologies if this question has been answered on the forum and I missed it.

I've got a table that represents test results from given dates. Three of a given row's columns are:

test_class, test_method, and timestamp.

I'm trying to create a filter in which only the greatest timestamp of rows with the same test_class and test_name are rendered.

In other words, given a table which would be:

|-----------------|----------------|---------------- |

| class | method | timestamp |

| classA | methodA | 23456 |

| classB | methodB | 12300 |

| classA | methodA | 12345 |

In that case, the row with the timestamp '12345' would be filtered out, since its timestamp value is < 23456.

(P.S. Sorry for the lousy table markdown! But you get the idea.)

I'm not sure the right idiom (if there is one) for filtering against the table itself, rather than some external (not within the table) criteria.

Can anybody advise? I can implement this outside of DataTables, but if there's a way that is more native to DT, I'd prefer it.

Thanks!
Jason

Answers

  • jlecountjlecount Posts: 2Questions: 1Answers: 0

    OK, ended up implementing this outside DT. Bummer, but don't know if it's supported.

This discussion has been closed.