-
Notifications
You must be signed in to change notification settings - Fork 0
Noodle GenerateView() Method
Dan Kranz edited this page Sep 20, 2021
·
7 revisions
Construct a new data view composed of fields that were specified with calls to EnterHeader and EnterColumnar. Data is sorted and grouped by the specified fields.
Data sources may implement the Compare method to support customized sorting and grouping of data.
GenerateView()
None
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, Items by Category
db1.InitializeView();
db1.EnterHeader(2);
db1.EnterColumnar(3);
db1.GenerateView();