or
here i am facing problem with two paramters.
I have create two parameters one is role and object.
Role parameter with allow null=true, data Source ,dispaly member="rolename",value member="RoleID"
Object parameter with allow null=true,data Source ,dispaly member="objectname",value member="ObjectID"
placed condition in filter in report property window as
=fields.roleid==parameter.roleid and =fields.objectid==parameter.objectid
Object paramter is working but role parameter is not working.
plz can u clarify this one.
thx
| Partial Public Class MasterReport |
| Inherits Report |
| Public Sub New() |
| InitializeComponent() |
| End Sub |
| Dim _ReportCriteria As IA.Reporting.ReportCriteria |
| 'Public Sub New(ByVal subReport As ReportBase, ByVal criteria As ReportCriteria) |
| Public Sub New(ByVal subReport As IReport, ByVal criteria As ReportCriteria) |
| InitializeComponent() |
| 'Init the DataSource |
| Dim oneRec As New GenericCollection(Of String) |
| oneRec.Add("one") |
| Me.DataSource = oneRec |
| 'Set the Sub Report Type |
| Me.SubReport1.ReportSource = subReport |
| Me.PictureBox1.Value = ReportRenderTools.ImageTools.IAHeaderImage |
| Me.reportNameTextBox.Value = subReport.ReportTitle |
| _ReportCriteria = criteria |
| End Sub |
| Private Sub SubReport1_NeedDataSource(ByVal sender As Object, ByVal e As System.EventArgs) Handles SubReport1.NeedDataSource |
| Dim subReport As Telerik.Reporting.Processing.SubReport = TryCast(sender, Telerik.Reporting.Processing.SubReport) |
| If Not subReport Is Nothing Then |
| Dim IRep As IReport = TryCast(subReport.InnerReport.ItemDefinition, IReport) |
| IRep.SetReportHeader(_ReportCriteria) |
| Dim data As Object = IRep.CreateDataSource(_ReportCriteria) |
| If data.Count = 0I Then |
| subReport.InnerReport.DataSource = Nothing |
| Else |
| subReport.InnerReport.DataSource = data |
| End If |
| End If |
| End Sub |
| End Class |