Multiple Attachments file field

Hi

I am using Bonita v6 community and i need to attach multiple file attachments in one process so what are the steps ? does it need groovy script ?

and please if there is example i will appreciate it .

Regards

You doesn’t need any code.
You just need to create a variable of type DocumentValue for each file in your process data.
Then in your form, you set the output operation of each file as “DocumentValueVariableX takes value of field_FileX”.

[Like this]
[Like this]: http://img4.hostingpics.net/pics/294815multiplefile.png

After that you can use the “DocumentValueVariable” in any step to do what you want to do.

can i add more than one attachment in doc1 ? beacause i need it to be open to the user to add attachments as he want…

Hi.
I don’t understand what you want to do.
Do you want to attach multiple files in the mail connector ?

thank you for response
no i mean in the file field on form …

Bonita 6.4 has Document Lists that enable multiple documents to be attached to a process for easier manipulation, have a look here

hi Sean

i did try it and does not work …incompatible type between list and file field!! …does it need code ?

regards

No you can’t.
One field can get only one file.