Sintaxe
M
Table.View(table as nullable table, handlers as record) as tableParâmetros
- tablenullable tableObrigatório
Tabela base da exibição; pode ser
nullseGetTypeeGetRowsforem definidos.Mnull- handlersrecordObrigatório
Registro com as funções que substituem o comportamento padrão das operações.
M[GetType = () => ..., GetRows = () => ..., GetRowCount = () => 1]
Retorna
tableExemplo
M
Table.View(
null,
[
GetType = () => type table [CustomerID = number, Name = text, Phone = nullable text],
GetRows = () => Table.FromRecords({[CustomerID = 1, Name = "Bob", Phone = "123-4567"]}),
GetRowCount = () => 1
]
)Resultado
M
Table.FromRecords({[CustomerID = 1, Name = "Bob", Phone = "123-4567"]})Mais informações
- Subgrupo
- Table