Community
Showing results for 
Search instead for 
Do you mean 
Reply

Custom Sub Entities

gkl
Copper Contributor
Posts: 29
Country: Ecuador

Custom Sub Entities

I have created some custom sub entities under contacts. This entity  has fields that are  a dropdown list,"demo type" and i want to set a value on them programmatically, with c#. I can acces the field and set the value as a string,. but how can i acces a custon entities filed that has a dropdownmenu n change its value with one of the provided optios?

 

 

Copper Contributor
Posts: 123
Country: Canada

Re: Custom Sub Entities

[ Edited ]

You could make a comboBox (if using winForms) and then get the PickList and populate the comboBox Items.

 

reference Act.UI.PickLists.dll (under install path for Act)

 


            Act.Framework.PickLists.PickList pickList = actFwk.PickLists.GetPickListByName("your picklist name");

            foreach (Act.Framework.PickLists.PickListItem item in pickList.Items)
            {
                combobox1.Items.Add(item);
            }

 

Is that what you are looking for? Hope that helps.

-Eric