ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / HFSQL properties
  • Item thumbnail
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Thumbnail (Property)
In french: Vignette
HFSQL ClassicHFSQL 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 programmatically. For more details, see HFSQL thumbnails.
  • 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 label is: " + LabelValue)
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 is 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: on the fields of a data file, view or query.
  • in HFSQL Client/Server: on data file fields 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

Last update: 12/12/2024

Send a report | Local help