File upload as control in table column? [message #1611] |
Wed, 10 September 2008 05:28 ![Go to next message Go to next message](/theme/default/images/down.png) |
bonzo_bcn
Messages: 152 Registered: June 2008
|
Senior Member |
|
|
Is there any way to add the 'upload file' task as a control of a table column?
For what I understand to add a picture you need a filepicker in the table column, this opens a transaction where you have to upload the picture if it's not there, and then select it.
Is there any way that an upload button can appear next to the table column? So that you upload directly the file you want to associate to that field?
|
|
|
|
|
|
|
|
|
|
|
Re: File upload as control in table column? [message #1622 is a reply to message #1621] |
Wed, 10 September 2008 11:08 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to next message](/theme/default/images/down.png) |
AJM
Messages: 2361 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
Your method is not the "standard" by any means, it is just what you have seen in a few applications. None of my users have any problems with my implementation of these two operations as separate functions, so it is also incorrect to imply that my method is "not intuitive".
There is no way with the fileupload task to show an image of the file which has just been uploaded. Its purpose is simply to upload a file from the client to the server, and it may not even be an image file.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
Re: File upload as control in table column? [message #1625 is a reply to message #1624] |
Wed, 10 September 2008 11:52 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to next message](/theme/default/images/down.png) |
AJM
Messages: 2361 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
I might get around to it at some time in the future, but I cannot give any guarantees. At the moment I am tied up with a big project that is earning me money so I have less time to do things that I give away for free.
Perhaps you would like to try your hand at creating a page controller that does what you want. The code for uploading and picking a file already exists, so all you would have to do is combine them into a single unit. How hard could that be?
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
Re: File upload as control in table column? [message #1627 is a reply to message #1626] |
Wed, 10 September 2008 12:22 ![Go to previous message Go to previous message](/theme/default/images/up.png) ![Go to next message Go to next message](/theme/default/images/down.png) |
AJM
Messages: 2361 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
There's also another approach which I like more - still have the fileupload called from the filepicker, but if the filepicker is used then automatically set that file as the user's selection and immediately return from the filepicker. This will cut out the browsing and selection steps after the file has been uploaded.
This would be easier to code and also more flexible for the user as they would not be forced to upload the file if it already existed on the server.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|
|
Re: File upload as control in table column? [message #1640 is a reply to message #1628] |
Thu, 11 September 2008 16:19 ![Go to previous message Go to previous message](/theme/default/images/up.png) |
AJM
Messages: 2361 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
I have taken a look at the filepicker pattern, and with a few lines of code I have changed it so that if the fileupload task is called to upload a new file then when it returns to the filepicker the uploaded file will automatically be returned by the filepicker to the calling task as the selected file without any additional action by the user.
This will be included in the next release, but if you can't wait then you can use the attached file.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|