Save file's path into variable .

1
0
-1

I m using bonitasoft community version ,

when user browse for file and click on upload file : it will store file in document variable i know but , after upload i want to store file's path on variable . (text/variable)

1 answer

1
0
-1

If you want the path variable to be updated after upload is done, you can create an Action on Submit button which updates some local variable using the groovy script. document.getUrl() will give you the url.

Comments

Submitted by kppatel on Mon, 06/16/2014 - 12:23

It gives error while submitting form . what i mistaken ?

Submitted by dhananjay.manohar on Mon, 06/16/2014 - 13:50

What kind of error. Please elaborate.

Submitted by kppatel on Mon, 06/16/2014 - 20:31
  1. create two variable : 1st - string var (Url) 2nd - document (inp)

  2. now create form on task1 and put file widget in form and set data > output > inp (doc)

  3. on submit button click event i set action : Url takes value of inp.getUrl();

  4. but when i run process , after upload doc click on submit > gives following error : error while submiting form

what i done wrong ? thnaks

Notifications