on 2007 Mar 27 12:08 PM
How can i get Allowed Values os property defined by me in Global Services  Property Metadata  Properties??
Im trying with IService service = ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.PROPERTY_STRUCTURE_SERVICE); but i think its wrong
Any idea?
Hi, try this:
IPropertyConfigurationService propConfigService =
(IPropertyConfigurationService) ResourceFactory
.getInstance()
.getServiceFactory()
.getService("PropertyConfigurationService");
IMetaModel mm = propConfigService.getMetaModel();
IMetaName name = mm.searchByProperty(
new Property(
new PropertyName(
"<property namespace>",
"<property id>"
),
""
)
);
IMetaValueListIterator iterator = name.allowedValueIterator();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
10 | |
10 | |
10 | |
10 | |
8 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.