How to filter parameters

How to filter parameters

  • To filter parameters based on the current state, specify the FilterProperties attribute on the parameters class. Specify the method name as attribute parameter. The specified method is dynamically called every time the class parameters are refreshed.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<FilterProperties("GetProperties"})> _
Public Class ScriptMain
 
...
 
Public Function GetProperties() As String()
    Dim result As New ArrayList
 
    Call result.Add("Action"' Action is always included.
 
    If Me.Action = "Upload File" Then
        Call result.Add("SourceFil")
    ElseIf Me.Action = "Download File" Then
        Call result.Add("TargetFolder")
    End If
 
    Return CType(result.ToArray(GetType(String)), String())
End Function

You may also check the sample script Http Upload/Download Task


    Book a Presales Call


    Are you new to COZYROC and evaluating our solutions? 
    Book a Presales Call with us now and get 5% off SSIS+.