Skip to main content Skip to complementary content

createList method

app.createList(qListObjectDef, callback)

Method used to define a list of field values and register a callback to receive the data.

Parameters

Name Type Description
qListObjectDef Object List definition
callback Function Callback method. Parameter will contain a qListObject.

Returns

A promise of an object model.

Tip noteFor more information regarding a promise, see http://docs.angularjs.org/api/ng.$q.

Example

app.createList({ "qDef": { "qFieldDefs": [ "LastName" ] }, "qInitialDataFetch": [{ qTop : 0, qLeft : 0, qHeight : 20, qWidth : 1 }] }, function(reply) { var str = ""; $.each(reply.qListObject.qDataPages[0].qMatrix, function(key, value) { str += '<li>' + value[0].qText + '</li>'; }); $('#list').html(str); ; });

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!