CI in CustomerDashboard

Moderator: crythias

Locked
wgadmin
Znuny newbie
Posts: 7
Joined: 24 Feb 2015, 17:13
Znuny Version: 4.0.9

CI in CustomerDashboard

Post by wgadmin »

Hello,

I already tried to get some answers in the German area, but no one responded so far (the link to my original post: viewtopic.php?f=35&t=31485). Maybe someone here can give me a hint.

I'm using OTRS 4.0.8 with OTRS::ITSM 4.0.10 and KIX4OTRS 7.0.2. In the CustomerDashboard I see all CIs, which are linked to the Customer. Since it's possible to change the attributes, that are shown, I tried to add the ip address. Like the documentation suggests, I opened the SysConfig and added the value ("CustomerDashboardConfigItemLink::ShownAttributes") at the corrensponding path ("KIX4OTRS-ITSM -> Frontend::CustomerInformationCenter"). My configitem definition has the ip address not on the first level, so the key for ip address in my case is NIC::1::IPAddress::1. However, If I add this key, the information shown in the CustomerDashboard belongs to NIC::1. If I try to display something else, like the operation system, it works just fine, as long as the information is located on the first level.

Here a short part from one of my configitem definitions:

Code: Select all

 {
        Key => 'NIC',
        Name => 'Network Adapter',
        Input => {
            Type => 'Text',
            Size => 50,
            MaxLength => 100,
            Required => 1,
        },
        CountMin => 0,
        CountMax => 10,
        CountDefault => 1,
        Sub => [
            {
                Key => 'IPoverDHCP',
                Name => 'IP over DHCP',
                Input => {
                    Type => 'GeneralCatalog',
                    Class => 'ITSM::ConfigItem::YesNo',
                    Translation => 1,
                    Required => 1,
                },
            },
            {
                Key => 'IPAddress',
                Name => 'IP Address',
                Searchable => 1,
                Input => {
                    Type => 'Text',
                    Size => 40,
                    MaxLength => 40,
                    Required => 1,
                },
                CountMin => 0,
                CountMax => 20,
                CountDefault => 0,
            },
            {
                Key => 'macAddress',
                Name => 'MAC',
                Input => {
                    Type => 'Text',
                    Size => 17,
                },  
            }
        ],
    }, 
If I use the export function, I also use the key NIC::1::IPAddress::1 with no problems so far. I'm wondering now, if it's even possible to get the ip address showing in the CustomerDashboard without changing my configitem definition.

Thank you for the help!
Locked