Skip to content

Noodle OpenLine() Method

Dan Kranz edited this page Oct 3, 2021 · 3 revisions

Create a new, blank line within the columnar portion of data view page.

The new line is inserted at the specified position. This position is temporary. If the user changes data view screens, or if the dataset is saved, the line is repositioned to its natural sort order location. It's up to the user to make data changes to preserve the desired line positioning.

Syntax

OpenLine(page, line)

Parameter Values

Parameter Description
page Page number in data view
line Line number in page

Example

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(1);
db1.EnterColumnar(3);
db1.GenerateView();
db1.OpenLine(1, 2);

Insert a new line on Page 1 at Line 2

OpenLine Sample

Clone this wiki locally