Hi!, i'm new with OTRS and i have cero experience in Pearl. I'v been a php programmer for several years now.
But i´m in charge of implementing OTRS in my office and what i need is to add a new field to the phone ticket creation.
I added some with the free fields but what i need now is more complex.
This field should be a dropdown with an external datasource. I read a thread where it´s implemented hacking some files (I mange to do that but i can´t save the data). Regardless that´s not a solution that i like. Is there any other way to do this?
I saw this feature:
"Add new field types (e.g. a dropdown with an external data source) at reasonable effort based on a modular and pluggable design" and it seems to be exactly what i need, but i cant find any documentation about it.
Can anyone help me with this? Maybe an example or with some pointers?
Thanks!
Octavio.
Add new field types
Moderator: crythias
-
- Znuny newbie
- Posts: 59
- Joined: 24 Jul 2012, 18:20
- Znuny Version: 3.1.7
- Real Name: Girish Mungra
Re: Add new field types
Got exactly the same issue here.Wonder what OTRS means by
"Add new field types (e.g. a dropdown with an external data source) at reasonable effort based on a modular and pluggable design"
"Add new field types (e.g. a dropdown with an external data source) at reasonable effort based on a modular and pluggable design"
OTRS 3.1.7 on Linux RedHat with MySQL database connected to an Active Directory for Agents and Customers.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Add new field types
If you want to fill a field with data from another source, you'll need to create a field -- TicketFreeText (<3.0)or DynamicField (3.1+) -- and populated it by whatever method you'd use, then it will save the value in the field.
psuedo html:
<select name="DynamicField_fieldName">
<!-- code to create options based upon ajax, javascript, etc should fill here -->
</select>
"How do I populate options from my database?"
More or less, the same way you'd do it any other non-otrs way.
"Even PHP"?
Not really. Maybe use getJSON or equivalent from your JS framework of choice.
psuedo html:
<select name="DynamicField_fieldName">
<!-- code to create options based upon ajax, javascript, etc should fill here -->
</select>
"How do I populate options from my database?"
More or less, the same way you'd do it any other non-otrs way.
"Even PHP"?
Not really. Maybe use getJSON or equivalent from your JS framework of choice.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 25
- Joined: 07 Jul 2012, 23:06
- Znuny Version: 3.1.11
- Location: North Carolina, USA
Re: Add new field types
This is a much needed feature! The documentation is misleading...they make it sound like it is a relatively simple method of easily attaching a datasource to the dropdown list. ...it would be GREAT to show an example of how this is accomplished.
Code: Select all
New custom field types (e.g. custom field type dropdown with an external data source) can be
added with small effort as the fields are created in a modular, pluggable way.
Kevin Buchanan
OTRS v3.1.7 and MySQL on Windows 2008 R2 64-bit
Using LDAP Single Signon for Agent and Customer
OTRS v3.1.7 and MySQL on Windows 2008 R2 64-bit
Using LDAP Single Signon for Agent and Customer
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Add new field types
The ability to populate a field from an outside database is not unique to OTRS in ability.
http://remysharp.com/2007/01/20/auto-po ... uery-ajax/
The concepts are pretty standard and work on any website. If you can do it outside OTRS, you can do it within OTRS.
OTRS doesn't know what source you have, what fields you need to query, etc. It's not a CMS or an Model-View-Controller framework (not exactly, but close). The link provided will assist in the basic setup, and any web search query can assist with how-to. The hardest part of all of this is to know what the field name is to be able to store within OTRS.
http://remysharp.com/2007/01/20/auto-po ... uery-ajax/
The concepts are pretty standard and work on any website. If you can do it outside OTRS, you can do it within OTRS.
OTRS doesn't know what source you have, what fields you need to query, etc. It's not a CMS or an Model-View-Controller framework (not exactly, but close). The link provided will assist in the basic setup, and any web search query can assist with how-to. The hardest part of all of this is to know what the field name is to be able to store within OTRS.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 25
- Joined: 07 Jul 2012, 23:06
- Znuny Version: 3.1.11
- Location: North Carolina, USA
Re: Add new field types
cool...I'll dig into the code and post my findings. Thanks a lot!!!
Kevin Buchanan
OTRS v3.1.7 and MySQL on Windows 2008 R2 64-bit
Using LDAP Single Signon for Agent and Customer
OTRS v3.1.7 and MySQL on Windows 2008 R2 64-bit
Using LDAP Single Signon for Agent and Customer