MAOneToManyComponent's report shows all descriptions
Posted by Esteban A. Maringolo on Sep 11, 2014; 6:39pm
URL: https://forum.world.st/MAOneToManyComponent-s-report-shows-all-descriptions-tp4777493.html
Hi,
Magritte's MAOneToManyComponent uses a hardcoded reference to MAReport, which shows all the descriptions of the reference, even those in which #visibleInReport attribute is false.
MAOneToManyComponent>>#buildReport
^ (MAReport rows: self value description: self reference)
sortEnabled: self magritteDescription isOrdered not;
yourself
Can we add a #reportClass attribute to such component?
With its correspondent #defaultReportClass answering MAReport, and maybe filter the descriptions by #visibleInReport attribute, or simply delegate such behavior to the #reportClass
I fixed it by subclassing MAOneToManyComponent, but I think this should go at base level.
Regards!