Содержимое динамических параметров служб Reporting Services на основе других настроек параметров

Возможно ли в службах отчетов заполнить параметр на основе значения, выбранного в другом параметре? Мы рассматриваем возможность замены набора существующих отчетов в устаревшей платформе отчетности, которая часто делает это.


person Jeff    schedule 30.07.2009    source источник


Ответы (2)


Пожалуйста, укажите этот вопрос. Обновление параметров отчета на основе выбора параметра? (SSRS)

person Russ Bradberry    schedule 30.07.2009
comment
Спасибо, это именно то, что я искал. - person Jeff; 30.07.2009

Общедоступная общая функция RemoveDuplicates (параметр как параметр) As String () Затемнение элементов As Object () = parameter.Value

    System.Array.Sort(items) 

    Dim k As Integer = 0

    For i As Integer = 0 To items.Length - 1
        If i > 0 AndAlso items(i).Equals(items(i - 1)) Then
            Continue For
        End If
    items(k) = items(i)
    k += 1
    Next

    Dim unique As [String]() = New [String](k - 1) {}
    System.Array.Copy(items, 0, unique, 0, k)
Return unique

Конечная функция

Public Shared Function BuildList (ByVal variableName As String, ByVal paramValues ​​As Object ()) As String Dim insertStatements As New System.Text.StringBuilder () Для каждого paramValue As Object В paramValues ​​insertStatements.AppendLine (String.Format ("INSERT {0} ЗНАЧЕНИЯ ('{1}') ", variableName, paramValue)) Далее Вернуть insertStatements.ToString () Конечная функция

Открытая функция createLabel (ByVal month AS Integer, ByVal index AS Integer) AS String Dim year AS Integer = Now.Year

If month <= 0 Then
    month   = month + 12
    year    = year - 1
End If

If month - index > 0 Then
    Return MonthName(month - index) & " " & year
Else 
    Return MonthName(month  + (12 - index)) & " " & year -1
End If

Конечная функция

Открытая функция createValue (ByVal month AS Integer, ByVal index AS Integer) AS String Dim year AS Integer = Now.Year

If month <= 0 Then
    month   = month + 12
    year    = year - 1
End If


If month - index > 0 Then
    Return RIGHT("0" & month - index,2)  & year
Else 
    Return RIGHT("0" & month  + (12 - index),2)  & year -1
End If

Конечная функция

person vick    schedule 05.04.2018