← Back to team overview

dhis2-devs team mailing list archive

Re: charts through API - filter by filters...

 

Great, thanks.

Olav


> 19. sep. 2016 kl. 13.33 skrev Morten Olav Hansen <morten@xxxxxxxxx>:
> 
> Hi Olav
> 
> This should now be working properly in 224 and master
> 
> https://play.dhis2.org/dev/api/charts.json?fields=id,displayName,filterDimensions&filter=filterDimensions:in:[pe] <https://play.dhis2.org/dev/api/charts.json?fields=id,displayName,filterDimensions&filter=filterDimensions:in:[pe]>
> https://play.dhis2.org/demo/api/charts.json?fields=id,displayName,filterDimensions&filter=filterDimensions:in:[pe] <https://play.dhis2.org/demo/api/charts.json?fields=id,displayName,filterDimensions&filter=filterDimensions:in:[pe]>
> 
> -- 
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org <http://www.dhis2.org/>
> On Fri, Sep 16, 2016 at 1:39 PM, Morten Olav Hansen <morten@xxxxxxxxx <mailto:morten@xxxxxxxxx>> wrote:
> Actually, it's the same bug.. I assume you tried on /demo ? or 224, CI hasn't build it yet.. I have started it now, so in about 30 min there should be a new war file to test
> 
> That said.. the filtering doesn't actually work for these kinds of arrays, I will look into it
> 
> -- 
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org <http://www.dhis2.org/>
> On Fri, Sep 16, 2016 at 1:31 PM, Morten Olav Hansen <morten@xxxxxxxxx <mailto:morten@xxxxxxxxx>> wrote:
> Hm sounds like a bug, but different but. Let me have a look.
> 
> 
> On Friday, 16 September 2016, Olav Poppe <olav.poppe@xxxxxx <mailto:olav.poppe@xxxxxx>> wrote:
> Thanks Morten.
> 
> I tried filterDimensions (api/charts.json?filter=filterDimensions:in:[ou]), but that gives "internal server error": Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at or near ")" (see attached stacktrace).
> 
> Is this a bug again, or is my filter wrong somehow?
> 
> Olav
> 
> 
> 
> 
> -- 
> --
> Morten
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs <https://launchpad.net/~dhis2-devs>
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx <mailto:dhis2-devs@xxxxxxxxxxxxxxxxxxx>
> Unsubscribe : https://launchpad.net/~dhis2-devs <https://launchpad.net/~dhis2-devs>
> More help   : https://help.launchpad.net/ListHelp <https://help.launchpad.net/ListHelp>
> 
> 
> 


References