Hi!
I’m working in a pilot project using free bonita community.
We need to upload a list of files in each task forms, but we dont know specifically how many files is. The users need to access this files in forms too.
I’m trying to do this:
- Created a process variable of java.util.List type (fileNameList);
- Create a button in task form (form1) called “Add Files” and this button redirect to other form (form2), with a upload widget;
- Create a button in form2 to submit the file, with a action that will add the file in fileNameList;
- Redirect to form1 and list the files;
In my form2 action, i have this piece of code:
fileNameList.add(field_File1);
-
For some reason that i dont know, the fileNameList keeps empty when i watch the variable value in portal with a administrator user (App Management → Cases → Select My Case → More). I’m adding the file corectly?
-
Can i list the files in my form to download them?
Thanks!