VP Get data context
Historique
Release | Modifications |
---|---|
19 R5 | Ajout |
VP Get data context ( vpAreaName : Text {; sheet : Integer } ) : any
Paramètres | Type | Description | ||
---|---|---|---|---|
vpAreaName | Text | -> | Nom d'objet formulaire zone 4D View Pro | |
sheet | Integer | -> | Indice de la feuille de laquelle obtenir le data context | |
Résultat | Object | Collection | <- | Data context |
Description
The VP Get data context
command returns the current data context of a worksheet. The returned context includes any modifications made to the contents of the data context.
In sheet, pass the index of the sheet to get the data context from. If no index is passed, the command returns the data context of the current worksheet. If there is no context for the worksheet, the command returns Null
.
The function returns an object or a collection depending on the type of data context set with VP SET DATA CONTEXT.
Exemple
To get the data context bound to the following cells:
var $dataContext : Object
$dataContext:=VP Get data context("ViewProArea") // {firstName:Freehafer,lastName:Nancy}