Build the file list

In this section you will create the file list. The list to be created will allow filtering the displayed files by filename and description, and will also allow downloading the files simply by clicking on their names. To implement this behavior, you will use a NeXTensio list, improved with the file download trigger.

To create this page, follow the next steps:

  1. Open the index page in Dreamweaver.

  2. Start the Create NeXTensio List Wizard from the MX Kollection tab of the Insert panel.

  3. Configure each step of the wizard as follows:

  4. At this point, the list's HTML elements and server behaviors have been added to the page. By default, the NeXTensio list allows filtering and has links / buttons that allow single or multiple edit and delete. In order for the links to work however, you must have a NeXTensio Form built on the same table in the file specified in the first step of the wizard.

  5. Before creating the form, you must finish with the list: you must add the file download capability. This means that the file name will become a link that offers the actual file for download.

  6. To implement the download, you will use the Download File server behavior. First select the dynamic text in the list's table that displays the file name.  


     

  7. Next access the Download File trigger from the Server Behaviors tab > MX Kollection > File Upload menu.

  8. Configure the dialog box that opens as follows:

  9. Now the list allows downloading the files, simply by clicking on their names. In the next and final section of the tutorial, you will build the NeXTensio form page, allowing you to add, edit or delete files from the database and the disk.

  10. Save the page and upload it to the server. At first, the list will be empty, as no files exist yet. After building the form and adding some files, you will have a list similar to the following image: