Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Everyone!
I have the below function that loops through the selection objects and gets the field selected and sets it to a global variable:
var fullFields;
function getFilterSelections() {
var app = qlik.currApp();
var getFields = app.getList("SelectionObject", function(reply){
$.each(reply.qSelectionObject.qSelections, function(key, value) {
fullFields += value.qField;
});
});
};
The function above sets the fullFields variable to the field selected by the user to be used in further functions.
Hi Yassin,
fullFields is not a globla variable. Try this:
var filters = getFilterSelections(appid, config);
I recommend you Google how to call variables from other functions in JS.
Juan
Hi Yassin,
fullFields is not a globla variable. Try this:
var filters = getFilterSelections(appid, config);
I recommend you Google how to call variables from other functions in JS.
Juan
Thanks for your reply Juan, I have now edited the above code and it works accordingly. It is now i guess more of an informational thread rather than a question.
Please mark the thread as helpful/answered.
Regards,
Juan