NSOA.listview.list()

Use this function to read the list of published list views available from the OpenAir OData service. Returns the list of published list views.

Note:

The Business Intelligence Connector feature must be enabled for your account to use NSOA.listview and NSOA.report functions. The Business Intelligence Connector feature is a licensed add-on. To enable this feature, contact your OpenAir account manager.

For more information about publishing list views and reports to the OpenAir OData service, see Business Intelligence Connector.

Parameters

N/A

Returns

Units Limit

Since

Example

          // get the list of published listviews
var listviews = NSOA.listview.list();

// each item in the list has following properties
//  * 'ID'
//  * 'Name'
//  * 'Last_published'

// loop through all published listviews and find given listview ID
var i;
var listviewId;
for (i = 0; i < listviews.length; i++) {
    if (listviews[i].Name === 'My Approved Bookings') {
        listviewId = listviews[i].ID;
        break;
    }
}

// if listview ID was found get its data
if (listviewId > 0) {
    var rows = NSOA.listview.data(listviewId);

    // process all listview rows
}