-
Notifications
You must be signed in to change notification settings - Fork 0
Noodle RecordCount() Method
Dan Kranz edited this page Sep 20, 2021
·
3 revisions
Returns the number of records (rows) represented by a Page, Line combination.
The data view must contain at least one columnar field.
RecordCount(page, line)
Parameter | Description |
---|---|
page | Page number in data view |
line | Line number in page |
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"]);
db1.InitializeView();
db1.EnterColumnar(2);
db1.GenerateView();
var nrec = db1.RecordCount(1,2); // nrec=3