Hi

Yes, this should be considered a bug. It's a bit weird, but when you create
a new non-registration program, it actually enrolls a "hidden" tracked
entity instance to that program, so just creating a new program meta-data
is not enough to start doing data-entry. For registration program, it
should be ok, you just enroll a tracked entity instance into it.

I will try and fix it before release, it will need a bit of special handlng
for non-registration programs.

--
Morten


On Tue, Jul 1, 2014 at 3:10 PM, Mansi Singhal <msing...@thoughtworks.com>
wrote:

> Hello,
>
> We created  "Program" using "/metadata" api.
>
> Problem we faced:  On "Event Capture Screen", when we try to create new
> event, we get error : *"No active event exists for single event no
> registration program"*
>
> When we tried looking into issue, it seems that When we create a program
> from dhis screen(without using api), another object called
> "programInstance" is created for a program.
>
> But that never happens when we use "/metadata" api to create program.
>
> We tried looking into "/programs" api to create a program so that it takes
> care of creating "programInstance" object for the program. But it seems
> there is no such api.
>
> Just want to confirm 'if you are planning to write that api' or 'do you
> want us to write the same'.
> --
> Thanks,
> Mansi Singhal
>
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to