To configure external documents to your Networks Simulator solution:
1.Open the Designer app, then navigate to the Services tab on the right.
2.Click Document Management Service.
All available data sources are listed.
3.Click Add Data Source to configure a new data source, and fill in the following fields:
•Data Source URL: Enter the base URL used to resolve relative document paths.
•Table: Enter the document table containing the data source fields.
•File name field: Enter the document path (relative or absolute URL).
•Document name field: Enter the document name you want shown in the UI.
4.Click Save.
To edit an existing data source, click it from the list and make your edits in the same manner as mentioned above.
Creating two different data sources in the same table may result in unexpected behavior, there is no validation on our part when creating a new data source whether the same table was previously used in another data source field. We strongly advise that a table be unique to a data source field.
The External Documents functionality is available only if all of the following are set up:
1.A document table exists in the data model (for example, VG_DOCUMENT).
2.A Document Management Service is configured in the app JSON with:
•The service URL (docBaseUrl).
•The document table (table).
•The field containing the document URL/path (fileNameField),
•Optional: The display name field (docNameField).
3.Many-to-many (M:N) relationships exist between each asset class that should support document links and the document table.
When using the standard VertiGIS document configuration with the VG_DOCUMENT, the relationship classes setup is automatically configured.
The following types are supported and checked for images:
•JPEG
•PNG
•GIF
•BMP
•SVG+XML
•WEBP
The following types are supported and checked for documents:
•MS WORD
•VND.MS-EXCEL
•MS-POWERPOINT
•OPENDOCUMENT.PRESENTATION
•OPENDOCUMENT.SPREADSHEET
•OPENDOCUMENT.TEXT
•OFFICEDOCUMENT.PRESENTATIONML.PRESENTATION
•OFFICEDOCUMENT.SPREADSHEETML.DOCUMENT
•TEXT/CSV
•TEXT/PLAIN
•JSON