-
Notifications
You must be signed in to change notification settings - Fork 0
Noodle DeletePage() Method
Dan Kranz edited this page Sep 20, 2021
·
4 revisions
Removes the records (rows) represented within a data view page.
The records are removed from the user's view and marked for deletion. The actual deletion takes place when the database is saved.
DeletePage(page)
Parameter | Description |
---|---|
page | Page number in data view |
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 view of Items by Category
db1.InitializeView();
db1.EnterHeader(2);
db1.EnterColumnar(3);
db1.GenerateView();
// Delete all rows of the first category; in this case all "Animal" rows.
db1.DeletePage(1);