C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Web Report not updating

rated by 0 users
This post has 1 Reply | 0 Followers

Not Ranked
Posts 2
nickwalt Posted: Tue, Jan 13 2009 10:36 AM

C1WebReport v2.5.20073.258 

I have been using the article 1534 as the basis for my report

http://helpcentral.componentone.com/PrintableView.aspx?ID=1534

1,however I run this query get 19 results back, however when i click on the next button It says there are 0 rows returned. Should this work

2, When I select various options and call the SP (returning a smaller subset of the data) the report is not updated.

 I have tried a mixture setting things to nothing and databinding all of which do not appear to solve the problem

 my code is

Dim c1 As New C1Report

Dim reportpath As String

Dim dt As DataTable

reportpath = "path hidden"

c1.Load(reportpath, "Report1")

c1.DataSource.Recordset = Nothing

' i get the data table with my search options

dt = JobsHelperSP.GetJobsSummary(UserId, CompanyID)

c1.DataSource.Recordset = dt

C1WebReport.Report = c1

C1WebReport.visible = True

 

I also tried to use this 

Private Sub C1WebReport1_InitializeParametersDialog(ByVal sender As Object, ByVal e As C1.Win.C1Report.DialogEventArgs) Handles C1WebReport1.InitializeParametersDialog

 

Dim p As ReportParameterCollection = e.Parameters
p("userid").Value = 4
p("companyId").Value = 1
e.ShowDialog =
False

end sub

 

But this event is only fired on page load and i need it to fire  ?

 

Anyone got any ideas to help me.. Its driving me mad !!

 

many thanks

Andrew

Top 10 Contributor
Posts 1,237
Hi,

I think you are missing a small thing here:

Please use

C1WebReport1.Report = c1 '------- Name of your C1WebReportObject
C1WebReport1.visible = True

Instead of

C1WebReport.Report = c1
C1WebReport.visible = True

Hope this helps.

Regards,
Patrick


wrote in message news:213299@10.0.1.98...
C1WebReport v2.5.20073.258
I have been using the article 1534 as the basis for my report
http://helpcentral.componentone.com/PrintableView.aspx?ID=1534
1,however I run this query get 19 results back, however when i click on the
next button It says there are 0 rows returned. Should this work
2, When I select various options and call the SP (returning a smaller subset
of the data) the report is not updated.
I have tried a mixture setting things to nothing and databinding all of
which do not appear to solve the problem
my code is
Dim c1 As New C1Report
Dim reportpath As String
Dim dt As DataTable
reportpath = "path hidden"
c1.Load(reportpath, "Report1")
c1.DataSource.Recordset = Nothing
' i get the data table with my search options
dt = JobsHelperSP.GetJobsSummary(UserId, CompanyID)
c1.DataSource.Recordset = dt
C1WebReport.Report = c1
C1WebReport.visible = True

I also tried to use this
Private Sub C1WebReport1_InitializeParametersDialog(ByVal sender As Object,
ByVal e As C1.Win.C1Report.DialogEventArgs) Handles
C1WebReport1.InitializeParametersDialog

Dim p As ReportParameterCollection = e.Parameters
p("userid").Value = 4
p("companyId").Value = 1
e.ShowDialog = False
end sub

But this event is only fired on page load and i need it to fire ?

Anyone got any ideas to help me.. Its driving me mad !!

many thanks
Andrew



http://helpcentral.componentone.com/cs/forums/p/77879/213299.aspx#213299
Page 1 of 1 (2 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.