This is a migrated thread and some comments may be shown as answers.

DataObject Error

1 Answer 20 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Betsy
Top achievements
Rank 1
Betsy asked on 08 May 2013, 11:46 AM
We just upgraded to the latest release of the Report components and are now receiving an error about No Default item for ResultSet when accessing the set.DataObject("fieldname") like below.  The datasource is a SQLDataSource and all this worked prior to the upgrade.
Private Sub activityTable_NeedDataSource(ByVal sender As Object, ByVal e As System.EventArgs) Handles activityTable.NeedDataSource
    Dim tbl As Telerik.Reporting.Processing.Table = TryCast(sender, Processing.Table)
    Dim sect As Processing.ReportSection = TryCast(Processing.ElementTreeHelper.FindChildByName(tbl.Report, "ReportHeaderSection1", True).FirstOrDefault, Processing.ReportSection)
    Dim data As Object = sect.DataObject
    Dim cutoffdate As Date, managedbypartnerid As Integer
    Dim totalduetextbox As Processing.ProcessingElement = Processing.ElementTreeHelper.GetChildByName(sect, "payStubAmountDueTextBox")
    Dim totaldueaftertextbox As Processing.ProcessingElement = Processing.ElementTreeHelper.GetChildByName(sect, "payStubAmountDueAfterTextBox")
    Dim autopaytextbox As Processing.ProcessingElement = Processing.ElementTreeHelper.GetChildByName(sect, "autopaytext")
    If data IsNot Nothing Then
      cutoffdate = data.Item("UsageCutOffDate")
      managedbypartnerid = data.Item("ManagedByPartnerId")
    End If

1 Answer, 1 is accepted

Sort by
0
IvanY
Telerik team
answered on 13 May 2013, 01:34 PM
Hello Heather,

Thank you for the provided code snippet. However we will need some more information regarding your scenario and it will be best if you open a support ticket and provide us with a runnable sample that exhibits the issue - this will help us advise you more accordingly.

Thank you for your cooperation.

Regards,
IvanY
the Telerik team

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

Tags
General Discussions
Asked by
Betsy
Top achievements
Rank 1
Answers by
IvanY
Telerik team
Share this question
or