Rotyn wrote:(a) Ich wuerde dieses Feld gerne als DropDown-Auswahl anbieten.
Ja, genau wie CustomerUser, können Sie mithilfe von Auswahlen.
Code: Select all
[ 'CustomerCompanyComment', 'Comment', 'comments', 1, 0, 'var', '', 0 ],
[ 'Projecktleiter', 'Projecktleiter', 'projectm', 1, 0, 'var', '', 0],
[ 'ValidID', 'Valid', 'valid_id', 0, 1, 'int', '', 0 ],
],
Selections => {
Projektleiter => {
'a' => 'Item A',
'b' => 'Item B',
},
},
Relevanten code:
Code: Select all
for my $Entry ( @{ $Self->{ConfigObject}->Get('CustomerCompany')->{Map} } ) {
if ( $Entry->[0] ) {
my $Block = 'Input';
# build selections or input fields
if ( $Self->{ConfigObject}->Get('CustomerCompany')->{Selections}->{ $Entry->[0] } ) {
my $OptionRequired = '';
if ( $Entry->[4] ) {
$OptionRequired = 'Validate_Required';
}
(b) Nein, nicht so wie sie denken, Sie könnten aber sie versuchen, einen Blick auf
diesen Code, um das Feld zu füllen.
Ich spreche nicht Deutsch, einfach den Code.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please
edit your signature to include your
OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask