Filter table tree
I've been playing with trees in WDA and i've come across some problems.
I must be able to display a tree based on a recursive node. So I use a table with a mastercolumn of type TreeByNestingTableColumn.
all good all happy.
But I also want to be able to filter the darn thing.
So I implement the OnFilter action of the table in which I dispatch to the table method handler, create the filtering node and set the filtering values.
In any normal plain table this works like a charm. I believe it even works in a TreeByKeyTableColumn case [update: it doesn't! Same problem there], but in my particular case with the recursive node, the filtering dumps on an assertion.
What happens is, that during the filtering, the fixed_row_count (actually at that point it's called row_count) is set to the amount of filtered lines.
Later on, during rendering a check is done that the fixed_row_count must be set to -1 (sap standard) because apparently a tree isn't allowed to have fixed rows. the whole thing dumps at that point (assert something = -1)
Is this intended behaviour from SAP standard, or am I missing a step?
Maybe I need to call an extra method or something...?
and on a sidenote, is there a standard function or method that I can use to export the table contents to excel?
Thanks in advance,
Edited by: Tom Van Doorslaer on Sep 1, 2008 5:43 PM