Quantcast
Viewing all articles
Browse latest Browse all 8122

Re: SAP B1 CRYSTAL REPORT MULTIPLE SELECTIONS PARAMETER

Hi Vinoth,

 

It is very simple to add multiple selection parameter for filter.

1)   when u create proc for report then use like with where clause.

for example:

where T0.Groupmask IN(4,5)  

  AND (@CostCenterType like ('%#'+ISNULL( E.CCTypeCode,'')+'#%') )

 

2)    and when call report in Code then use like

 

For i As Integer = 1 To oitemgrpmatrix.RowCount

            ochk = oitemgrpmatrix.Columns.Item("select").Cells.Item(i).Specific

            If ochk.Checked = True Then

                If CostCode.ToString = "" Then

                    CostCode = "#" + oitemgrpmatrix.Columns.Item("CstCD").Cells.Item(i).Specific.string + "#"

                Else

                    CostCode = CostCode.ToString + oitemgrpmatrix.Columns.Item("CstCD").Cells.Item(i).Specific.string.ToString + "#"

                End If              

            End If

        Next

    

 

i hope it useful for u.....

 

Regards,

Sandeep kr.


Viewing all articles
Browse latest Browse all 8122

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>