← Back to team overview

dhis2-devs team mailing list archive

Re: [API] Event filter "status=SCHEDULE" not working

 

Hi Lars,

Events are coming fine, that's not the problem. Problem is when I try to
filter it by "status=SCHEDULE".
So the same URL with that filter returns empty result.
[ https://play.dhis2.org/dev/api/events?trackedEntityInstance=mXAzn3hMR5a
*&status=SCHEDULE* ]

But this should not be empty since the same URL[
https://play.dhis2.org/dev/api/events?trackedEntityInstance=mXAzn3hMR5a ]
without any filter shows one event which has status=SCHEDULE.


regards
harsh

On 7 December 2015 at 18:02, Lars Helge Øverland <larshelge@xxxxxxxxx>
wrote:

> Hi Harsh,
>
> I get a bunch of events when requesting this URL now:
>
> https://play.dhis2.org/dev/api/events?trackedEntityInstance=mXAzn3hMR5a
>
> Perhaps something changed on the demo system?
>
> Lars
>
>
> On Fri, Dec 4, 2015 at 10:08 AM, Harsh Atal <harsh.atal@xxxxxxxxx> wrote:
>
>> Hi
>>
>> Am trying to get all the scheduled events through API. Have used this URL
>> -
>> [ https://play.dhis2.org/dev/api/events?status=SCHEDULE ] It's giving
>> empty result.
>>
>> If you see this URL [
>> https://play.dhis2.org/dev/api/events?trackedEntityInstance=mXAzn3hMR5a ]
>> you will see one event which has its status=SCHEDULE. PFA screenshot.
>>
>> In the documentation under events the SCHEDULE filter is not there
>> anymore. Is this filter undergoing some change??
>>
>> Few days back it was working. On demo[ https://play.dhis2.org/demo ] too
>> it is working.
>>
>> Regards
>> harsh
>>
>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org <https://www.dhis2.org>
>
>

References