diff --git a/index.html b/index.html
index b90b398..8986b61 100755
--- a/index.html
+++ b/index.html
@@ -179,7 +179,9 @@ var Pivot =
{
for(let i=0; i N.Create({Row:r}));
Pivot.Init = ()=>{};
@@ -387,20 +389,21 @@ let ElForm = props =>
let used = N.Step(Pivot.Proto, "used")||[];
let unused = N.Step(Pivot.Schema, "label").filter( columnLabel => !N.Step(columnLabel, "used", false) );
- let indicies = used.map(node=>node.Meta.Index);
-
+ let indiciesPivot = used.map(node=>node.Meta.Index);
+ let indiciesSum = (N.Step(Pivot.Schema, "sum")||[]).map(n=>n.Meta.Index);
+
var action;
- if(indicies.length)
+ if(indiciesPivot.length)
{
action = h("div", null, [
h("span", null, "Build"),
h("button", {onClick:e=>
{
N.Disconnect(Pivot.Proto, null, "used");
- Pivot.Create(indicies, [3, 4]);
+ Pivot.Create(indiciesPivot, indiciesSum);
Render();
}
- }, indicies)
+ }, "Create Pivot")
]);
}
else