Saltar para o conteúdo principal
Versão: Próximo

VP Get table dirty rows

História
ReleaseMudanças
19 R8Adicionado

VP Get table dirty rows ( vpAreaName : Text ; tableName : Text { ; reset : Boolean {; sheet : Integer }} ) : Collection

ParâmetroTipoDescrição
vpAreaNameText->Nome de objeto formulário área 4D View Pro
tableNameText->Nome da tabela
resetParâmetros->True para apagar o estado "dirty" da tabela atual, False para mantê-lo igual. Padrão=True
sheetInteger->Índice da folha (folha atual se omitida)
ResultadosCollection<-Collection of objects with all the items modified since the last reset

Descrição

The VP Get table dirty rows command returns a collection of dirty row objects, containing items that were modified since the last reset in the specified tableName.

Em vpAreaName, passe o nome da área 4D View Pro.

In tableName, pass the name of the table for which you want to get the dirty rows. Somente as colunas modificadas vinculadas a um [contexto de dados] (vp-set-data-context.md) serão levadas em consideração.

By default, calling the command will clear the dirty status from the current table. To keep this status untouched, pass False in the reset parameter.

In sheet, pass the index of the target sheet. Se nenhum indice for especcificado ou se passar -1, o comando se aplica a folha atual.

A indexação começa em 0.

Each dirty row object in the returned collection contains the following properties:

PropriedadeTipoDescrição
itemobjectObjeto modificado da linha modificada
originalItemobjectObjeto antes da modificação
rowintegerÍndice da linha modificada

If tableName is not found or if it does not contain a modified column, the command returns an empty collection.

Exemplo

Pretende contar o número de linhas editadas:

var $dirty : Collection
$dirty:=VP Get table dirty rows("ViewProArea"; "ContextTable"; False)
VP SET NUM VALUE(VP Cell("ViewProArea"; 0; 0); $dirty.length)

Veja também

VP CREATE TABLE
VP Find table
VP SET TABLE COLUMN ATTRIBUTES
VP RESIZE TABLE