Syntaxfehler? [gelöst]

Hilfe zu Znuny Problemen aller Art
Locked
KHO
Znuny newbie
Posts: 18
Joined: 27 Dec 2012, 10:47
Znuny Version: 3.0.7

Syntaxfehler? [gelöst]

Post by KHO »

Hallo Forum,

seh ich den Fehler nicht oder liegt es gar nicht an der Syntax?

Code: Select all

[ 
    { 
        Key => 'Name', 
        Name => 'Name', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 8, 
            MaxLength => 8, 
        }, 
    }, 
	{ 
        Key => 'Name_alt', 
        Name => 'Name_alt', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 8, 
            MaxLength => 8, 
        }, 
    }, 
    { 
        Key => 'Gebäude', 
        Name => 'Gebäude', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    }, 
    { 
        Key => 'Ebene', 
        Name => 'Ebene', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },    
	{ 
        Key => 'Raum', 
        Name => 'Raum', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },    { 
        Key => 'Status', 
        Name => 'Status', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },    
	{ 
        Key => 'Typ', 
        Name => 'Typ', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },    
	{ 
        Key => 'Model', 
        Name => 'Model', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },    
	{ 
        Key => 'TCO_Monitor', 
        Name => 'TCO_Monitor', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },    
	{ 
        Key => 'Zoll', 
        Name => 'Zoll', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    }, 
    { 
        Key => 'Grafikkarte', 
        Name => 'Grafikkarte', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    }
	{ 
        Key => 'Auflösung', 
        Name => 'Auflösung', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },    
	{ 
        Key => 'Prozessor', 
        Name => 'Prozessor', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },    
	{ 
        Key => 'RAM', 
        Name => 'RAM', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    }, 
    { 
        Key => 'RAM_Typ', 
        Name => 'RAM_Typ', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },    
	{ 
        Key => 'HDD_Typ', 
        Name => 'HDD_TYP', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },     
	{ 
        Key => 'CD', 
        Name => 'CD', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    }, 
		{ 
        Key => 'Brenner', 
        Name => 'Brenner', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },
		{ 
        Key => 'Betriebssystem', 
        Name => 'Betriebssystem', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },
		{ 
        Key => 'Service_Pack', 
        Name => 'Service_Pack', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },
		{ 
        Key => 'Lizenztyp', 
        Name => 'Lizenztyp', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },
		{ 
        Key => 'Lizenz_Nr', 
        Name => 'Lizenz_Nr', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },
		{ 
        Key => 'Seriennummer', 
        Name => 'Seriennummer', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },
		{ 
        Key => 'Fachrichtung', 
        Name => 'Fachrichtung', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },
		{ 
        Key => 'Zuordnung', 
        Name => 'Zuordnung', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },
		{ 
        Key => 'Sonstiges', 
        Name => 'Sonstiges', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },
		{ 
        Key => 'Schrank', 
        Name => 'Schrank', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },
		{ 
        Key => 'Patchfeld', 
        Name => 'Patchfeld', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },
		{ 
        Key => 'IP_Adresse', 
        Name => 'IP_Adresse', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },
		{ 
        Key => 'PC_Name', 
        Name => 'PC_Name', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },
		{ 
        Key => 'Netzerkkarte', 
        Name => 'Netzwerkkarte', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },
		{ 
        Key => 'MAC_Adresse', 
        Name => 'MAC_Adresse', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },
    { 
        Key => 'Lieferrant', 
        Name => 'Lieferrant', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },
    { 
        Key => 'Lieferschein_Nr', 
        Name => 'Lieferschein_Nr', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    },
   { 
        Key => 'Lieferdatum', 
        Name => 'Lieferdatum', 
        Searchable => 1, 
        Input => { 
            Type => 'Date', 
        }, 
    }, 
	{ 
        Key => 'Telefon', 
        Name => 'Telefon', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    }, 
   { 
        Key => 'Garantie bis', 
        Name => 'Garantie bis', 
        Searchable => 1, 
        Input => { 
            Type => 'Date', 
        }, 
    }, 
    
{ 
        Key => 'Anlagen Nr.', 
        Name => 'Anlagen Nr.', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    }, 
{ 
        Key => 'Verschrottet', 
        Name => 'Verschrottet', 
        Searchable => 1, 
        Input => { 
            Type => 'Date', 
        },
    }, 
{ 
        Key => 'Anzahl', 
        Name => 'Anzahl', 
        Searchable => 1, 
        Input => { 
            Type => 'Text', 
            Size => 50, 
            MaxLength => 50, 
        }, 
    }, 
    { 
        Key => 'Description', 
        Name => 'Description', 
        Searchable => 1, 
        Input => { 
            Type => 'TextArea', 
        }, 
    }, 
]; 
Last edited by KHO on 07 Jan 2013, 15:16, edited 1 time in total.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Syntaxfehler?

Post by reneeb »

Der Fehler liegt hier:

Code: Select all

            Key => 'Grafikkarte',
            Name => 'Grafikkarte',
            Searchable => 1,
            Input => {
                Type => 'Text',
                Size => 50,
                MaxLength => 50,
            },
        }
       {
            Key => 'Auflösung',
            Name => 'Auflösung',
Das muss

Code: Select all

            Key => 'Grafikkarte',
            Name => 'Grafikkarte',
            Searchable => 1,
            Input => {
                Type => 'Text',
                Size => 50,
                MaxLength => 50,
            },
        }, # <- hier hat ein Komma gefehlt
       {
            Key => 'Auflösung',
            Name => 'Auflösung',
heißen
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
KHO
Znuny newbie
Posts: 18
Joined: 27 Dec 2012, 10:47
Znuny Version: 3.0.7

Re: Syntaxfehler?

Post by KHO »

Wunderbar, Danke! :)
Locked