Transforms
...
const dataset = new wire.data.DataSet({
Source: accountService,
Query: query,
Transform: (config, callback) => {
//
// config.table is a DataTable
//
const table = config.table;
//
// add a new column to the table
//
table.addColumn("FullName").calc((row) => {
return row.FirstName + " " + row.LastName;
});
//
// tell the dataset we are done
// sending back the updated data table
//
callback(table);
}
});Last updated
Was this helpful?