VP Get column attributes
Historique
Release | Modifications |
---|---|
19 R7 | Ajout |
VP Get table column attributes ( vpAreaName : Text ; tableName : Text ; column : Integer {; sheet : Integer } ) : Object
Paramètres | Type | Description | ||
---|---|---|---|---|
vpAreaName | Text | -> | Nom d'objet formulaire zone 4D View Pro | |
tableName | Text | -> | Nom de table | |
column | Integer | -> | Numéro de colonne de la table | |
sheet | Integer | -> | Numéro d'indice de la feuille (feuille courante si omis) | |
Résultat | Object | <- | Attributes of the column |
Description
The VP Get table column attributes
command returns the current attributes of the specified column in the tableName.
In vpAreaName, pass the name of the 4D View Pro area.
In sheet, pass the index of the target sheet. Si aucun numéro n'est spécifié ou si vous passez -1, la commande s'applique à la feuille courante.
La numérotation démarre à 0.
The command returns an object describing the current attributes of the column:
Propriété | Type | Description |
---|---|---|
dataField | text | Nom de la propriété de la colonne de la table dans le contexte de données. Not returned if the table is displayed automatically |
name | text | Nom de la colonne de la table. |
footerText | text | Valeur du pied de colonne. |
footerFormula | text | Formule de pied de colonne. |
filterButtonVisible | boolean | True if the table column's filter button is displayed, False otherwise. |
If tableName is not found or if column index is higher than the number of columns, the command returns null.
Exemple
var $attributes : Object
$attributes:=VP Get table column attributes("ViewProArea"; $tableName; 1)
If ($attributes.dataField#"")
...
End if
Voir également
VP CREATE TABLE
VP Find table
VP SET TABLE COLUMN ATTRIBUTES
VP RESIZE TABLE