zoukankan      html  css  js  c++  java
  • XPages Multi Attachments Custom Control on OpenNTF.org20090506 06:10

    I updated my sample Multi Attachment custom control to now accept configuration parameters so it is easier to reuse the control in different applications.  The updated application can be downloaded from OpenNTF.org by clicking here.  

    I decided to make the control easy to drag and drop onto any XPage after speaking with Niklas Heidloff from IBM.  He was filling me in on all the changes coming soon to OpenNTF.org and I felt it was important to contribute to the efforts that are underway.  

    About the Multi Attachment Custom Control
    This custom control uses a central attachment repository db for all the attachments for your application.  It allows the user to add as many attachments to a document as they want by clicking the "Add New Upload" button .  Each attachment is a separate document in the attachment repository and is linked back to the document using the document's universalID.  The custom control uses a repeat control to repeat a description and download control for each attachment.

    The parameters I added allow you to specify the location and name of the repository database as well as control the various features of the file download control.  The repository contains a single view and form.  You can place that view and form into any database to create the repository.

    Here's a screen shot of the custom control being used on an XPage that tracks Project information:

    Image:John's Blog - XPages Multi Attachments Custom Control - on OpenNTF.org

    Here's a screen shot showing the parameters:

    Image:John's Blog - XPages Multi Attachments Custom Control - on OpenNTF.org

    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



    You can download the control here: http://www.openntf.org/Projects/pmt.nsf/ProjectLookup/XPages%20Multi%20Attachment%20Custom%20Control.

    You can read more about how the control was built by clicking here: http://www.jmackey.net/groupwareinc/johnblog/johnblog.nsf/d6plinks/GROC-7G3GF7

    Please feel free to contact me if you have any issues or questions.....
  • 相关阅读:
    Java实现 LeetCode 715 Range 模块(选范围)
    HTML 图像
    HTML 样式- CSS
    HTML <head>
    HTML 链接
    HTML 文本格式化
    目标检测中的anchor-based 和anchor free
    目标检测coco数据集点滴介绍
    Camera HDR Algorithms
    噪声标签的负训练:ICCV2019论文解析
  • 原文地址:https://www.cnblogs.com/hannover/p/1971270.html
Copyright © 2011-2022 走看看