03-08-2011 12:30 PM
Hello,
I am working on a custom plugin but having an issue, I have on my form a comboBox, I want my plugin to pull in all the different types of activities that are in the database (call, meeting, todo, as well as custom ones) and add them as options in the combo box. Any ideas?
03-09-2011 12:45 PM
You could use a foreach loop on the array of types to add them as items in the combo box. So the psuedo code would be something like:
foreach(Type type in TypeArray[])
{
combobox1.Items.Add(type.Name.toString());
}
03-08-2011 12:41 PM - edited 03-08-2011 12:42 PM
This will get you all of the activity types:
ActivityType[] Types = ActApp.ActFramework.Activities.GetActivityTypes();
03-09-2011 10:30 AM
If I wanted to add each activity type as an item in a checkedlistbox control whats the best way to do it. I am not quite sure how the coding would work.
03-09-2011 12:45 PM
You could use a foreach loop on the array of types to add them as items in the combo box. So the psuedo code would be something like:
foreach(Type type in TypeArray[])
{
combobox1.Items.Add(type.Name.toString());
}
03-12-2011 07:26 PM - edited 03-12-2011 07:29 PM