ITSMCIAttributesAddon

Moderator: crythias

Post Reply
icm3012
Znuny newbie
Posts: 50
Joined: 19 Oct 2010, 13:56
Znuny Version: 3.3.8
Location: UK

ITSMCIAttributesAddon

Post by icm3012 »

Hi All

I have seen this on the OPAR site http://opar.perl-services.de/bin/index. ... butesAddon.

It looks like it offers the following option
This package installs a new CMDB attribute type - TextInt - to allow entering and validating integers in a text field.
I am not sure how to configure or use it .

Has anyone downloaded and used this package and if so - could you provide more details as 'how to' ?



thanks

Ian
kind regards

Ian

OTRS v3.0.11 ITSM 3.0.5 running on ubuntu 11.10 64bit
with iPhone app
renee
Znuny expert
Posts: 241
Joined: 06 Feb 2009, 11:15
Znuny Version: 3.0.x
Company: Perl-Services.de
Contact:

Re: ITSMCIAttributesAddon

Post by renee »

You don't have to configure the package. Your config item definitions look something like

Code: Select all

$TimeLong{"[
    {
        Key => 'ObjectID',
        Name => 'ObjectID',
        Searchable => 1,
        Input => {
            Type => 'Text',
            Size => 50,
            MaxLength => 50,
        },
    }, 
    # ... many many more fields
After installation you can use

Code: Select all

$TimeLong{"[
    {
        Key => 'ObjectID',
        Name => 'ObjectID',
        Searchable => 1,
        Input => {
            Type => 'TextInt',
            Size => 50,
            ValueMin => 50,
            ValueMax => 100,
        },
    }, 
The result is a textfield that accepts only integers.

I haven't tested it yet, this is what I can see after a short analysis of the package. I hope this helps...
Need a Perl/OTRS developer? You can contact me at info@perl-services.de
Post Reply