Re: [Dhis2-users] Complete DataSet Registration

2017-11-22 Thread Jason Pickering
This seems to work fine. I just copied the request from the data entry form
on the demo site as a curl command and modified it slightly. There are
other ways to do this as well as mentioned in the docs.  Otherwise, you
should provide the exact request you are making, the exact payload, and the
exact response from the server.

curl 'https://play.dhis2.org/demo/api/25/completeDataSetRegistrations'  \
-u admin:district \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \
-H 'Accept: application/json, text/javascript, */*; q=0.01' \
-H 'Connection: keep-alive' -H 'DNT: 1' \
--data 'ds=pBOMPrpg1QX=201712=ImspTQPwCqd=false' \
--compressed -v


On Wed, Nov 22, 2017 at 9:16 AM,  wrote:

> Hi Jason,
>  yeah, i have already read the documentation and i've tried it as well but
> still its not working. I don't know what the issue is. Kindly guide me.
> Thank You.
>
> Regards: Rabbia Naz Ali
>
>
> On 2017-11-22 12:51, Jason Pickering wrote:
>
>> Hi Rabia,
>>
>> Did you have chance to read our documentation about completing data
>> sets?
>>
>> https://docs.dhis2.org/master/en/developer/html/webapi_compl
>> ete_data_set_registrations.html#webapi_completing_data_sets
>> [4]
>>
>> Regards,
>> Jason
>>
>> On Wed, Nov 22, 2017 at 8:46 AM,  wrote:
>>
>> Aoa,
>>>
>>> i've inserted some data into database against dataset in dhis2 but
>>> it doesn't marked it as completed in "completedatasetregistration"
>>> this table of Database. I want to ask about how can i do this using
>>> API.
>>> I've tried this one
>>> "$url =
>>> "http://64.50.171.246:8080/api/26/completeDataSetRegistrations [1]
>>> period=201503 dataSet=Ep9cqvuYYKb organisationUnit=AMaQFVRNoaL
>>> storedBy=imported"
>>> but its not working as it shows the status as 'success' but not
>>> marked the data set.
>>>
>>> Your response will be appreciated.
>>> Thank You.
>>>
>>> Regards: Rabia Naz Ali
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-users [2]
>>> Post to : dhis2-users@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-users [2]
>>> More help : https://help.launchpad.net/ListHelp [3]
>>>
>>
>> --
>>
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049
>>
>> Links:
>> --
>> [1] http://64.50.171.246:8080/api/26/completeDataSetRegistrations
>> [2] https://launchpad.net/~dhis2-users
>> [3] https://help.launchpad.net/ListHelp
>> [4]
>> https://docs.dhis2.org/master/en/developer/html/webapi_compl
>> ete_data_set_registrations.html#webapi_completing_data_sets
>>
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Complete DataSet Registration

2017-11-22 Thread rabbia

Hi Jason,
 yeah, i have already read the documentation and i've tried it as well 
but still its not working. I don't know what the issue is. Kindly guide 
me.

Thank You.

Regards: Rabbia Naz Ali


On 2017-11-22 12:51, Jason Pickering wrote:

Hi Rabia,

Did you have chance to read our documentation about completing data
sets?

https://docs.dhis2.org/master/en/developer/html/webapi_complete_data_set_registrations.html#webapi_completing_data_sets
[4]

Regards,
Jason

On Wed, Nov 22, 2017 at 8:46 AM,  wrote:


Aoa,

i've inserted some data into database against dataset in dhis2 but
it doesn't marked it as completed in "completedatasetregistration"
this table of Database. I want to ask about how can i do this using
API.
I've tried this one
"$url =
"http://64.50.171.246:8080/api/26/completeDataSetRegistrations [1]
period=201503 dataSet=Ep9cqvuYYKb organisationUnit=AMaQFVRNoaL
storedBy=imported"
but its not working as it shows the status as 'success' but not
marked the data set.

Your response will be appreciated.
Thank You.

Regards: Rabia Naz Ali

___
Mailing list: https://launchpad.net/~dhis2-users [2]
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users [2]
More help : https://help.launchpad.net/ListHelp [3]


--

Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049

Links:
--
[1] http://64.50.171.246:8080/api/26/completeDataSetRegistrations
[2] https://launchpad.net/~dhis2-users
[3] https://help.launchpad.net/ListHelp
[4]
https://docs.dhis2.org/master/en/developer/html/webapi_complete_data_set_registrations.html#webapi_completing_data_sets



___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Complete DataSet Registration

2017-11-21 Thread Jason Pickering
Hi Rabia,

Did you have chance to read our documentation about completing data sets?

https://docs.dhis2.org/master/en/developer/html/webapi_complete_data_set_registrations.html#webapi_completing_data_sets

Regards,
Jason


On Wed, Nov 22, 2017 at 8:46 AM,  wrote:

> Aoa,
>
> i've inserted some data into database against dataset in dhis2 but it
> doesn't marked it as completed in "completedatasetregistration" this table
> of Database. I want to ask about how can i do this using API.
> I've tried this one
>"$url = "http://64.50.171.246:8080/api
> /26/completeDataSetRegistrations period=201503 dataSet=Ep9cqvuYYKb
> organisationUnit=AMaQFVRNoaL storedBy=imported"
> but its not working as it shows the status as 'success' but not marked the
> data set.
>
> Your response will be appreciated.
> Thank You.
>
> Regards: Rabia Naz Ali
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>



-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


[Dhis2-users] Complete DataSet Registration

2017-11-21 Thread rabbia

Aoa,

i've inserted some data into database against dataset in dhis2 but it 
doesn't marked it as completed in "completedatasetregistration" this 
table of Database. I want to ask about how can i do this using API.

I've tried this one
   "$url = 
"http://64.50.171.246:8080/api/26/completeDataSetRegistrations 
period=201503 dataSet=Ep9cqvuYYKb organisationUnit=AMaQFVRNoaL 
storedBy=imported"
but its not working as it shows the status as 'success' but not marked 
the data set.


Your response will be appreciated.
Thank You.

Regards: Rabia Naz Ali

___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp