Problem with "Download Only" File

1
0
-1

Hi, I have a problem with "Download Only" File in form. When a I choose Download Only in Data Description for the widget File, the name of the file is not showing and so I don't have the link to download the file in the form. Is it a bug?

I have also notice that the file are all insert at the end of the form, why?

Thank you!

Comments

Submitted by florian.baillagou on Wed, 07/23/2014 - 17:24

Hi !

I don't understand your problem. These questions will help me to understand : - Where do you declare your file ? (Pool ? Task ?) - Is it external or internal file ? - If external, where do you upload it ?

Submitted by mario19 on Thu, 07/24/2014 - 14:47

Hi, I declared the file in Pool, in document section, as Internal file. and I want to see the document in "download only" format in the first form that i have created in pageflow in Pool (the tipical request form). Can you help me? Thank you!

Submitted by florian.baillagou on Thu, 07/24/2014 - 14:54

Problem is, I don't think that documents are "instantiated" before clicking on execute, that's why you can't see any document. Did you try to show this document in a human task right after the start event ? Start event -> Human task -> End event

Submitted by mario19 on Fri, 07/25/2014 - 12:41

In internal human task i have the same problem but if I use "Document" and not "Resource" for the file reference I see the link So I think that the problem is the combination of Resource and Download Only

The problem is that in the requestForm (the first in pageflow) I can't use Document (there isn't checkbox) but only Resource.

So, how can I link a document in the first request page form?

Thank You

Submitted by florian.baillagou on Fri, 07/25/2014 - 13:20

I don't really understand what you're trying to do ...

You talk about document and then, you talk about Ressource. This is totally different !

I think ressource is used to manage your Workflow UI (Image, css ...). You can't use these ressources in your process. By use, I mean download, modify, upload.

If you want to modify your page after clicking on "Start" in Application menu: - Click on your pool - Go to Application > Form - Add - Design your form.

Did I understand your problem ?

Submitted by mario19 on Fri, 07/25/2014 - 14:31

I try to describe better my step:

  • I click on my pool
  • Application > Pageflow > Form > Add...
  • I insert a File widget in form
  • In General > Data > Initial Value i have only Resource check box (I have the document check box only in form that i create in human task between start and stop, but not in form created on pool)
  • I click on browse... and I choose a document

In the published form I don't see the link at the document (if I don't check "Download only" I see the link at the document)

Submitted by florian.baillagou on Fri, 07/25/2014 - 15:07

As I told you, I think the variables are not instantied in the pool pageflow (especially files). Can't you do a human task after the start event which contains this form ? Why can't you do this ?

4 answers

1
0
-1

Hello,

The bug was fixed, and it will be available in the next release (6.3.4)

Nicolas

1
0
-1

Hi Mario19,

I can confirm you that it is a known bug, we are working on it in order to provide a fix in the next maintenance release.

Cheers, Fabio

1
0
-1

I don't think this is a bug. Since your process is not started, your document isn't store with an ID into the base.

When you choose "Download only", he tries to get the document with his ID. And since the document doesn't have ID, the field is empty.

When you don't choose "Download only", he just get the initial value of the document. Having initial value on a file field doesn't mean the document is stored into the base.

Don't forget that a document have an ID is related to a processInstance since you upload a document from a processInstance. Since his process isn't started yet, the document doens't have any relation with a processInstance, so he isn't stored into the base.

Hope this help.

1
0
-1

Hello mario19,

If i understand your case you want to get the files from your form, in other task ?

If it is the case be sure that you have chosen 'Internal Field' when you specify your file in the pool. And that you uploaded all fiels befor submit your form.

I did it and it works

Comments

Submitted by mario19 on Wed, 07/23/2014 - 16:11

Yes is it the case... but i have just choosen "Internal Field" and uploaded file. In fact if I don't choose "Download Only" I have the name of the file visible and with link (but I have also the "modify" and "cancel" link) When I choose "Download Only" I have nothing...

Submitted by dhananjay.manohar on Mon, 07/28/2014 - 09:45

Looks like a bug you should report it.

Notifications