This is an old revision of the document!
The page is used to define which columns are displayed in the data view, the order the fields are displayed, and to set various display options.
Note 1
A Data View can display a file for download. The file can be stored in the file system or in the DB in a binary field
The files in a database approach does require that the FileContent value is not NULL. As it is very possible that a report row will not have a corresponding report to download, use the following SQ. Setting FileContent to 0 when the database value is NULL allows the report to execute without errors.
isnull(t1.FileName, 'No File') as [FileName], isnull(t1.FileContent,0) as [FileContent]
In both cases, keep in mind that any user that has access to the report can download any file listed in the report. If certain files should be available to certain group(s) of users, different reports may be needed.
Highlights are a simple visual cue presented when the data matches the defined conditions. Highlighs can be configured for any numeric value in a Versago Data View.
It is possible to calculate values at the time a report is executed and present them as a new column. This is done using the [Derived Field]button at the bottom of the page.
The following image formats are supported.
Each image must be provided in four (4) sizes.
Images are held in the folder C:\Program Files(x86)\TWBS\Versago\WebApp\SiteImages.
This example displays a list of production orders with an image of the finished product.
SELECT t0.ItemCode, t1.ItemName, isnull(t2.filepath,'\SiteImages\NoImage_45.png') AS [ImagePath], t0.DueDate, t0.Status, t0.DocEntry, t0.DocNum FROM OWOR t0 INNER JOIN OITM t1 ON t0.ItemCode = t1.ItemCode LEFT JOIN [vgoCommon].dbo.[versago_image_files] t2 ON t0.ItemCode = t2.IntersectionID COLLATE database_default WHERE t0.Status IN ('R','P') AND isnull(t2.filepath,'\SiteImages\NoImage_45.png') LIKE '%45%'
Four image sizes are required as noted above. The images should be placed in the older C:\Program Files(x86)\TWBS\Versago\WebApp\SiteImages.
The file name is typically the same value as its associated object. So item number images carry the associated item number, Business Partner logos would carry the BP Code, etc. This association is how the Bizweaver process works, and should also be used when manually entering image information.