LABKEY.Filter.Types and isTableWise attribute

LabKey Support Forum (Inactive)
LABKEY.Filter.Types and isTableWise attribute slangley  2017-03-02 11:54
Status: Closed
 
We have some JavaScript code that attempts to create a LABKEY.Filter using our own FilterType that we create on the fly in our code.

This broke with LabKey 16.3 because now a FilterType is supposed to define a function:

  (boolean) isTableWise()

This was the SVN revision:
 47010 n.arnold on 10/19/16 at 9:10 AM Filter: Table/Query-wise search operator

So what is meant by a "wise table"? And what's the consequence of returning true or false?

Thanks.

Scott
 
 
Jon (LabKey DevOps) responded:  2017-03-07 01:05
Hi Scott,

Looking at the code, it actually appears that it focuses on whether the search functionality searches across all columns or not.

So if you return TRUE, it allows it to search across all columns, otherwise a FALSE limits the search to only one specific column you designate.

Regards,

Jon
 
Nick Kerr responded:  2017-03-07 09:52
Hi Scott,

Yes, Jon is correct. Up until 16.3 all of our filtering operations were "column-wise", meaning they were associated with a specific column on which to perform the operation. In 16.3 we introduced a couple of new filters that operated on a table rather then a column, these are "table-wise".

I assume your self-defined types are "column-wise" so you can return false for isTableWise().

Thanks,
Nick
 
slangley responded:  2017-03-07 10:07
Thanks for the info.

Scott