|
|
|
|
|
HActivateAutoFilter (Function) In french: HActiveFiltreAuto
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 HDeactivateAutoFilter. Attention: This function is only available for Native Connector XML.
HActivateAutoFilter(Client, "*" )
HDeactivateAutoFilter(Client, Commande)
HReadFirst(Commande, IDCommande)
WHILE NOT HOut()
HReadFirst(LigneCde, IDCommande)
WHILE NOT HOut()
HReadNext(LigneCde, IDCommande)
END
HReadNext(Commande, IDCommande)
END
Syntax
<Result> = HActivateAutoFilter(<Browse data file> , <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>: Character string Name of the data file used for the browse.This parameter can correspond to "*". In this case, all the possible automatic filters will be enabled. If <Browse data file> and <Data file to filter> correspond to "*", <Result> is set to True and no filter is enabled. <Data file to filter>: Character string 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. If <Browse data file> and <Data file to filter> correspond to "*", <Result> is set to True and no filter is enabled. Remarks Let's see a simple example: HActivateAutoFilter(Père, 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.. HDeactivateAutoFilter(Père, 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. HActivateAutoFilter is used to enable/disable the hierarchical link between Parent and Child during browse operations.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|