ReportSharpShooter and parent child reports


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (2.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
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?
Trent Taylor
Trent Taylor
StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)StrataFrame Developer (8.7K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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.

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (2.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Ah...gotcha. Thanks!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search