Re: Adding date selections in Static Stat
Torsten Thau <[email protected]>
| Newsgroups | gmane.comp.otrs.devel |
|---|---|
| Organization | c.a.p.e. IT Group |
| Message-ID | <[email protected]> |
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
---------------------------------------------------------------------
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/
signature.asc
(application/pgp-signature, 262 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxOgkcACgkQvXo8m5PgoXTxnQCfW0MnLWAlduFy5ymoC3TPT+fA n9sAnRuuMo/IYnn4miAKTrvzEgD2chmM =oil7 -----END PGP SIGNATURE-----