Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Updating SSIS task standard properties window

$
0
0

Hi,

    If, in an SSIS package, you put an instance of an 'Execute SQL Task' task in the Control Flow, in the Properties window, you can see the properties of the task, for example CodePage.

    If you double click on the task, the Execute SQL Task Editor appears, with several of the properties which are also in the Properties window, including CodePage.

    If, in the Editor, you update the value of CodePage, then click OK, the value of CodePage in the Properties window is updated immediately.

    I have written a custom SSIS task, which also has the same properties in the Properties window and in the Editor. The Editor also has an OK button. When OK is clicked, the values of the task properties are updated. An example property is FolderToArchive. If I open the Editor, change the value of FolderToArchive and click the OK button, the value of FolderToArchive in the Properties window is NOT immediately updated.

    If, however, I select the FolderToArchive field in the Propertiesd window, it is then updated with the value I entered in the Editor.

    How do I get my task to update the values in the Properties window, after changing a value in the Editor, when I click the OK button please?

    I would have thought I would need something like, in pseudo-code,

    Task.Parent.PropertiesWindow.Refresh

    where task is of type Microsoft.SqlServer.Dts.Runtime.Task and Task.Parent is of type Microsoft.SqlServer.Dts.Runtime.Package.

    Thanks,

    Kevin


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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