How can I store user input from a Velocity Template into a Active Object?

Yiraphic __ Peeters November 29, 2017

I want to create a velocity template consisting of a few fields to use in a web-panel for the view-isssue screen. The fields should contain information retrieved from a Active Object Entity. The user is then able to change the values inside these fields. If there is no data stored ub the Active Object for the current issue the user input will be stored as a new entry.

So basically I want to update the values in the Active Object Entity with the new values entered by the user in a Velocity Template for a web-panel. Is this possible and if so how can I achieve this?

I have looked at servlets and web actions but as far as I know I can't put these inside a web-panel.

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 29, 2017

Hello,

I do not ask why you do not want to store values in custom fields. But it is possible. Develop Rest Api in your plugin and store data in ao through the rest api. You can call your rest api from your velocity templates and pass values of required fields to your rest api

Suggest an answer

Log in or Sign up to answer