How to configure dynamic fields in Customize Module in OTRS?

English! place to talk about development, programming and coding
Post Reply
williamrobert1983
Znuny newbie
Posts: 94
Joined: 24 Oct 2013, 11:24
Znuny Version: 3.1.1
Real Name: William
Company: Xchanging

How to configure dynamic fields in Customize Module in OTRS?

Post by williamrobert1983 »

Hi,

any one please explain how to show dynamic fields in my own module ?

I created one module called AgentTicketChangeRequest. Also, i created some dynamic fields example(textbox, Checkbox and Mulitiselect).

How to configure those fields in AgentTicketChangeRequest module using Sysconfig...

Ex:

We can set configurations for AgentTicketPhone, AgentTicketZoom, AgentTicketEmail.

I just want configure in my own module ( AgentTicketChangeRequest ).

Please advice me...

Thanks lot! :)

William
mabu
Znuny newbie
Posts: 3
Joined: 05 Dec 2013, 12:18
Znuny Version: Version 3.3

Re: How to configure dynamic fields in Customize Module in O

Post by mabu »

Hello William,

if you use dynamic fields in a custom module, there is no pre-defined SysConfig option.
To display the edit-field or value of an dynamic field in you own module / dtl, you have to use
the render-methods of the dynamic field backend object:

Code: Select all

$BackendObject->DisplayValueRender
$BackendObject->EditFieldRender
$BackendObject->EditFieldValueGet
$BackendObject->EditFieldValueValidate
Just have a look in the Module <OTRS_HOME>/Kernel/System/DynamicField/Backend.pm, there are all related methods available and properly described.

Have a nice day,

Marco
williamrobert1983
Znuny newbie
Posts: 94
Joined: 24 Oct 2013, 11:24
Znuny Version: 3.1.1
Real Name: William
Company: Xchanging

Re: How to configure dynamic fields in Customize Module in O

Post by williamrobert1983 »

Hi Mabu,

Thanks for your reply. i will try to use it.


William
Post Reply