• Anonymous
  • Login
  • Register
XPages Multi Attachment Custom Control

Owners John Mackey Category
Software Development Tools
Contributors - Platform
R 8.5.2
Downloads 1336Download latest release Last Release May 5, 2009
Rating
(1 ratings)
Project Creation May 4, 2009
Status Not active Short URL Not defined
Description This is a custom control that stores file attachments in a central repository. In Catalog
No


This XPages custom control is a multi-file upload control that uses a central attachment repository db for all the attachments. The application has very little code and utilizes the Repeat control and Panel control to generate an unlimited amount of uploads per XPage. A developer can drag and drop this custom control on an XPage then configure the control with the repository database name...and they now can offer the users an unlimited amount of file attachments per document.

The end user clicks "Add New Upload" and a new document is created in the repository database. The XPage is then refreshed and the user is presented with a description field and an upload control to populate.

An article on the techniques used in building the control can be found here: http://www.jmackey.net/groupwareinc/johnblog/johnblog.nsf/d6plinks/GROC-7G3GF7

This control takes 6 parameters that allow the developer to specify the location and name of the repository database as well as control the various features of the file download control.

The control is located in the sample application database "XPagesMultiAttachCC.nsf" and is named "MultiAttachments". The repository sample is named "FileUploadDB.nsf" and can be placed in any directory on the server as long as the parameter "fileUploadDbName" includes the directory.

Descriptions of the available parameters
Parameter Description Type
fileUploadDbName The db name that will store the attachments.  Include the full path from the Notes data directory. string
hideIfNoAttachments Controls the visibility of the download control if there are no attachments boolean
showCreatedDate Controls the visibility of the column for Creation date boolean
showModifiedDate Controls the visibility of the column for Modified date boolean
showSize Controls the visibility of the column for Attachment size boolean
showType Controls the visibility of the column for Attachment tyope boolean


Projects can have short and readable URLs, e.g. http://mobilecontrols.openntf.org.

You can request a short URL to your project by sending a mail to support at openntf dot org. Put the word 'OpenNTF' somewhere in the subject.
Owners are the people with maximal rights. For example they can create releases and add more contributors.

In order to define multiple owners use "," (comma) as separator.

Because of data privacy you cannot lookup other people's names but you have to type them in.
Enter the contributors or owners here who you want to receive notifications and questions by email.

In order to define multiple owners use "," (comma) as separator.

Because of data privacy you cannot lookup other people's names but you have to type them in.
In addition to the owners additional OpenNTF contributors have to be listed here. Contributors don't have the same access rights as owners, e.g. they cannot create releases.

In order to define multiple owners use "," (comma) as separator.

Because of data privacy you cannot lookup other people's names but you have to type them in.
Enter a short description of the project here (up to 100 characters).

The short description shows up in the project UI and in some of the views.
In this field you should enter a more detailed description of your project.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.
A Catalog Release is for projects that are production ready and that are end-user "install friendly".

This property describes whether any release of this project has been added to the catalog.

Learn more about the catalog.