VP Get table dirty rows
História
Release | Mudanças |
---|---|
19 R8 | Adicionado |
VP Get table dirty rows ( vpAreaName : Text ; tableName : Text { ; reset : Boolean {; sheet : Integer }} ) : Collection
Parâmetro | Tipo | Descrição | ||
---|---|---|---|---|
vpAreaName | Text | -> | Nome de objeto formulário área 4D View Pro | |
tableName | Text | -> | Nome da tabela | |
reset | Parâmetros | -> | True para apagar o estado "dirty" da tabela atual, False para mantê-lo igual. Padrão=True | |
sheet | Integer | -> | Índice da folha (folha atual se omitida) | |
Resultados | Collection | <- | 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.
Em tableName, passe o nome da tabela para a qual você deseja obter as linhas sujas. Somente as colunas modificadas vinculadas a um contexto de dados serão levadas em consideração.
Como padrão, chamar o comando vai apagar o status dirty da tabela atual. Para manter este estado intacto, passe False
no parâmetro reset.
Em sheet, passe o índice da folha de destino. Se nenhum indice for especcificado ou se passar -1, o comando se aplica a folha atual.
A indexação começa em 0.
Cada objeto dirty row na coleção retornada contém as propriedades abaixo:
Propriedade | Tipo | Descrição |
---|---|---|
item | object | Objeto modificado da linha modificada |
originalItem | object | Objeto antes da modificação |
row | integer | Í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