Dynamic field - how to insert more data to already existing data

Moderator: crythias

Post Reply
Dethas
Znuny newbie
Posts: 25
Joined: 18 Jan 2017, 12:27
Znuny Version: 6.0.8
Real Name: Patric

Dynamic field - how to insert more data to already existing data

Post by Dethas »

I have a problem, because when you update dynamic field you replace old data with new one.
But i want to add more data to existing data:
I have dynamic field with 'aaa' value and i want to add 'bbb' so i get dynamic field with value 'aaabbb' instead of just 'bbb'.
Is there a way to achieve that?

Regards,
Patric
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Dynamic field - how to insert more data to already existing data

Post by reneeb »

If it's in the forms, the old value should be shown. The Agents can add the new text to the old value.

If you do it in code that you've written yourself, you can retrieve the old value first, concat the new value and store that new value.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Dethas
Znuny newbie
Posts: 25
Joined: 18 Jan 2017, 12:27
Znuny Version: 6.0.8
Real Name: Patric

Re: Dynamic field - how to insert more data to already existing data

Post by Dethas »

Is there a way to do it through process transition?
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Dynamic field - how to insert more data to already existing data

Post by reneeb »

No, you would need to write your own transition action module.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Dethas
Znuny newbie
Posts: 25
Joined: 18 Jan 2017, 12:27
Znuny Version: 6.0.8
Real Name: Patric

Re: Dynamic field - how to insert more data to already existing data

Post by Dethas »

Thank you for your time! I will find another way then. The problem can be marked as solved.
Have a nice day!
root
Administrator
Posts: 3968
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Dynamic field - how to insert more data to already existing data

Post by root »

Did you tried in DynamicFieldSet in the transition action with key 'DynamicField_X' and as value '<OTRS_TICKET_DynamicField_X>bbb' ? Should be worth a try
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Post Reply