Skip to main content

File link control

You can add any number of these to the layout of a flow document.

A File link control represents a link to a file stored within Alloy (e.g. an item attachment). It requires the Item ID of the desired file, which can be obtained dynamically through a data source or supplied as a static value.

Note

The link will only be active in generated report documents.

In the Document Layout Editor, select at the bottom (or within a container control) and then choose File link.

alt text

Set the value

Select the pill shape inside the control and then supply the Item ID of the file you want to link to.

Either select Dynamic and link to a data source header (e.g. the Attachments header of an Item data source), or select Static and paste in a copied Item ID. To learn more, see Dynamic values.

Get the Item ID of a file
  1. Search for the file by name or browse to it in the File Explorer.

  2. Select the file to view its details in the right panel.

  3. Use the top button to copy the ID to your device's clipboard.

alt text

Configuration

Select the control to show its properties in the top toolbar.

alt text

Layout properties

  • Relative width - Auto by default. The control automatically sizes itself to display its content in full (space permitting). Alternatively, you can set a constant width. See Flow control width.

  • Margins - adjust the gap between each side of the control and the content inside. See Flow control margins.

  • Edit description - customise the control's description (shown in the toolbar).

  • Remove - delete the control.