DataGrid's Apply view filter behavior

LabKey Support Forum (Inactive)
DataGrid's Apply view filter behavior Anthony Corbett  2013-02-28 10:48
Status: Closed
 
I'm using Labkey 12.3 and I've noticed confusing behavior for the 'Apply View Filter' option under the DataGrid's view menu.

1. Switching between views:

I'm wondering if the 'Apply View Filter' is meant to be a per view option or if it is a global or query option. Current behavior is that if you uncheck 'Apply View Filter' on a view, View A, then switch to another view, View B, that also has view filters then View B's filters will be ignored also. Should 'Apply View Filter' be reset when switching between views?

2. Exporting Data with 'Apply View Filter' un-checked:

When exporting data from a view that has saved filters, but the 'Apply View Filter' un-checked, is behaving as if the filter was still applied.

Example:
 Total rows in assay result: 267
 DataGrid rows with 'Apply View Filter' checked: 239
 Exported rows with 'Apply View Filter' checked: 239
 DataGrid rows with 'Apply View Filter' un-checked: 267
 Exported rows with 'Apply View Filter' un-checked: 239 <-- Should this be all 267 rows that are present in the DataGrid?


Thanks,

Anthony Corbett
 
 
kevink responded:  2013-02-28 12:56
The "Apply View Filter" menu item can be confusing. We've discussed removing it completely, but haven't gotten around to it. I've used it only occasionally.

(1) I think your suggestion makes sense. We have a similar issue with URL filters when changing views:

https://www.labkey.org/issues/home/Developer/issues/details.view?issueId=11355&_docid=issue%3A11355

(2) That sounds like a bug. We should export the data with the view's filters not applied. I've filed a new bug for this:

https://www.labkey.org/issues/home/Developer/issues/details.view?issueId=17313
 
kevink responded:  2013-03-14 20:05
Issue 17313 should be fixed on trunk now.