-
Notifications
You must be signed in to change notification settings - Fork 0
Noodle PutValue() Method
Dan Kranz edited this page Oct 7, 2021
·
6 revisions
Revise dataset rows.
Pages, lines and columns (fields) are numbered, starting with 1. Use a line number of 0 to revise header field values. Specify both page and line to revise columnar values. One or more rows may be revised.
Define a PutLineValue function in the data source to customize PutValue.
PutLineValue(val, page, line, bfi)
Parameter | Description |
---|---|
val | The value to store |
page | Page number in data view |
line | Line number in page |
bfi | Field index |
var items = [
["1","Vegetable","Tree","1"],
["2","Animal","Bird","1"],
["3","Mineral","Diamond","1"],
["4","Vegetable","Flower","1"],
["5","Vegetable","Grass","1"],
["6","Animal","Cat","1"],
["7","Animal","Dog","1"],
["8","Mineral","Ruby","1"],
["9","Mineral","Quartz","1"]
];
var db1 = new Noodle(items, ["Seq","Category","Item","Count"]);
// Create a new data view, Categories
db1.InitializeView();
db1.EnterColumnar(2);
db1.GenerateView();
// Store a value
var page = 1;
var line = 1;
var bfi = 2;
db1.PutValue(“Thing”, page, line, bfi); // Revises the 3 “Animal” rows