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
Dynamic field - how to insert more data to already existing data
Moderator: crythias
-
- 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
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.
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: Dynamic field - how to insert more data to already existing data
Is there a way to do it through process transition?
-
- 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
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: Dynamic field - how to insert more data to already existing data
Thank you for your time! I will find another way then. The problem can be marked as solved.
Have a nice day!
Have a nice day!
-
- 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
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 ?
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 ?