Lattice Grid Buy a licence

KPI ยท console.warn

rows.apply on a grid-bound KPI panel is ignored: the panel follows the bound grid, so route the change to the grid instead and the panel will follow it.

Printed by KPI, prefixed [lattice], since 1.35.0.

Warnings referencekpi:apply-gridbound

Identifier
kpi:apply-gridbound
Raised by
KPI
Since
1.35.0

What happened

apply() was called on a panel that was created with a grid. Such a panel takes its rows from the grid and nothing else; accepting a diff here would give the panel two sources of truth that immediately disagree. The diff was dropped and the panel still shows what the grid holds.

The fix

Apply the diff to the grid - or to the router source feeding it - and the panel updates with it. Use a panel without grid if you want to drive it directly.

The smallest fix

grid.rows.apply({ add, update, remove });   // the panel follows

Reference

Covered in full at the API reference.