无法在SSRS上运行代码

时间:2019-04-09 12:44:33

标签: reportbuilder3.0

我是使用.rdl文件中的代码编写的,

代码正在从SCOM获取数据。

 Public Function GetServerInfo('EMEAMAQ-LU02||',0, '6431DE09-3165-7153-EF9A-92BDDE538CD9') As String
        Dim man As String = managedEntityId.ToString()
        For i As Integer = 0 To parameter.Count - 1
            If CStr(parameter.Value(i)).Equals(man, StringComparison.InvariantCultureIgnoreCase) Then
                Dim param As String = CStr(parameter.Label(i))
                Dim arr As String() = param.Split(New String() {"|"}, System.StringSplitOptions.None)
    Dim v as string = arr(columnNb)
                If string.isnullOrEmpty(v) Then
        if columnNb >0 then
                        Return "(none)"
        else 
            return "no server name"
        End if
    Else
                    Return v
                End If
            End If
        Next
        Return "N/A"
    End Function here

此功能我需要了解它正在执行的内容,我为什么将服务器名设为空?

功能参数

Public Function GetServerInfo(ByVal parameter As Parameter, ByVal columnNb As Integer, ByVal managedEntityId As Guid) As String

这些行在做什么,我需要运行如何在.RDL文件中运行代码。

CStr(parameter.Value(i)).Equals(man, StringComparison.InvariantCultureIgnoreCase) Then
            Dim param As String = CStr(parameter.Label(i))
            Dim arr As String() = param.Split(New String() {"|"}, System.StringSplitOptions.None)
Dim v as string = arr(columnNb)

0 个答案:

没有答案