Predefine values for Config Item class

Moderator: crythias

Locked
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Predefine values for Config Item class

Post by EXG133 »

Hello,

I've done a fresh install of OTRS and I'm currently exploring the ITSM component. The default config looks great on its own but there is something I can't find: define a text field that has a predefined content. I should note I'm not familiar at all with Perl.

Example: We buy plenty of HP 8100 SFF with a default config. I would like to use the CI Computer to have the CPU value default to "i5 650". A dropdown list is too constrictive, sometimes we order for a specific goal (dev machine -> 4c/8t CPU or a 4c/4t CPU for a power user). Does such a parameter exist? I've tried the documentation and good old Google but found nothing.

{
Key => 'CPU',
Name => 'CPU',
Input => {
Type => 'Text',
Size => 50,
MaxLength => 100,
Value => 'i5 650'
},
CountMax => 16,
},
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: Predefine values for Config Item class

Post by EXG133 »

I've been looking some more and I can't find this. I can copy/paste from the template just fine (it's very readable) but I can't find a description of other possible parameters (if there are any ofcourse).
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Predefine values for Config Item class

Post by crythias »

Why not change the .dtl form's input to have value="x"?
This isn't perl. It's html form.
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
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: Predefine values for Config Item class

Post by EXG133 »

OK thanks for the tip, I've looked at these dtm files. If I take for example AdminSysConfigEdit.dtl I can follow the HTML logic but the AgentITSMConfigItemEdit.dtl is more complex. I've asked one of our webdevelopers to see if they can figure it out :-)
Locked