PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Item thumbnail
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Thumbnail (Property)
In french: Vignette
HFSQLHFSQL Client/ServerAvailable only with these kinds of connection
The Thumbnail property is used to:
  • get the value of an item thumbnail. This item was defined in the data model editor or through programming.
  • WEBDEV - Server codeWEBDEV - Browser codePHP find out and modify the image associated with a Thumbnail control.
Example
// Value of first thumbnail of Customer.Photo item
ThumbnailValue is string
ThumbnailValue = Customer.Photo.Thumbnail[1]
// equivalent to ThumbnailValue = Customer.Photo.Thumbnail
 
// Null value?
IF ThumbnailValue <> "" THEN
Info("The value of this thumbnail is: " + ThumbnailValue)
ELSE
ErrorString = Customer.Photo.InfoThumbnailGeneration[1]
Error("Generation error", ErrorString)
END
WEBDEV - Server codeWEBDEV - Browser codePHP
Trace(THUMB_MyThumbnail.Thumbnail)
Syntax

Getting the value of an item thumbnail Hide the details

Value> = <Data file>.<Item>.Thumbnail
<Value>: Character string
Image of specified thumbnail in binary memo format.
<Data file>: Character string
Name of the data file used. This name was defined in the data model editor or with the File Description type.
<Item>: Character string
Name of binary memo item used. This name was defined in the data model editor or with the Item Description type.
WEBDEV - Server codeWEBDEV - Browser codePHP

Getting the path to the image associated with a Thumbnail control Hide the details

<Result> = <Thumbnail control>.Thumbnail
<Result>: Character string
Path to the image used for the thumbnail. This path is relative to the "_WEB" directory of the project.
<Thumbnail control>: Control name
Name of Thumbnail control to use.
WEBDEV - Server codeWEBDEV - Browser codePHP

Changing the path to the image associated with a Thumbnail control Hide the details

<Thumbnail control>.Thumbnail = <New image>
<Thumbnail control>: Control name
Name of Thumbnail control to use.
<New image>: Character string
New full path to image used as thumbnail. This path is relative to the "_WEB" directory of the project.
Remarks

Item thumbnail

The Thumbnail property is available:
  • in HFSQL Classic and HFSQL Mobile mode: on the items of a data file, view or query.
  • in HFSQL Client/Server mode: for the items found in a data file only.
Linux The Thumbnail property is only available on data file items in HFSQL Client/Server.
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment