Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Mashups API - Get Field Values

Hi,

I have a field in an application, Country... the docs suggest that I can get its values using the following code:

app.createList({

                qDef: {

                    qFieldDefs: 'Country'

                },

                qInitialDataFetch: [{ qTop: 0, qLeft: 0, qHeight: 100, qWidth: 1 }]

            }, function (r) {

                console.log(r);

});

However, this gives me the 2 fields in the app (Country and Population), rather than values for the country field, such as Germany, Sweden, Belgium etc...

I'm a bit confused - can anybody help me please?

Thanks,

shane.

1 Solution

Accepted Solutions
Not applicable
Author

My silly mistake - I didn't have quotes around the parameters! (qDef, qInitialDataFetch)

app.createList({

"qDef": {

    "qFieldDefs": [

        "Country"

    ]

},

"qInitialDataFetch": [{

        qTop : 0,

        qLeft : 0,

        qHeight : 2000,

        qWidth : 1

    }]

}, function(reply) {

   

});

View solution in original post

1 Reply
Not applicable
Author

My silly mistake - I didn't have quotes around the parameters! (qDef, qInitialDataFetch)

app.createList({

"qDef": {

    "qFieldDefs": [

        "Country"

    ]

},

"qInitialDataFetch": [{

        qTop : 0,

        qLeft : 0,

        qHeight : 2000,

        qWidth : 1

    }]

}, function(reply) {

   

});