Hi Maria,

> I need to add two sets of dates for the user to select and initial date
> and a finishing date. [...]
> 
>     push(
>         @Params,
>         {   Frontend   => 'Month',
>             Name       => 'Month',
>             Multiple   => 0,
>             Size       => 0,
>             SelectedID => $M,
>             Data       => { %Month, },
>         },
>     );
> 
> That worked when the stat was for a particular month, but now they want
> to choose the dates.

AFAIK this is not possible for static stats (@all: please correct me if
I'm wrong, at least it wasn't) in standard OTRS.

We put this modification in OTRS::CiCS. If you installed OTRS::CiCS, you
could use something like...

    push(
        @Params,
        {
            Frontend => 'Start Date',
            Name     => 'Start',
            Format   => 'DateInputFormat',
            DiffTime => $StartDiffTime,
        },
    );

...in sub Param in Kernel::System::Stats::Static::YourStatModule. Then
you can access these params in sub Run with:

$Param{StartYear}, $Param{StartMonth}, $Param{StartDay}



regards, Torsten Thau

-- 
Torsten Thau, Dipl. Inform.
c.a.p.e. IT Labs GbR - Annaberger Str. 240 - D-09125 Chemnitz
phone: +49 371 5347 623
cell: +49 176 66 680 680
personal pgp-key: 0x93E0A174
fax: +49 371 5347 625
http://www.cape-it.de

Attachment: signature.asc
Description: OpenPGP digital signature

---------------------------------------------------------------------
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/

Reply via email to