Help! Enumeration Custom Fields with Dynamic Possible Values

Post about your customizations to share with others.

Moderators: Developer, Contributor

Help! Enumeration Custom Fields with Dynamic Possible Values

Postby flexiy » Oct 13, 2010 1:08 pm

I'm trying to follow this page: http://www.mantisbt.org/wiki/doku.php/m ... ds?do=show
but I couldn't get it work.

what steps I have to follow, to get it working?

I want an association like:
'Animals' = cat|dog
'Food' = japanese|chinese

I already have the fields with:
Animals|Food (enum)
and
cat|dog|japanese|chinese

but what steps I have to do for when I select 'Animals' it only show the animals???
flexiy
 
Posts: 4
Joined: Oct 13, 2010 12:54 pm

Re: Help! Enumeration Custom Fields with Dynamic Possible Va

Postby flexiy » Oct 21, 2010 5:37 am

is not that simple like the wiki?
I still can't get it work

no one can help? ;/
flexiy
 
Posts: 4
Joined: Oct 13, 2010 12:54 pm

Re: Help! Enumeration Custom Fields with Dynamic Possible Va

Postby atrol » Oct 23, 2010 6:08 am

You could post your sourcecode and tell what is happening (getting error messages? wrong values displayed?, .....)
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
 
Posts: 3726
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Help! Enumeration Custom Fields with Dynamic Possible Va

Postby flexiy » Oct 25, 2010 5:32 am

i'm using the original source code.
don't know how to change (even with the wiki) :/
flexiy
 
Posts: 4
Joined: Oct 13, 2010 12:54 pm

Re: Help! Enumeration Custom Fields with Dynamic Possible Va

Postby atrol » Oct 25, 2010 6:12 am

You should start with a single custom enumeration field called "Animals" and function custom_function_override_enum_Animals

But to get all run the way you want (where contents of one field influences the contents of the other) you have to learn PHP, HTML, CSS and JavaScript
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
 
Posts: 3726
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Help! Enumeration Custom Fields with Dynamic Possible Va

Postby flexiy » Oct 27, 2010 5:45 am

atrol wrote:You should start with a single custom enumeration field called "Animals" and function custom_function_override_enum_Animals

But to get all run the way you want (where contents of one field influences the contents of the other) you have to learn PHP, HTML, CSS and JavaScript


i already know this languages, not all of each. i just don't understand how mantis works.
Last edited by flexiy on Oct 28, 2010 5:25 am, edited 1 time in total.
flexiy
 
Posts: 4
Joined: Oct 13, 2010 12:54 pm

Re: Help! Enumeration Custom Fields with Dynamic Possible Va

Postby atrol » Oct 27, 2010 1:26 pm

atrol wrote:You could post your sourcecode and tell what is happening (getting error messages? wrong values displayed?, .....)

Furthermore post the definition of your custom field
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
 
Posts: 3726
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Help! Enumeration Custom Fields with Dynamic Possible Va

Postby diegcam1 » Oct 28, 2010 4:35 pm

Hi have the same problem

What file i have to edit?

Thanks
diegcam1
 
Posts: 1
Joined: Oct 28, 2010 4:15 pm

Re: Help! Enumeration Custom Fields with Dynamic Possible Va

Postby atrol » Oct 29, 2010 3:01 am

http://docs.mantisbt.org/master/en/admi ... USTOMFUNCS
User versions of these functions are placed in a file called custom_functions_inc.php in the root directory of MantisBT
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
 
Posts: 3726
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Help! Enumeration Custom Fields with Dynamic Possible Va

Postby M@rce » May 10, 2011 9:21 am

Hi,
Can i make a customization for each project in MBT?
Thanks.
"La inteligencia consiste no sólo en el conocimiento, sino también en la destreza de aplicar los conocimientos en la práctica."
Aristóteles
M@rce
 
Posts: 98
Joined: May 05, 2011 3:46 pm
Location: Montevideo - Uruguay


Return to Customizations

Who is online

Users browsing this forum: No registered users and 3 guests

cron