Description | manuals and libraries |
Kernel::Output::HTML::Layout::LinkObject - all LinkObject-related HTML functions
All LinkObject-related HTML functions
create a output table
my $String = $LayoutObject->LinkObjectTableCreate(
LinkListWithData => $LinkListWithDataRef,
ViewMode => 'Simple', # (Simple|SimpleRaw|Complex|ComplexAdd|ComplexDelete|ComplexRaw)
);
create a complex output table
my $String = $LayoutObject->LinkObjectTableCreateComplex(
LinkListWithData => $LinkListRef,
ViewMode => 'Complex', # (Complex|ComplexAdd|ComplexDelete|ComplexRaw)
);
create a simple output table
my $String = $LayoutObject->LinkObjectTableCreateSimple(
LinkListWithData => $LinkListWithDataRef,
ViewMode => 'SimpleRaw', # (optional) (Simple|SimpleRaw)
);
return a selection list of link-able objects
my $String = $LayoutObject->LinkObjectSelectableObjectList(
Object => 'Ticket',
Selected => $Identifier, # (optional)
);
return a list of search options
my @SearchOptionList = $LayoutObject->LinkObjectSearchOptionList(
Object => 'Ticket',
SubObject => 'Bla', # (optional)
);
get items needed for AllocationList initialization.
my %Preferences = $LayoutObject->ComplexTablePreferencesGet(
Config => {
'DefaultColumns' => {
'Age' => 1,
'EscalationTime' => 1,
...
},
Priority => {
'Age' => 120,
'TicketNumber' => 100,
...
}
}.
PrefKey => "LinkObject::ComplexTable-Ticket",
);
returns: %Preferences = { 'ColumnsAvailable' => '["Age","Changed","CustomerID","CustomerName","CustomerUserID",...]', 'Block' => 'AllocationList', 'Translation' => 1, 'Name' => 'ContentLarge', 'Columns' => '{"Columns":{"SLA":0,"Type":0,"Owner":0,"Service":0,"CustomerUserID":0,...}}', 'Desc' => 'Shown Columns', 'ColumnsEnabled' => '["State","TicketNumber","Title","Created","Queue"]', };
set user preferences.
my $Success = $LayoutObject->ComplexTablePreferencesSet(
DestinationObject => 'Ticket',
);
This software is part of the OTRS project (https://otrs.org/).
This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (GPL). If you did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.