What are otrs objects supported in Dynamic field and static?

Moderator: crythias

Locked
OTRSRDNewbie
Znuny newbie
Posts: 69
Joined: 29 Apr 2016, 10:23
Znuny Version: 3.2, 5
Real Name: Dennis Cua
Company: N/A

What are otrs objects supported in Dynamic field and static?

Post by OTRSRDNewbie »

Found this on static module of otrs. When is GetObjectBehaviours used? How do I get the available Behaviors or what are a lists of behaviors available besides ProvidesDashboardWidget? What otrs objects are passed or supported in Dynamic field stats and static stats?

I have tried creating my static tried copying FAQAccess and StateAction, rename the use object to the filename I created. I just copied then change the use module. I'm guessing I need further setup or register the static stats but it is immediately found when I created new stats, I'm guessing the objects should have been passed from somewhere? I never got a parameter in stats after choosing them? Are there any more detailed information here or documentations on stats?

I mean something like the one below. The first image is from StateAction, the second is one I copied the pattern from StateAction

Image

Image

Code: Select all

sub GetObjectBehaviours {
    my ( $Self, %Param ) = @_;

    my %Behaviours = (
        ProvidesDashboardWidget => 1,
    );

    return %Behaviours;
}
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: What are otrs objects supported in Dynamic field and static?

Post by reneeb »

You need to copy the Param sub...
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
Locked