[HELP] Parent Child/Dependent Dynamic Field

Moderator: crythias

Locked
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

[HELP] Parent Child/Dependent Dynamic Field

Post by skullz »

OTRS 3.2.7
DB: myaql

Hi All,

1. I have two dropdown dynamics field.

Image Image


2. In a New phone ticket, when i select dynamic field, i want to make it like:

Select dynamic field "GeneralClass"="Class 1", automatically the dynamic field "SubClass"="1",
Select dynamic field "GeneralClass"="Class 2", automatically the dynamic field "SubClass"="2"

Image


3. So far, these below is my setup. but nothing work..

Config.pm

Code: Select all

$Self->{TicketAcl}->{'ACL-001'} = {
        # match properties
        Properties => {
        DynamicField => {
        DynamicField_GeneralClass => ['Class 1'],
                        }
                      },
        Possible => {
        Ticket => {
        DynamicField_SubClass => ['1'],
                  },
                    },
                };
 
 
$Self->{TicketAcl}->{'ACL-002'} = {
        # match properties
        Properties => {
        DynamicField => {
        DynamicField_GeneralClass => ['Class 2'],
                        },
                      },
        Possible => {
        Ticket => {
        DynamicField_SubClass => ['2'],
                  },
                    },
                };
AgentTicketPhone.dtl

Code: Select all

<!-- dtl:block:DynamicField_GeneralClass -->
<div class="Row Row_DynamicField_$QData{"Name"}">
$Data{"Label"}
<div class="Field">
$Data{"Field"}
<!--dtl:js_on_document_complete-->
<script type="text/javascript">//<![CDATA[
$('#GeneralClass').bind('change', function (Event) {
Core.AJAX.FormUpdate($('#NewPhoneTicket'), 'AJAXUpdate', 'GeneralClass', [ 'TypeID', 'Dest','NewUserID', 'NewResponsibleID', 'NextStateID', 'PriorityID', 'ServiceID', 'SLAID', 'SignKeyID', 'CryptKeyID', $Data{"DynamicFieldNamesStrg"}, 'To', 'Cc', 'Bcc']);
});
//]]></script>
<!--dtl:js_on_document_complete-->
</div>
<div class="Clear"></div>
</div>
<!-- dtl:block:DynamicField_GeneralClass -->
 
 
<!-- dtl:block:DynamicField_SubClass -->
<div class="Row Row_DynamicField_$QData{"Name"}">
$Data{"Label"}
<div class="Field">
$Data{"Field"}
<!--dtl:js_on_document_complete-->
<script type="text/javascript">//<![CDATA[
$('#SubClass').bind('change', function (Event) {
Core.AJAX.FormUpdate($('#NewPhoneTicket'), 'AJAXUpdate', 'SubClass', [ 'TypeID', 'Dest', 'NewUserID', 'NewResponsibleID','NextStateID', 'PriorityID', 'ServiceID', 'SLAID', 'SignKeyID', 'CryptKeyID', $Data{"DynamicFieldNamesStrg"}, 'To', 'Cc', 'Bcc']);
});
//]]></script>
<!--dtl:js_on_document_complete-->
</div>
<div class="Clear"></div>
</div>
<!-- dtl:block:DynamicField_SubClass -->
4. Im using guide from these 2 topic
viewtopic.php?f=61&t=14676
viewtopic.php?f=61&t=16688

So far, nothing happen. Please assist. Thanks.
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
tto
Znuny wizard
Posts: 315
Joined: 09 Jan 2007, 15:24
Znuny Version: OTRS 5.0.x
Real Name: Torsten
Company: c.a.p.e. IT GmbH
Location: Chemnitz
Contact:

Re: [HELP] Parent Child/Dependent Dynamic Field

Post by tto »

skullz wrote:[...]
4. Im using guide from these 2 topic
viewtopic.php?f=61&t=14676
viewtopic.php?f=61&t=16688

So far, nothing happen. Please assist. Thanks.
...don't know about this solution. But this feature is included in the free available KIX4OTRS extension, You may download it here:

http://www.cape-it.de/all-versions.html
--
KIX 17.x (fork of OTRS)
Professional KIX-, or OTRS-integration, development and consulting by c.a.p.e. IT - http://www.cape-it.de
For questions and hints regarding KIX(4OTRS) please go to https://forum.kixdesk.com/
Bei Fragen und Hinweisen zu KIX(4OTRS) bitte an https://forum.kixdesk.com/ wenden.
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: [HELP] Parent Child/Dependent Dynamic Field

Post by skullz »

tto wrote:
skullz wrote:[...]
4. Im using guide from these 2 topic
viewtopic.php?f=61&t=14676
viewtopic.php?f=61&t=16688

So far, nothing happen. Please assist. Thanks.
...don't know about this solution. But this feature is included in the free available KIX4OTRS extension, You may download it here:

http://www.cape-it.de/all-versions.html
Thanks for the suggestions..
but the addon is not support 3.2.x framework yet.. :)
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
tto
Znuny wizard
Posts: 315
Joined: 09 Jan 2007, 15:24
Znuny Version: OTRS 5.0.x
Real Name: Torsten
Company: c.a.p.e. IT GmbH
Location: Chemnitz
Contact:

Re: [HELP] Parent Child/Dependent Dynamic Field

Post by tto »

skullz wrote: Thanks for the suggestions..
but the addon is not support 3.2.x framework yet.. :)
...will be in 2-4 weeks :-)
--
KIX 17.x (fork of OTRS)
Professional KIX-, or OTRS-integration, development and consulting by c.a.p.e. IT - http://www.cape-it.de
For questions and hints regarding KIX(4OTRS) please go to https://forum.kixdesk.com/
Bei Fragen und Hinweisen zu KIX(4OTRS) bitte an https://forum.kixdesk.com/ wenden.
Locked