I think the title of the question says it all. I am developing a custom data flow component for SSIS. I would like to use a checkbox list that gets it’s values from a collection (list, enum,… doesn’t really matter) and gives the user the possibility to check several options.
Then I want to get these as a list in my SSIS component…
Does someone have an idea on how this is possible?
UPDATE.
For example I have a list containing {a,b,c,d}. (Let’s say it’s hard coded although in practise i’ll be pulling records out of a database).
I want to give the user a checkbox where he can for example check a and c from the above list.
Then the property in my component now contains: {a,c}.
CLARIFICATION
I have a list of strings. In my UI(Advanced editor if possible), I want to build a combobox with the options being the strings in the list.
The component has a string property. Once the user has made his choices from the combobox, a comma separated string containing the choices is built and passed to the component and stored in the string property.
What I need to know is:
- How do I build a combobox in the Advanced editor (if possible) based
on the list of strings? - How do I get the values from the UI back to the component to then
build my string?
Let me answer first question first:
This means that You will have to develop UI form for Your component. To answer to your two question You need to check following sections in this article:
Clarification about passing property values from component to UI and back:
And one more thing: since You will create UI for your component, consider using Checked ListBox which is already provided with .NET framework instead of creating custom component.
Provided link is for SQL Server 2008 R2, You can choose different version on top of article if You wish.
Hopefully this is enough for You to continue with your task.