StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



BO and BBS with SharpshooterExpand / Collapse
Author
Message
Posted 03/12/2009 10:50:21 AM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: 07/09/2010 10:20:19 AM
Posts: 85, Visits: 213
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.

Post #22341
Posted 03/12/2009 11:04:14 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 07/06/2010 6:04:33 PM
Posts: 6,275, Visits: 6,165
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.

Post #22343
Posted 02/23/2010 2:51:31 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: 05/30/2010 9:38:54 AM
Posts: 11, Visits: 64
Hi Trent,

I am newbie to SF.

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

Kind regards....

Post #26170
Posted 02/23/2010 3:52:12 PM


StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Today @ 10:39:38 AM
Posts: 1,590, Visits: 9,189
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
(Using VB.Net 2010/SQL Server 2008)
Post #26171
Posted 02/23/2010 4:51:23 PM
StrataFrame Team Member

StrataFrame Team MemberStrataFrame Team MemberStrataFrame Team MemberStrataFrame Team MemberStrataFrame Team MemberStrataFrame Team MemberStrataFrame Team MemberStrataFrame Team Member

Group: StrataFrame Developers
Last Login: 04/11/2010 6:13:14 AM
Posts: 43, Visits: 208
Hi All,

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

Les

Post #26175
Posted 02/24/2010 8:30:57 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 07/06/2010 6:04:33 PM
Posts: 6,275, Visits: 6,165
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.
Post #26178
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Trent L. Taylor, Steve L. Taylor, Dustin Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 11:25am

Powered by InstantForum.NET v4.1.4 © 2010
Execution: 0.078. 8 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.