Report webpart and filters

LabKey Support Forum (Inactive)
Report webpart and filters Ben Bimber  2011-05-09 06:48
Status: Closed
 
Pre-11.1, we had a custom view that loaded a report webpart. The page loaded an R report that makes a bar graph of a table. In the past, i was able to pass filters to this R report in the partConfig object. Is something like this still possible? Below is the code:

            var config = {
                partName: 'Report',
                renderTo: 'colonyPopulationChange',
                partConfig: {
                    title: 'Population Change',
                    schemaName: 'study',
                    showSection: 'barchart&tsvfile',
                    reportId : 'module:ehr/schemas/study/colonyPopulationChange/Bar Chart.r',
                    'query.queryName': 'colonyPopulationChange',
//NOTE: the only reason I include 3 variants is b/c throughout the past couple versions, each of these names was the supported syntax at one point
//at this point none seem to work
                    '_union.species~neq': 'Unknown',
                    '_select.species~neq': 'Unknown',
                    'query.species~neq': 'Unknown'
                },
                errorCallback: EHR.utils.onError
                //,scope: this
            };

            new LABKEY.WebPart(config).render();

the page is here:

https://xnight.primate.wisc.edu:8443/labkey/ehr/WNPRC/EHR/populationOverview.view?

What is the supported name/syntax for applying filters on the URL for a report?

thanks.
 
 
jeckels responded:  2011-05-09 14:29
Hi Ben,

Try using the query's name, 'colonyPopulationChange'. There were a few cases where the query (and therefore data region name) were being incorrectly set to _select behind the scenes, which you observed in the query browser. This scenario may have been affected by the fix as well.

Thanks,
Josh