Wiki

Scale Your Enterprise

User Tools

Site Tools


versago3:dataview_display

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
versago3:dataview_display [2022/09/14 15:51]
dlee
versago3:dataview_display [2024/03/14 14:16] (current)
dlee [Field Display]
Line 11: Line 11:
   * **Localization** is used to adjust the formatting of date, datetime, and currency __types__.   * **Localization** is used to adjust the formatting of date, datetime, and currency __types__.
   * **File Name** is only accessible when the data type of the column is binary, blob, or varbinary .  See **Note 1** below.   * **File Name** is only accessible when the data type of the column is binary, blob, or varbinary .  See **Note 1** below.
 +
 +<WRAP center round info 80%>
 +Users will be able to sort by clicking column heading. Multiple column can be sorted by using the CTRL key
 +</WRAP>
  
 **Note 1** **Note 1**
Line 22: Line 26:
   * **Database Source Files** are identified by reference to specific records in a database.  The information provided below refers to files uploaded via a Versago form.   * **Database Source Files** are identified by reference to specific records in a database.  The information provided below refers to files uploaded via a Versago form.
   * The data is found in a table named "TWBS_VGO_FormAttachments" This table is found in the database where the data captured in the form is stored.   * The data is found in a table named "TWBS_VGO_FormAttachments" This table is found in the database where the data captured in the form is stored.
-    * Two values are required from the record: FileName and FileContent.  __FileContent__ is the binary data that will be converted for download.  __FileName__ is used as the reference to the binary data+    * Two values are required from the record: FileName and FileContent.  __FileContent__ is the binary data that will be converted for download.  __FileName__ contains the file name of the binary. 
-    * When the data type of the column is binary, blob, or varbinary the __File Name__ field for the FileContent row presents a drop-down list of fields from the report query.  Select the column name that contains the associated file name. +    * The Display Type of __FileContent__ should be set to File 
-    * It is not necessary to display the __FileName__ value in the report, but showing the user the name of the file is typically very helpful.+    * It is not necessary to display the __FileName__ value in the report, but showing the name of the file is typically very helpful.
   
 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.   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.  
Line 33: Line 37:
  
 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. 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.
 +
 +<WRAP center round info 80%>
 +Video regarding files and Data Views
 +</WRAP>
  
 ====Highlights==== ====Highlights====
Line 68: Line 76:
      
 Images are held in the folder C:\Program Files(x86)\TWBS\Versago\WebApp\SiteImages. 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. 
-   
-<code SQL> 
-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%' 
-</code> 
- 
-===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//. 
  
 <WRAP center round info 80%> <WRAP center round info 80%>
-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.+Video regarding images and Data Views
 </WRAP> </WRAP>
  
versago3/dataview_display.1663185074.txt.gz · Last modified: 2022/09/14 15:51 by dlee