Learn Iceberg > 2 How To... > General How To > How to Access a File Upload Field from a View, using html

How to Access a File Upload Field from a View, using html

Table of contents
No headers

Normally File Upload fields are not accessible for use when customising views. This means that you cannot create a column for the File Upload field when designing a view.
This video will show you how to make uploaded files accessible in a view, using some basic html. The html used in this video is explained below.

 


 

 

The URL in a File Upload field looks like this: 

localhost:59550/ViewDocument.axd?p=1&lid=10000565&aeid=10007354

 

p=1 refers to the ID of the object. This is replaced with p={New Object: ID}. In a New Event process, Iceberg will automatically fill in the ID number. This means that the correct file will always be referenced.

The start of the URL (localhost:59550/) is removed because it is not needed.

Whatever is leftover is wrapped in a html anchor tag and turned into a hyperlink with a href.

 

The finished link looks like this:

<a href="ViewDocument.axd?p={New Object: ID}&lid=10000565&aeid=10007354">Open File</a>

Using this in a Large Text field means we can create a link to the uploaded file. This link will be available for use in a view, meaning that the file is accessible directly from the view.

Tag page
You must login to post a comment.