Configure Download File interface

Before using the Download File server behavior, if you do not wish it to generate the default download link, you have to create your own page element that will start the download operation (a button, text section or image).

Access the server behavior from the Application panel, Server Behaviors -> + -> MX Kollection -> File Upload -> Download File. The user interface that opens has one tab. Configure it as shown below.

 

To set the dialog box options, follow the next steps:

  1. In the File folder text-box enter the folder where the files are stored. You can either type in the name or use the Browse button to select it from one of the site's folders. If you want to create the file name from dynamic and static data, use the InterAKT Dynamic Data lightning bolt icon to insert dynamic placeholders that will be replaced at run-time.
  2. In the Recordset drop-down menu select the recordset containing the field with the filename. This menu will display all recordsets found on the page.
  3. In the Field drop-down menu select the table (recordset) column storing the filename. If the filename is not stored in a table, select either None or None: Rename rule. In the last case, the Renaming rule text-box enables.
  4. In the Renaming rule text box, when enabled (when the filename is not stored in a table column), enter the file name format. You can use both static text and dynamic data, by pressing the InterAKT Dynamic Data lightning bolt icon. This will allow selection of dynamic variables that will be inserted in the text box as placeholders that will be replaced at runtime.
  5. The Contextual help displayed on the bottom of the dialog box offers information regarding each field.
  6. The three buttons in the top right corner of the interface offer you the next functionalities:
    · Click OK when you are done configuring the server behavior.
    · Click Cancel to exit without applying the new settings.
    · The Help button opens this help page.