|
|
|
|
|
- ListView control
- Display error
- Limitations
DataBinding (Property) In french: LiaisonFichier
Warning
From version 26, FileLink is kept for backward compatibility. This property has been replaced with DataBinding.
The DataBinding property is used to identify and change the binding between a control and: - and a data file item.
- and a variable.
- and several variables (in this case, each variable can be bound to a different property of the control).
Example of multi-file binding:
This property is equivalent to the ControlAlias function.
SAI_Saisie1.LiaisonFichier = "Client.Nom"
SAI_Saisie2.LiaisonFichier = "Commande.IDClient" + TAB + "Client.IDClient:Nom"
SAI_Saisie3.LiaisonFichier = "LigneCmd.IDCmd" + TAB + ...
"Commande.IDCmd:IDClient" + TAB + "Client.IDClient:Nom"
TABLE_Table1.LiaisonFichier = ":Tableau_Mois"
FileToScreen()
gclContact is cContact
gsCouleur is int = PastelBlue
SAI_EnCours_Autorisé.LiaisonFichier = ":gclContact.EnCoursAutorisé" + TAB + ...
"valeur" + CR + ":gsCouleur" + TAB + "CouleurFond"
SourceToScreen()
Syntax
Identifying the binding between a control and an item or variable Hide the details
<Current binding> = <Control used>.DataBinding
<Current binding>: Character string Different types of bindings can be found:- No link: empty string ("")
- Simple binding to a data file item:
"<Fichier de base>.<Rubrique de base>" - Complex binding to a data file item:
"<Fichier de base>.<Rubrique de base>[ + TAB + <Liaison> [+ TAB + <Liaison>]]" where <Binding> corresponds to: <Related file>.<Key>:<Bound item>[<Index>] - Binding to a variable:
":<préfixe><Nom de la variable>" or (the prefix is applied only if the code style is enabled in the project).
<Control used>: Control name Name of the control with the binding to be identified.
Modifying the binding between a control and an item or variable Hide the details
<Control used>.DataBinding = <New binding>
<Control used>: Control name Name of the control with the binding to be modified. <New binding>: Character string Different types of bindings can be defined:- No link: empty string ("")
- Simple binding to a data file item:
"<Fichier de base>.<Rubrique de base>" - Complex binding to a data file item:
"<Fichier de base>.<Rubrique de base>[ + TAB + <Liaison> [+ TAB + <Liaison>]]" where <Binding> corresponds to: <Related file>.<Key>:<Bound item>[<Index>] Note: the following syntax is also permitted:
<[Fichier de base>.<Rubrique>[<[Indice]>] [: <Liaison> [: <Liaison>] ] where <Binding> = <Bound file>.<Key>:<DispItem> [<[Index]>] - Binding to a variable:
":<préfixe><Nom de la variable>" or The prefix must be specified only if the code style is enabled in the project (whether or not prefixes are displayed). - Binding to a variable of type data source:
<Nom de la variable>.Nom + ".<Rubrique de base>" - Linking several properties with several variables: the string describing the link must be of the form:
":" + <Nom de la variable 1> + TAB + <Nom de la propriété 1> + RC + ... ":" + <Nom de la variable 2> + TAB + <Nom de la propriété 2> + RC + ... ":" + <Nom de la variable N> + TAB + <Nom de la propriété N>
Remarks Limitations The DataBinding property applies only to controls in a window or page.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|