LUA objects

To interact with Nios4 through scripts, a set of programming objects with specific functions has been created. These objects may not be available in every script, since they depend on the script’s scope. To see which ones you can use, always refer to the list shown in the editor.

Program

Provides methods and functions to interact directly with Nios4.

Output

Manages the script editor console.

Dataview

Represents a data form.

Dataform

An input window used to collect information from the user.

Datatable

A set of datarow objects that make up a data table.

Datafield

Represents a data field on the form.

Datarow

Represents a row of data belonging to a datatable or a tableview

Tableview

Represents a data grid.

Database

Provides all the main functions and methods to interact directly with the currently open database.

Utility

Contains various general-purpose utility functions and methods.

Xmldocument

Lets you create and manage an XML file.

Xmlelement

Manages an XML element linked to an xmldocument.

Xmlattribute

Manages an attribute element linked to an xmlelement.

Errorn

Handles the errors returned by scripts.

Fileinfo

Gives access to the characteristics of a file.

Document

Lets you generate printouts directly from scripts.

Email

Sends a plain-text email through an SMTP server

Notification

Creates and manages the program’s notifications

Subscript

Loads and manages a script inside another one so it can be run multiple times