[SOLVED] Fields size in ticketinfo panel on zoom screen

Moderator: crythias

Post Reply
leo5nidas
OTRS newbie
Posts: 40
Joined: 16 Apr 2012, 02:00
OTRS Version?: 3.2.2
Real Name: Fernando Naranjo
Company: Universidad de Zaragoza

[SOLVED] Fields size in ticketinfo panel on zoom screen

Post by leo5nidas » 21 Jun 2013, 14:31

Hello

In ticket zoom screen, OTRS cuts the values of the fields in the ticket info panel, such as "Queue". Instead of showing the whole string like "Reclamation-Queue-Level3", it only shows something like "Reclamation-Queue-Lev[...]".

Is there any way of increasing the default size of the values showed?

Thank you in advance.

Regards
Last edited by leo5nidas on 02 Jul 2013, 12:24, edited 5 times in total.
OTRS 3.2.2 (production/testing) on Debian 5.04 Lenny with MySQL database

reneeb
OTRS guru
Posts: 4704
Joined: 13 Mar 2011, 09:54
OTRS Version?: 3.3.x
Company: Perl-Services.de
Contact:

Re: Fields size in ticketinfo panel on zoom screen

Post by reneeb » 21 Jun 2013, 15:49

You can change the template...
Perl / OTRS development: http://perl-services.de
Free OTRS add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de

leo5nidas
OTRS newbie
Posts: 40
Joined: 16 Apr 2012, 02:00
OTRS Version?: 3.2.2
Real Name: Fernando Naranjo
Company: Universidad de Zaragoza

Re: Fields size in ticketinfo panel on zoom screen

Post by leo5nidas » 24 Jun 2013, 09:04

reneeb wrote:You can change the template...
Ok, thank you. So I suppose the size of the field could be set up in the AgentTicketZoom.dtl file. Right?
OTRS 3.2.2 (production/testing) on Debian 5.04 Lenny with MySQL database

reneeb
OTRS guru
Posts: 4704
Joined: 13 Mar 2011, 09:54
OTRS Version?: 3.3.x
Company: Perl-Services.de
Contact:

Re: Fields size in ticketinfo panel on zoom screen

Post by reneeb » 24 Jun 2013, 18:09

Right. You'll find something like "$QData{"Queue","30"}". The "30" means "show 30 chars and when it's longer, skip the rest and show '[...]'". You have to increase this value or remove it (then you should have $QData{"Queue"})
Perl / OTRS development: http://perl-services.de
Free OTRS add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de

leo5nidas
OTRS newbie
Posts: 40
Joined: 16 Apr 2012, 02:00
OTRS Version?: 3.2.2
Real Name: Fernando Naranjo
Company: Universidad de Zaragoza

Re: Fields size in ticketinfo panel on zoom screen

Post by leo5nidas » 25 Jun 2013, 01:55

Ok, understood. Thank you very much for your great explanation. That was very useful.

Regards
OTRS 3.2.2 (production/testing) on Debian 5.04 Lenny with MySQL database

leo5nidas
OTRS newbie
Posts: 40
Joined: 16 Apr 2012, 02:00
OTRS Version?: 3.2.2
Real Name: Fernando Naranjo
Company: Universidad de Zaragoza

Re: Fields size in ticketinfo panel on zoom screen

Post by leo5nidas » 27 Jun 2013, 12:08

reneeb wrote:Right. You'll find something like "$QData{"Queue","30"}". The "30" means "show 30 chars and when it's longer, skip the rest and show '[...]'". You have to increase this value or remove it (then you should have $QData{"Queue"})
Reneeb, I have a last question for you: The solution you have tell me works with the default fields. However, when I try to do the same with the dynamic fields I replace $Data{"Value"} with $QData{"Value","45"} in the code, but the system ignores the size 45 and keeps limiting the size to the 18 characters by default.

Is there any way of increase the size of the dynamic field values in the AgentTicketZoom.dtl?

Thank you in advance again.

Best regards
OTRS 3.2.2 (production/testing) on Debian 5.04 Lenny with MySQL database

reneeb
OTRS guru
Posts: 4704
Joined: 13 Mar 2011, 09:54
OTRS Version?: 3.3.x
Company: Perl-Services.de
Contact:

Re: Fields size in ticketinfo panel on zoom screen II

Post by reneeb » 27 Jun 2013, 16:33

No, you have to change Kernel/Modules/AgentTicketZoom.pm . Search for "ValueMaxChars"....
Perl / OTRS development: http://perl-services.de
Free OTRS add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de

leo5nidas
OTRS newbie
Posts: 40
Joined: 16 Apr 2012, 02:00
OTRS Version?: 3.2.2
Real Name: Fernando Naranjo
Company: Universidad de Zaragoza

Re: Fields size in ticketinfo panel on zoom screen II

Post by leo5nidas » 02 Jul 2013, 12:23

Thank you very much, reneeb. That was very helpful!
OTRS 3.2.2 (production/testing) on Debian 5.04 Lenny with MySQL database

Post Reply