Configure Documents
- Last UpdatedJan 20, 2025
- 1 minute read
The sampleAsset.DocSelection section describes how to configure the documents that are related to the asset.
Documents can be opened from a remote location on the web or from the local device.
Code example
A code example of the sampleAsset.DocSelection section.
<define name="sampleAsset.docSelection" type="config" >
<item name="numberOfDocs" value="3" />
<item name="documentList" value=”Sample Doc1,Sample Doc2,Sample Doc3" />
<item name="refPdfFile" value="pdf1.pdf,pdf2.pdf,pdf3.pdf" />
<item name="filePath" value="local://data\"/>
</define>
Parameters
This table lists the parameters.
|
Parameter |
Description |
|---|---|
|
numberOfDocs |
Number of documents that will be listed for this asset. |
|
documentList |
The title of the documents that will be displayed in the list. |
|
refPdfFile |
The pdf file that will be opened for the on clicking the document from the document list. These pdf files are copied inside the data folder of the project. |
|
filePath |
The uri and the folder that has all the pdf files. The uri (local) indicates that the file will be fetched from the filesystem. |