Aller au contenu principal
Version: Next

VP Get column attributes

Historique
ReleaseModifications
19 R7Ajout

VP Get table column attributes ( vpAreaName : Text ; tableName : Text ; column : Integer {; sheet : Integer } ) : Object

ParamètresTypeDescription
vpAreaNameText->Nom d'objet formulaire zone 4D View Pro
tableNameText->Nom de table
columnInteger->Numéro de colonne de la table
sheetInteger->Numéro d'indice de la feuille (feuille courante si omis)
RésultatObject<-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éTypeDescription
dataFieldtextNom de la propriété de la colonne de la table dans le contexte de données. Not returned if the table is displayed automatically
nametextNom de la colonne de la table.
footerTexttextValeur du pied de colonne.
footerFormulatextFormule de pied de colonne.
filterButtonVisiblebooleanTrue 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