Non-Com property string list

Non-Com property string list

jordan
Contributor Contributor
607 Views
2 Replies
Message 1 of 3

Non-Com property string list

jordan
Contributor
Contributor

I am converting our COM properties into a NON-COM property system and I am experiencing some issues/questions.

 

- I want to have a property with a dynamic list of strings?  Is this possible? I've found some code where you can achieve this for an Enum, but this is not quite what I want. It's just a string property which can be chosen from a list.

 

- Is there a way to add properties dynamicly based on which instance of an entity? For example entity 1 of type X should display 3 properties, but entity 2 of type X should display 4 entities, because more information is available

 

- Is there a way to dynamicly set the translation of an enum list? In some cases my enum is translated ' By user', 'By Parent', but the same (internal) enum is sometimes translated into 'By user' and 'By configuration', in case of which property of the entity is shown.

 

 

 

0 Likes
608 Views
2 Replies
Replies (2)
Message 2 of 3

jordan
Contributor
Contributor

Found a solution myself for first and third question.

The blog article from Adam Nagy http://adndevblog.typepad.com/autocad/2012/04/non-com-property-with-list-of-possible-values.html can be modified so that string list are shown and can be modified.  These strings can be translated in advanced, before they are shown.

 

But I still need/want an answer for my second question, about dynamically add properties to the entity

0 Likes
Message 3 of 3

deepak.a.s.nadig
Alumni
Alumni

Using Non-COM property system it is not possible at present to populate a dynamic list retrieved from the entity.

Our Engineering Team is already aware of this.

0 Likes