q : Enumeration Custom Fields with Dynamic Possible Values

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
kmet
Posts: 13
Joined: 13 Apr 2005, 10:37

q : Enumeration Custom Fields with Dynamic Possible Values

Post by kmet »

Mantis 1.0.0rc1

http://www.futureware.biz/blog/index.ph ... &tb=1&pb=1

Im not sure, If i uderestand this feature, but Is it possible with this feature to make something like subcategories ?

I would like to have a custom field (enum type) "subcategory" which set of values depends on chosen category ?

for example :
if I choose category 'animals', subcategory values are 'cat'|'dog' . If i choose category 'plants', subcategory values are 'flower'|'tree'.

If it is possible, could someone paste proper custom function, PLEASE ? :)
danich
Posts: 18
Joined: 21 May 2007, 17:39

Post by danich »

Im stuck in a similar problem than yours.
this method works like a charm when "Animals" and "Plants" are projects.
When the report form loads, it is project-specific and the custom field shows the project specific items.
But the thing comes when you want to link two custom fields between them, I think that that is not possible using this method.
I want to do something like:
Project: SMS
Possible acceses: 9009|5200|etc...
Possible prefixes: If (Possible acceses) = 9009 -> A|B|C
If (Possible acceses) = 5200 -> D|E|F
Project: IVR
Possible acceses: 123|1234|etc...
Possible prefixes: If (Possible acceses) = 123-> G|H|I
If (Possible acceses) = 1234-> J|K|L

Is this possible?

Another solution would be like doing a big enum showing data like this:

9009-A|9009-B|9009-C|5200-A|5200-B|etc... but that looks horrible
Post Reply