Looks like a bug in the 'Export' via JavaScript functionality of a LabKey's table

LabKey Support Forum (Inactive)
Looks like a bug in the 'Export' via JavaScript functionality of a LabKey's table Leo Dashevskiy  2014-08-01 13:58
Status: Closed
 
Steps to reproduce:

1. Open any table in the schema browser
2. Click 'VIEWS' -> 'Folder Filter' -> 'Current folder'
3. After page reload, click 'EXPORT' -> 'Script' -> 'JavaScript' -> 'CREATE SCRIPT'

The generated JS code within the LABKEY.Query.selectRows() call has the following config line:

containerFilter: 'Current,

It causes an error, you guys know better, what it actually should be ('Current'?).

Thanks.

Revision: 33495
 
 
jeckels responded:  2014-08-04 10:30
Hi Leo,

Yes, it's missing the closing single quote. I've opened a bug for this:

https://www.labkey.org/issues/home/Developer/issues/details.view?issueId=21242

Thanks,
Josh
 
Leo Dashevskiy responded:  2014-08-04 12:03
Josh, you don't mention it in the bug report, but you must click on one of the views, for that line to be included, otherwise, by default, it does not show up, which probably explains, why this has not come up before (and the functionality has been available for quite some time, if I understand correctly).
 
jeckels responded:  2014-08-04 13:03
Hi Leo,

Thanks for pointing that out. The view I happened to pull up already had a custom folder/container filter set, so I forgot to include it as a separate step.

Thanks,
Josh