Re: [Dhis2-devs] Facing issues creating programs using /metadata api

2014-07-03 Thread Morten Olav Hansen
Hi, If you are using /api/programs and sending one new program (POST), it should have a post create task that will _also_ create the program instance. As I said in the email, this will not work for /api/metadata, this is not fixed yet. Did you try this? this is not working? Other than for importi

Re: [Dhis2-devs] Facing issues creating programs using /metadata api

2014-07-03 Thread Mansi Singhal
Hello Morten, We had a look into /api/programs api. It seems it is just creating 'ProgramInstance' and not a 'Program' . Does this mean that We need to create a program using '/api/metadata' api and then create the associated programInstance object using '/api/programs' api? We tried creating Pr

Re: [Dhis2-devs] Facing issues creating programs using /metadata api

2014-07-03 Thread Morten Olav Hansen
Hi guys Could you please try again with rev 15953, it should create the programinstance now when you use the /api/programs endpoint. If you have time to try it out, please do. We are looking into doing a more proper fix for this that will also work on /api/metadata, but for now, please use /api/p

Re: [Dhis2-devs] Facing issues creating programs using /metadata api

2014-07-01 Thread Morten Olav Hansen
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 shou

[Dhis2-devs] Facing issues creating programs using /metadata api

2014-07-01 Thread Mansi Singhal
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