How does a hierachical report work with object datasource?
Posted: Fri Aug 07, 2009 10:58 am
I have a two classes X and Y. X contains Y objects. The list of Y should be hierarchical because the Y objects exist at different levels (they have a id and parentid key).
In the list of Data Sources I have X and X_Y.
Now I place a normal DataBand DB1 for X. This is my master. DataSource=X
Now I place a HierachicalDataBand after DB1. This is for the hierarchical details Y. It's called DB2.
DataSource DB2 = X_Y
Relation = X_Y
Master=DB1
Y has two keys: id and parentid.
From the menu, I can only select X_Y.id and X_Y.parentid. When the report is compiled i get an error that in the ctor the fields X_Y.id,... are not known. I think this is because they should be local names instead of global names. Anyway, it doesn't seem to work.
Any ideas?
Hartmut
In the list of Data Sources I have X and X_Y.
Now I place a normal DataBand DB1 for X. This is my master. DataSource=X
Now I place a HierachicalDataBand after DB1. This is for the hierarchical details Y. It's called DB2.
DataSource DB2 = X_Y
Relation = X_Y
Master=DB1
Y has two keys: id and parentid.
From the menu, I can only select X_Y.id and X_Y.parentid. When the report is compiled i get an error that in the ctor the fields X_Y.id,... are not known. I think this is because they should be local names instead of global names. Anyway, it doesn't seem to work.
Any ideas?
Hartmut