'Magnolia detail subapp commit action

I'm on magnolia 6.2.15 and I need to generate data from some fields that users insert in a content detail subapp. I thought about creating a subclass of magnolia "SaveDetailSubAppAction", in the "execute" method to do the job. I can retrieve fields value but, how can I generate new fields data values and insert that in the form before validation and commit to jcr datasource?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source