Custom Dashlet with Dynamic Field with multiple value

English! place to talk about OTRS development, programming and coding

Moderator: tto

Post Reply
User avatar
Sleepwalker
OTRS newbie
Posts: 15
Joined: 05 Apr 2017, 11:43
OTRS Version?: OTRS 4.0.x

Custom Dashlet with Dynamic Field with multiple value

Post by Sleepwalker » 24 Apr 2017, 08:57

I create a custom dashboard with a dynamic field with multiple value.

here are my codes. what I want to happen is to show all tickets (with space or wrong spelling) EXCEPT with problem location (Dynamic Field locprob) with NSLUZ, VISMIN, GMA.

when it compiled. it only hide the GMA,

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<otrs_config version="1.0" init="Application">
 <ConfigItem Name="DashboardBackend###730-OTHERS" Required="0" Valid="1">
  <Description Lang="en">Parameters  for the dashboard backend. ...</Description>
  <Description Lang="de">Parameter  für das Dashboard Backend. ... </Description>
  <Group>Ticket</Group>
  <SubGroup>Frontend::Agent::Dashboard</SubGroup>
  <Setting>
   <Hash>
    <Item Key="Module">Kernel::Output::HTML::DashboardTicketGeneric</Item>
    <Item Key="Title">Others</Item>
    <Item Key="Description">Others</Item>
    <Item Key="Attributes">StateIDs=1;StateIDs=4;StateIDs=6;StateIDs=7;StateIDs=8;StateIDs=9;StateIDs=10;StateIDs=11;StateIDs=12;DynamicField_locprob_Not=VISMIN;DynamicField_locprob_Not=NSLUZ;DynamicField_locprob_Not=GMA;</Item>
    <Item Key="Filter">All</Item>
    <Item Key="Time">Age</Item>
    <Item Key="Limit">10</Item>
    <Item Key="Permission">rw</Item>
    <Item Key="Block">ContentLarge</Item>
    <Item Key="Group"></Item>
    <Item Key="Default">1</Item>
    <Item Key="CacheTTLLocal">0.5</Item>
    <Item Key="DefaultColumns">
                    <Hash>
                        <Item Key="Age">1</Item>
                        <Item Key="Changed">1</Item>
                        <Item Key="CustomerID">1</Item>
                        <Item Key="CustomerName">1</Item>
                        <Item Key="CustomerUserID">1</Item>
                        <Item Key="EscalationResponseTime">1</Item>
                        <Item Key="EscalationSolutionTime">1</Item>
                        <Item Key="EscalationTime">1</Item>
                        <Item Key="EscalationUpdateTime">1</Item>
                        <Item Key="TicketNumber">2</Item>
                        <Item Key="Lock">1</Item>
                        <Item Key="Owner">1</Item>
                        <Item Key="PendingTime">1</Item>
                        <Item Key="Queue">2</Item>
                        <Item Key="Responsible">1</Item>
                        <Item Key="Priority">1</Item>
                        <Item Key="Service">1</Item>
                        <Item Key="State">2</Item>
                        <Item Key="SLA">1</Item>
                        <Item Key="Title">1</Item>
                        <Item Key="Type">1</Item>
                        <Item Key="DynamicField_locprob">2</Item>
                    </Hash>
                </Item>
   </Hash>
  </Setting>
 </ConfigItem>

</otrs_config>
also I add Not Operator in /otrs/Kernel/System/DynamicField/Driver/BaseText.pm

Code: Select all

my %Operators = (
        Equals            => '=',
        GreaterThan       => '>',
        GreaterThanEquals => '>=',
        SmallerThan       => '<',
        SmallerThanEquals => '<=',
        Not         => '!=',
    );

User avatar
Sleepwalker
OTRS newbie
Posts: 15
Joined: 05 Apr 2017, 11:43
OTRS Version?: OTRS 4.0.x

Re: Custom Dashlet with Dynamic Field with multiple value

Post by Sleepwalker » 25 Apr 2017, 06:35

help anyone?

Julian0o
OTRS expert
Posts: 55
Joined: 14 May 2014, 13:28
OTRS Version?: 5.0.7

Re: Custom Dashlet with Dynamic Field with multiple value

Post by Julian0o » 26 Jun 2017, 12:55

Did you get a solution for that? Having the same Problem.
OTRS 5.x & KIX4OTRS

Post Reply