How to pass JSON values from form to process variable
Hi,
I'm using bonita 7.2.3. I created a custom widget, to obtain a table with a column that contains checkboxes to get row selected. I created also in the form page a JSON variable to collect values checked in the table. The variable is correctly populated and on page submit I need to transfer those values to a process variable (the type is java.util.List) I defined in the process.
Contract variables can't be defined as List, so how can I pass values from page to variable? Using a text contract variable, I obtain an error message as JSON cannot be assigned to TEXT.
Any suggest would be appreciated.
Thank you
2 answers
Comments
sure. Please explain your question, thanks
Sorry for answering later... i was busy at work
Im with this code so far:
Problem: i really cant get the data into the rows, im doing something wrong with the column keys and content input, what am i doing wrong?
here a pic of the entire widget:
http://imgur.com/a/Vhbpt