[SOLVED] Add dynamic field to dashboard

Moderator: crythias

Locked
zip
Znuny advanced
Posts: 103
Joined: 02 Jan 2014, 12:32
Znuny Version: 5.0.9

[SOLVED] Add dynamic field to dashboard

Post by zip »

Hi

when i wanna display a dynamic field to the agent dashboard, it is empty:
dashboard.jpg
agents can set this date if they want in the AgentTicketZoom at FreeFields, so sometimes it is empty and sometimes not. i made some tickets with the date and its everytime empty in the dashboard view.

first of all i made the dynamic field:
dynamic_field.jpg
then i added it in the sysconfig Frontend::Agent::Dashboard:
ticketnew.jpg
i red this post viewtopic.php?f=53&t=18504 and updated the Kernel/Output/HTML/DashboardTicketGeneric.pm

atleast i wanted to change the Kernel/Output/HTML/Standard/AgentDashboardTicketGeneric.dtl like they said in this post viewtopic.php?f=62&t=21982&p=86929&hili ... ard#p86929 but when i try my hole dashboard is getting weird.
i uncommented the block from line 483-489

Code: Select all

#            <td class="W10pc">
#                <a href="$Env{"Baselink"}Action=AgentTicketZoom;TicketID=$Data{"TicketID"}" title="$QData{"Title"}" class="AsBlock MasterActionLink">$Data{"TicketNumber"}</a>
#            </td>
#            <td class="W50pc">
#                <div title="$QData{"Title"}">$QData{"Title","70"}</div>
#            </td>
#            <td>$QData{"Time"}</td>
and changed it to

Code: Select all

           <td class="W10pc">
               <a href="$Env{"Baselink"}Action=AgentTicketZoom;TicketID=$Data{"TicketID"}" title="$QData{"Title"}" class="AsBlock MasterActionLink">$Data{"TicketNumber"}</a>
           </td>
           <td class="W50pc">
               <div title="$QData{"Title"}">$QData{"Title","70"}</div>
           </td>
           <td>$QData{"Priority"}</td>
			<td>$QData{"TicketID"}</td>
			<td>$QData{"Service"}</td>
			<td>$QData{"Queues"}</td>
			<td>$QData{"Title"}</td>
			<td>$QData{"CustomerUserID"}</td>
			<td>$QData{"Owner"}</td>
			<td>$QData{"DynamicField_ProjectedCompletionTime"}</td>
			<td>$QData{"Created"}</td>
			<td>$QData{"State"}</td>
			<td>$QData{"Time"}</td>
i think the error is somwhere in my last step but i have no clue.

any help would be appreciated!

zip
You do not have the required permissions to view the files attached to this post.
Last edited by zip on 10 Apr 2014, 12:34, edited 2 times in total.
OTRS 5.0.9 - CentOS 7 - MariaDB 5.5
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Add dynamic field to dashboard

Post by RStraub »

Try to add "DynamicField_" in front of your dynamic field name, so that in your Sysconfig it reads:

Frontend::Agent::Dashboard:

DynamicField_ProjectedCompletionTime
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
zip
Znuny advanced
Posts: 103
Joined: 02 Jan 2014, 12:32
Znuny Version: 5.0.9

Re: Add dynamic field to dashboard

Post by zip »

where?
OTRS 5.0.9 - CentOS 7 - MariaDB 5.5
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Add dynamic field to dashboard

Post by RStraub »

Sorry, edited my post.

Edit it in the sysconfig, from the last screenshot where you marked your dynamic field in red
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
zip
Znuny advanced
Posts: 103
Joined: 02 Jan 2014, 12:32
Znuny Version: 5.0.9

Re: Add dynamic field to dashboard

Post by zip »

still empty!

do i have to change the Kernel/Output/HTML/Standard/AgentDashboardTicketGeneric.dtl?

because when i do like i posted above it is showing this:
dashboard_weird.jpg
You do not have the required permissions to view the files attached to this post.
OTRS 5.0.9 - CentOS 7 - MariaDB 5.5
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Add dynamic field to dashboard

Post by jojo »

no need to change the templates.

just add it the field to the sysconfig. You have to Put DynamicField_ in front of the name of the field
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
zip
Znuny advanced
Posts: 103
Joined: 02 Jan 2014, 12:32
Znuny Version: 5.0.9

Re: Add dynamic field to dashboard

Post by zip »

it still dont work!

but when i create a new dynamic field, do the changes in sysconfig and add it to the dashboard it works...

so i deleted the old one and thats it!

thanks a lot for your help!!
OTRS 5.0.9 - CentOS 7 - MariaDB 5.5
rodolphoramos
Znuny newbie
Posts: 8
Joined: 19 Aug 2013, 14:21
Znuny Version: 3.3.5
Real Name: Rodolpho Ramos
Company: Ministerio Publico do Rio Grande do Norte

Re: [SOLVED] Add dynamic field to dashboard

Post by rodolphoramos »

It works for me to, and i do the same thing, add the prefix "DynamicField_" and create a new DynamicField and everything work fine.

Thanks a lot!!!! :D
OTRS 3.3.7
Windows Server 2008 R2
MySQL
IIS 7.5
Locked