I am building an app to be able to compare different applications (maybe one day it will become an appstore (used internally) but for now it’s definitely a catalog).
Basically you can turn on/off checkboxes and a table will be updated with a summary of corresponding applications. What happens in the background is that I perform a FT search, check which documents match the selected items (fieldnames, values = ‘Yes’) and return a collection of documents.
Works great with one group of checkboxes, untill I thought to organize them into several groups (security, document management, messaging etcetera).
I use the getComponent(fieldname).getValue() function. This works fine, but I wonder what it returns actually. I assume an array.
However if I try to merch/join two result arrays via the concat() method it throws up an error.
My code looks like this:
var selectedFilter1 = getComponent(“checkboxgroup1”).getValue();
var selectedFilter2 = getComponent(“checkboxgroup1”).getValue();
var selectedFilter = selectedFilter1.concat(selectedFilter2);
What am I doing wrong? Thanks in advance, your help is much appreciated!