I’m not able to view the report preview in at design time. I receive an error saying I need to provide valid data for all parameters. I’m using an objectdatasource with its datasource set to a data class. I thought there was a way to provide parameter values for use at design time for just this scenario. When I right click on the report and view report then right click the parameters and click edit parameters, there is a place for each parameter to provide a constant value, I did that and still I receive the error message. When I configure the datasource there was a pane in the setup wizard that allowed design time parameters to be added, but I cannot seem to get back to that pane anymore for some reason. If the data method of the data class were being called with no parameters values then I would get an empty dataset, so it appears that it is not getting that far. I have the connection string hardcoded in the data class. When I had the report setup with a sqldatasource the preview worked fine
So when using a parameterized method in a dataclass with the objectdatasource is there any way to have the report preview work?
Here is the signature of my data method:
<DataObjectMethod(DataObjectMethodType.Select)> _
Public Function TransferReportList(ByVal sn As String, _
ByVal tz As Single, _
ByVal transferBy As Integer, _
ByVal sortBy As Short, _
ByVal allDates As Boolean, _
ByVal FromDate As Date, _
ByVal ToDate As Date, _
ByVal direction As Short) As List(Of DataTransfer)
So when using a parameterized method in a dataclass with the objectdatasource is there any way to have the report preview work?
Here is the signature of my data method:
<DataObjectMethod(DataObjectMethodType.Select)> _
Public Function TransferReportList(ByVal sn As String, _
ByVal tz As Single, _
ByVal transferBy As Integer, _
ByVal sortBy As Short, _
ByVal allDates As Boolean, _
ByVal FromDate As Date, _
ByVal ToDate As Date, _
ByVal direction As Short) As List(Of DataTransfer)