BO and BBS with Sharpshooter


Author
Message
Ross L. Rooker, Sr.
Ross L. Rooker, Sr.
StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)StrataFrame User (195 reputation)
Group: Forum Members
Posts: 153, Visits: 462
Trying to confirm something about Sharpshooter filter parameters within Sharpshooter itself.

I have a VIEW that defines what tables need to be related and how. Created a SF BO to be able to map the VIEW to a BO. Then created a Custom BBS on the BO.

Naturally until a call is made to fill the BO no data is filled.

If you reference the BBS in the Sharpshooter report as a Datasource, then put filter expression on the report as parameters, will Sharpshooter return:

A. All data to fill the BO and then filter based on the Sharpshooter filter expressions? , or

B. Does Sharpshooter generate a SQL SELECT with the parameters already built into the SELECT statement thereby returning only the ropws needed?

From what I can see, I believe "A." is what Sharpshooter does.

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Yeah, A is correct.  However, we generally do not rely on RSS to filter our BOs.  You are far better off doing this within the BO itself when referenced.   For example, of you have Customers and CusztomerOrders, I will create two CustomBBS classes, one for each.  Then I will make CustomerOrders a child property exposed from within the report CustomersBO.

Namespace Reports.MyReport

Public Class CustomersBO
    Inherits MyApp.Business.CustomersBO

    Private Shared _CustomerOrders As New Reports.MyReport.CustomerOrdersBO()

    Public Readonly Property CustomerOrders As CustomerOrdersBO
          Get
                If me.Count > 0 Then
                     _CustomerOrders.Filter = "ForeignKey=" & Me.MyPrimaryKey.ToString()
                End If

                Return _CustomerOrders
          End Get
    End Property
End Class

End namespace

You will then reference the CustomerOrders as the data source within the database you are using in RSS.  This is far safer and more reliable...not to mention faster.

hector
hector
StrataFrame User (144 reputation)StrataFrame User (144 reputation)StrataFrame User (144 reputation)StrataFrame User (144 reputation)StrataFrame User (144 reputation)StrataFrame User (144 reputation)StrataFrame User (144 reputation)StrataFrame User (144 reputation)StrataFrame User (144 reputation)
Group: StrataFrame Users
Posts: 52, Visits: 559
Hi Trent,

I am newbie to SF.

Can u supply me a good working example using this technique in reporting?

Kind regards....

Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Hector and welcome to the forums.



There are several RSS samples in the forums, just do a search using "sharpshooter" to find those messages.



Also the StrataFlix sample application uses this technique but with .Net Reports instead, but you can get the idea on how to implement it.

Edhy Rijo

Les Pinter
Les Pinter
StrataFrame Team Member (73 reputation)StrataFrame Team Member (73 reputation)StrataFrame Team Member (73 reputation)StrataFrame Team Member (73 reputation)StrataFrame Team Member (73 reputation)StrataFrame Team Member (73 reputation)StrataFrame Team Member (73 reputation)StrataFrame Team Member (73 reputation)StrataFrame Team Member (73 reputation)
Group: Forum Members
Posts: 43, Visits: 213
Hi All,

   I'm just finishing a series of articles on SSRS reporting, so stay tuned to LesPinter.com...

Les

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Hey Hector,



As Edhy mentioned, StrataFrame comes with a robust sample called StrataFlix which shows how to create a report using StrataFrame Business Objects. In this sample we just use RDL reports which can be downloaded for free and is commonly used by .NET developers. However, in our medical application we use (and recommend) Report Sharp Shooter by Perpetuum Software. We have been very pleased with this reporting engine and it has proven to be robust enough to handle some pretty major demands from within our medical application.
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