Aller au contenu principal
Version: 20 R6

VP Get data context

Historique
ReleaseModifications
19 R5Ajout

VP Get data context ( vpAreaName : Text {; sheet : Integer } ) : any

ParamètresTypeDescription
vpAreaNameObject->Nom d'objet formulaire zone 4D View Pro
sheetInteger->Indice de la feuille de laquelle obtenir le data context
RésultatObject | 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}

Voir également

VP SET DATA CONTEXT
VP Get binding path
VP SET BINDING PATH