StrataFrame Forum

ReportSharpShooter and parent child reports

http://forum.strataframe.net/Topic22017.aspx

By Greg McGuffey - 2/18/2009

I was going over the ReportSharpShooter sample provided by Trent and noticed that the field supporting the CustomerNotes property (_CustomerNotes) was shared (static). The report doesn't work unless it is shared. Why? Is this a sharp shooter thing?
By Trent L. Taylor - 2/18/2009

No, it is a reflection thing.  If you do not make the private shared, then each time that that object gets evaluated through Sharp-Shooter / Report Generation, a new instance will be created several times.  Each time that instance gets created, then the source goes away.

This ties more specifically to the BBS and how each row is exposed as a unique BO.

By Greg McGuffey - 2/18/2009

Ah...gotcha. Thanks!