HomeGuidesRecipesAPI
HomeGuidesAPILog In

Document Viewer

Document Viewer provides a way to view one or more documents within a SmartIQ form or dashboard that are stored as data and retrieved via a related Data Source question.

The viewer can be presented as a Document List, or it can be presented as an Inline Viewer where a single PDF document can be embedded into the project content without being in a pop-up.

Usage

A Data Question or Writable Data Object that includes a binary and filename column (for example, a writable data object that has a file column) is required to contain the document/s to be viewed and is referenced by the document viewers 'data question' property. For the inline viewer ensure it is selecting a single item either by value or index.

Data source question can be single row or multiple row, and when paired with the Inline Viewer display type there must be a valid (PDF) selected item for it to render the viewer.

🚧

Inline viewer only supports PDF currently

🚧

Your file name must include the file extension to be complete

If your file name does not contain the file extension the document viewer will not know how to read the file and may even be unable to find it entirely.

Properties

Display TypeDocument List - lists all documents contained in the datasource. Inline Document - displays only one document
View ControlsAllows view, download or both from a document list
data questionreferences to the data question or writable data object containing the documents