Reading business object dictionary item list


I have added a custom business object to [Contact] for storing a [JobRole] of type "Dictionary items".

Is there any way to read the collection of item values from the dictionary object and, for example, populate a drop down list?

Can't seem to find an example of this being applied anywhere.

Any help would be appreciated.

Jul 25, 2014 17:39

Hi Smark,

Let's try this:

var originalMetaType = DataContext.Current.MetaModel.RegisteredTypes["JobRole"];
var items = originalMetaType.EnumItems;

Aug 05, 2014 4:14

Hi Ton,

Thank you for the reply.

I tried what you suggested, but .EnumItems only contains one item (the first in the list).

However, the business object dictionary list contains 3 items.

Aug 12, 2014 11:17
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.