XPages Example: Building a Custom Control - How to build a Custom Multi-FileUpload Control that you can drop on any XPage, and it stores all attachments in an external repository db.06/29/2008 05:17 AM1. Sascha Jostock06/29/2008 01:01:41 AM
Works, Great!!
2. Sebastian01/09/2009 12:29:06 PM
Hey great tutorial,
i tried with Notes 8.5 final and got 2 Problems - notes doesnt get the Custom Controls "out of the box" of your database. I had to copy the contents into new Controls and add them to Projects Xpage.
Second but more anoying - with hidden DocUNID all uploads are shown, the field isnt computed. So i had to unhide the field and everything was fine. Is there a hidden checkbox like "compute html for all fields" in forms i just can't find?
3. John Mackey01/10/2009 08:56:03 AM
@Sebastian, I updated the sample to fix the problem with the docUNID field so it works with 8.5 Gold. I believe the custom controls issue is a beta 2 issue and you won't have that issue if you download the new example.
Thanks for bringing it to my attention!
John
4. Vayasin02/18/2009 06:06:07 AM
Hi John,
I like your tutorials. they have helped me alot.
Do you know how to use the fileupload without using a notes document to store it. For my project i need to feed a txt file directly into a Java function.
5. Apollo Entice03/13/2009 11:13:50 AM
John,
Let make take the chance to thank you for all your effort building sample apps that I religiously used as my learning tool. Congrats also to AD207, it was a great presentation and xpage app sample.
My question is with File Download control with this sample. Why all my uploaded MS Office (*.doc, *.xls, etc.)won't open when I click the attachments in IE but work's fine with Firefox. PDF's all open fine, *.doc and *.xls will show as garbage.
Any solution to fix this issue.
Thanks,
Apollo
6. Dale04/16/2009 08:28:45 AM
@5 Apollo we are experiencing the same issue, did you find a solution?
7. Richard Cotrim04/23/2009 01:42:59 PM
@5 @6, I'm facing the same problem. Does any one know the fix ? I've notice that the problem is ony with the file download control on IE.
8. John Mackey04/24/2009 09:57:34 AM
Homepage: http://www.jmackey.net
@5,6,7
There's a discussion thread in the 8.5 forum on this issue. Irina Kojevnikova posted a work around.
{ Link }
Hope this helps....
9. John Mackey04/30/2009 08:12:57 AM
Homepage: http://www.jmackey.net
@All, I posted a workaround for the filedownload issue. I also updated the sample download with the fix.
You can read about the fix here: { Link }
10. hector amato07/28/2009 10:20:32 AM
There is an issue which imposes a restriction to the custom control reusability. It is the name of the data source (document), used in document.save(), document.getDocument(), ecc.
If I include the control in a page having a data source named sales, I have to change the name, otherwise errors will raise.
Is there some way to avoid "wiring" the d.s. name ?
11. John Mackey07/29/2009 10:15:18 AM
@Hector
I have since addressed your concern in other posts. I think you'll like the results.....
Look at these 2 posts:
Expanded Custom Control: { Link }
Explanation of using "currentDocument": { Link }
-John
12. jake10/16/2009 09:20:26 AM
Homepage: http://www.critical-masses.com/jakeofalltrades
How do you create a hidden editbox control? I can't see how to make the standard editbox control hidden (type="hidden")
13. Ian10/22/2009 03:58:24 AM
Hi John,
Great example and this works perfectly for me on 8.5.1, almost!
The problem I am having is that when you first load the document you are not able to view the attachment section until you have saved and re-opened the document. It then works fine.
Any ideas how I can get around this?
Ta very much!
Ian
14. tülin04/06/2010 11:30:42 AM
Hi Mr. Mackey.
I have a question. I want multi file upload only one db. But how? Can you help me?
15. Tanya04/29/2010 05:33:02 AM
Good day
I'm looking for an example on how to use the Block-level container control in notes 8.5.1 Can't get it to work
Thank you :)