A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Reading business object dictionary item list

Vote:
 

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.

#88702
Jul 25, 2014 17:39
Vote:
 

Hi Smark,

Let's try this:

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

#88953
Aug 05, 2014 4:14
Vote:
 

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.

#89258
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.