OTRS editing

English! place to talk about development, programming and coding
Post Reply
adiemme
Znuny newbie
Posts: 1
Joined: 04 Oct 2015, 21:09
Znuny Version: 4.0.12

OTRS editing

Post by adiemme »

Hi Everyone,

I need some indication since i'm going to edit some otrs's code.

I'm going to edit the Ticket Page and adding some field, which will be read from ANOTHER database.

How can i do that?

I started putting my hands in AgentTicketActionCommon.pm and .tt But i'm actually lost. Who can help me?

Thank you
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: OTRS editing

Post by RStraub »

Will that other database be used from multiple modules? Do you plan to use it only once?

I would suggest that you write a custom module (or package) that handles the connection (Perl DBI) and use / include that module in AgentTicketActionCommon.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
tto
Znuny wizard
Posts: 315
Joined: 09 Jan 2007, 15:24
Znuny Version: OTRS 5.0.x
Real Name: Torsten
Company: c.a.p.e. IT GmbH
Location: Chemnitz
Contact:

Re: OTRS editing

Post by tto »

adiemme wrote:Hi Everyone,

I need some indication since i'm going to edit some otrs's code.

I'm going to edit the Ticket Page and adding some field, which will be read from ANOTHER database.

How can i do that?

I started putting my hands in AgentTicketActionCommon.pm and .tt But i'm actually lost. Who can help me?

Thank you
you could give DynamicFieldRemoteDB a try (http://opar.perl-services.de/dist/Dynam ... teDB-1.3.0). It contains a dynamic field type which gets it values from some DB-table/-view which from seom remote data base (or OTRS-DB itself if you need to). Just install the package, configure your dynamic field as you know it from standard-OTRS-functionality and you're done - no need for development.

regards, T.
--
KIX 17.x (fork of OTRS)
Professional KIX-, or OTRS-integration, development and consulting by c.a.p.e. IT - http://www.cape-it.de
For questions and hints regarding KIX(4OTRS) please go to https://forum.kixdesk.com/
Bei Fragen und Hinweisen zu KIX(4OTRS) bitte an https://forum.kixdesk.com/ wenden.
Post Reply