BBS DataRelation <> Report Sharp Shooter


Author
Message
Philipp Guntermann
Philipp Guntermann
StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)StrataFrame User (249 reputation)
Group: Forum Members
Posts: 141, Visits: 263
Hi,

i am using the express version of report sharpshooter. i can create simple reports with no parent/child relations by just dropping a BBS onto the form and setting it up. Tho i dont see a possibility to set up a parent-child relationship between two bbs objects in a way that report sharpshooter understands.

any ideas ?

thanks.

Reply
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Philipp Guntermann (12/15/2008)
is there a possible approach to have the childbo only hold the records relative to the parent bo at any time ?

Hi Philipp,

I handle that scenario by creating an SQL statement that will allow me to get the child records for the selected parent PK.  Here is one of my method for a Service Call Profile report:

''' <summary>

''' Retrieves all of the recods that will be used within the Service Call Profile Report (rptServiceCallProfile.rst)

''' </summary>

''' <param name="PK_ServiceCalls"></param>

''' <param name="includeServiceCallRecord"></param>

''' <returns></returns>

''' <remarks></remarks>

Public Shared Function ServiceCallProfileReport_AllData(ByVal PK_ServiceCalls As Integer, ByVal includeServiceCallRecord As Boolean) As SqlCommand

     '-- Establish Locals

     Dim cmd As New SqlCommand()

     '-- Determine if the Service Call record will be included

     If includeServiceCallRecord Then

          cmd.CommandText = "SELECT dbo.ServiceCalls.* FROM dbo.ServiceCalls WHERE dbo.ServiceCalls.PK_ServiceCalls = @PK_ServiceCalls;"

     End If

     '-- Add the Service Call Appliances query for the selected Service Call PK, ordered by the Appliance Service Date.

     cmd.CommandText &= "SELECT dbo.SC_Appliances.* " & _

                                    "FROM dbo.SC_Appliances " & _

                                    "LEFT JOIN dbo.ServiceCalls ON (dbo.ServiceCalls.PK_ServiceCalls = dbo.SC_Appliances.FK_ServiceCalls) " & _

                                    "WHERE (dbo.ServiceCalls.PK_ServiceCalls = @PK_ServiceCalls)" & _

                                    "ORDER BY dbo.SC_Appliances.ServicedDate;"

     '-- Add the Service Call Appliance items for the selected service all PK.

     cmd.CommandText &= "SELECT dbo.SC_AppliancesItems.* FROM dbo.SC_AppliancesItems " & _

                                    "LEFT JOIN dbo.SC_Appliances ON (dbo.SC_AppliancesItems.FK_SC_Appliances = dbo.SC_Appliances.PK_SC_Appliances) " & _

                                    "LEFT JOIN dbo.ServiceCalls ON (dbo.SC_Appliances.FK_ServiceCalls = dbo.ServiceCalls.PK_ServiceCalls) " & _

                                    "WHERE (dbo.ServiceCalls.PK_ServiceCalls = @PK_ServiceCalls)" & _

                                    "ORDER BY dbo.SC_AppliancesItems.ItemType, dbo.SC_AppliancesItems.ServicedDate;"

     '-- Create the parms

     cmd.Parameters.AddWithValue("@PK_ServiceCalls", PK_ServiceCalls).SqlDbType = SqlDbType.Int

     '-- Return the results

     Return cmd

End Function

Hope this help you out!

Edhy Rijo

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Philipp Guntermann - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Philipp Guntermann - 17 Years Ago
Dustin Taylor - 17 Years Ago
Dustin Taylor - 17 Years Ago
Philipp Guntermann - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Philipp Guntermann - 17 Years Ago
Ivan George Borges - 17 Years Ago
Philipp Guntermann - 17 Years Ago
Philipp Guntermann - 17 Years Ago
Ivan George Borges - 17 Years Ago
Philipp Guntermann - 17 Years Ago
Ivan George Borges - 17 Years Ago
                 It looks like you forgot to override the...
Ivan George Borges - 17 Years Ago
Philipp Guntermann - 17 Years Ago
                         Hi there. I'm facing some difficulties over here, since I don't speak...
Ivan George Borges - 17 Years Ago
Philipp Guntermann - 17 Years Ago
Philipp Guntermann - 17 Years Ago
Philipp Guntermann - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Philipp Guntermann - 17 Years Ago
Ivan George Borges - 17 Years Ago
Edhy Rijo - 17 Years Ago
                     Hey, don't give up his secret identity!!! :smooooth:
Ivan George Borges - 17 Years Ago
                         LOL....you guys need to tell my WIFE that :D When I am sitting on the...
Trent L. Taylor - 17 Years Ago
Philipp Guntermann - 17 Years Ago
Philipp Guntermann - 17 Years Ago
Ivan George Borges - 17 Years Ago
Philipp Guntermann - 17 Years Ago
Ivan George Borges - 17 Years Ago
                         [quote][b]Ivan George Borges (12/15/2008)[/b][hr]Well, I think I...
Philipp Guntermann - 17 Years Ago
                             Phillip, You can do this and is just a design that you need to...
Trent L. Taylor - 17 Years Ago
                                 Hello Trent, i did download and look at the strataflix sample. As...
Philipp Guntermann - 17 Years Ago
                                     And my previous post covers that. You can perform a query at the point...
Trent L. Taylor - 17 Years Ago
Edhy Rijo - 17 Years Ago
Dustin Taylor - 17 Years Ago
Dustin Taylor - 17 Years Ago
Edhy Rijo - 17 Years Ago
Philipp Guntermann - 17 Years Ago
Philipp Guntermann - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search