Wiki

Scale Your Enterprise

User Tools

Site Tools


versago:images_in_reports

This is an old revision of the document!


Using Images in Versago Reports and Forms

The following image formats are supported.

  • PNG (preferred)
  • JPG
  • GIF
  • BMP (not recommended)

Each image must be provided in four (4) sizes.

  • 45 x 45 for thumbnail image
  • 65 x 65 for thumbnail image
  • 250 x 250 for mouse-over (hover) image
  • 1024 x 1024 for on-click (large) image

Images are held in the folder C:\Program Files(x86)\TWBS\Versago\WebApp\SiteImages.

The images must also be registered in the Versago common database in the versago_image_files table. A Bizweaver workflow is available to assist with this process. Images can also be registered manually as described elsewhere in this page.

Sample SQL Using Images

This example displays a list of production orders with an image of the finished product.

  • The database for “vgoCommon” may need to be changed for your installation.
  • “isnull(t1.filepath,'\SiteImages\NoImage_45.png')” assumes you have an image to be displayed when an actual image is not available.
  • Use either “45” or “65” in the selection. 45 is used in this example. The other sizes (for the other thumbnail, image rollover and image click) are determined automatically by Versago.
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%'

Register Images Manually

Versago images are most commonly imported and registered using a Bizweaver workflow. Information on this workflow is found here. It is also possible to manage image information manually, as described here.

Image Files

Four image sizes are required as noted above. The images should be placed in the older C:\Program Files(x86)\TWBS\Versago\WebApp\SiteImages.

Image Maintenance Form

The Image Maintenance form can be used to update information created through the Bizweaver upload process or to add image information manually.

Image Maintenance

  • File Name is the name of the image file without the extension; for example 12345 rather than 12345.png.
  • File Size is the size of the file in pixels. Values will be 45, 65, 125, or 250.
  • File Path is the abbreviated file path of the image file. It will always be \SiteImages\FileName.Ext. So using our previous example the entry will by \SiteImages\12345.png.
  • Intersection ID is used to match the image file to its associated object. In the example image below, the image file is associated with item 790824300010.

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.

versago/images_in_reports.1592317908.txt.gz · Last modified: 2020/06/16 10:31 by runger