ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
<Source>.ActivateAutoFilter (Function)
In french: <Source>.ActiveFiltreAuto
Native Connectors (Native Accesses)Available only with this kind of connection
Enables an automatic filter on the linked data files when browsing an XML file. This filter can be disabled by <Source>.DeactivateAutoFilter.
Attention: This function is only available for Native Connector XML.
Example
// Activation de tous les filtres auto possibles du fichier de données Client
Client.ActiveFiltreAuto("*" )
// sauf entre les fichiers de données Client et Commande
Client.DésactiveFiltreAuto(Commande)

/////////////////////////////

// Parcours des commandes
Commande.LitPremier(IDCommande)
WHILE NOT Commande.EnDehors()
	// Parcours des lignes de commande de la commande en cours
	LigneCde.LitPremier(IDCommande)
	WHILE NOT LigneCde.EnDehors()
		LigneCde.LitSuivant(IDCommande)
	END
	// Commande suivante
	Commande.LitSuivant(IDCommande)
END
Syntax
<Result> = <Browse data file>.ActivateAutoFilter(<Data file to filter>)
<Result>: Boolean
  • True if the filter is enabled,
  • False if an error occurred (file or item not found).
<Browse data file>: Name of data file
Name of the data file used for the browse.
<Data file to filter>: Name of data file
Name of the data file to filter when positioned in the browse data file.
This parameter can correspond to "*". In this case, all the possible automatic filters will be enabled.
Remarks
Let's see a simple example:
Père.ActiveFiltreAuto(Fils)

This code indicates that when the records of the Son data file are browsed, this browsing is done with respect to the current 'context' (node) of the Father data file: all the 'Sons' of the current 'Father' will be browsed..

Père.DésactiveFiltreAuto(Fils)

This code indicates that the previous filtering is not active: the Son data file will be browsed independently of the Father data file.. This means that all the records of Child will be browsed in the given child.
<Source>.ActivateAutoFilter is used to enable/disable the hierarchical link between Parent and Child during browse operations.
Component: wd300hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/26/2024

Send a report | Local help