Re: [Dhis2-devs] calculating totals in custom designed form

2018-06-26 Thread moses mwale
Thanks Big man, let me try that.

On Tue, Jun 26, 2018 at 10:40 PM, Barnabas Akumba 
wrote:

> Hello Moses,
> Create an indicator of type Totals and use the formula for the summation
> of the 3 data elements as the numerator of the indicator.  Assign the
> indicator to the Dataset.
> In the Custom form design page, place the Total on the page design. It'll
> now be calculating the totals on the fly as data is entered.
>
> Regards
>
>
> On Tue, Jun 26, 2018, 9:32 PM moses mwale  wrote:
>
>> Hello people i need to show totals in the custom form datasets of 3 data
>> elements ART month 1, 2 and 3. So another column will be for total, but how
>> do i calculate the total of these data elements as the data is being
>> captured?
>>
>> developer_lusaka_systems
>> ___
>> 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
>>
>


-- 
developer_lusaka_systems
___
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


[Dhis2-devs] calculating totals in custom designed form

2018-06-26 Thread moses mwale
Hello people i need to show totals in the custom form datasets of 3 data
elements ART month 1, 2 and 3. So another column will be for total, but how
do i calculate the total of these data elements as the data is being
captured?

developer_lusaka_systems
___
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


Re: [Dhis2-devs] POST calls are not working in SystemSettings API - DHIS2 2.29

2018-06-26 Thread Kumar Shahdeo
Thanks David !!

On Tue, Jun 26, 2018 at 7:17 PM David Huser  wrote:

> Hi Gaurav,
>
> According to 2.29 upgrade notes ,
> custom systemSettings keys are not supported anymore but the dataStore API
> should behave similarly.
>
> Regards,
> David
>
> On Tue, Jun 26, 2018 at 9:20 AM Kumar Shahdeo 
> wrote:
>
>> Hi All,
>>
>> We are using DHIS2 2.29.
>> When we made systemSettings 
>> (https:///api/systemSettings?key=MY_KEY)
>> GET call the response is as below
>> {"MY_KEY": {
>> "MyKeyInfo": [
>> "val1",
>> "val2"
>> ]
>> }
>> }
>> We were trying to make POST call to update the value for key "MY_KEY" as
>> below
>> url: https:///api/systemSettings
>> Content-Type: "application/json"
>> body:
>> {
>> "MY_KEY": {
>> "MyKeyInfo": [
>> "val1",
>> ]
>> }
>> }
>> We recieved response with error message as
>> {
>> "httpStatus": "Conflict",
>> "httpStatusCode": 409,
>> "status": "ERROR",
>> "message": "Key(s) is not supported: MY_KEY"
>> }
>> Also, we have tried making POST calls with 
>> https:///api/systemSettings/MY_KEY
>> with values as a part of body in json format. We got the same error
>> response.
>>
>> We are able to make POST call for DHIS key(s) listed in the DHIS2.29
>> documentation, However POST calls with our keys are failing.
>> Could you please help us to resolve this issue.
>>
>> Regards
>> Gaurav & Raaji
>> ___
>> 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
>>
>
>
> --
>
>
> *David Huser*
> DHIS2 Support Specialist
> dhu...@baosystems.com | https://baosystems.com |  2900 K Street, Suite
> 507, Washington D.C. 20007
>


-- 
Kumar Gaurav Nath Shahdeo
Developer
Email gaura...@thoughtworks.com
Telephone +91 9160688935 
[image: ThoughtWorks]

___
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


Re: [Dhis2-devs] POST calls are not working in SystemSettings API - DHIS2 2.29

2018-06-26 Thread David Huser
Hi Gaurav,

According to 2.29 upgrade notes , custom
systemSettings keys are not supported anymore but the dataStore API should
behave similarly.

Regards,
David

On Tue, Jun 26, 2018 at 9:20 AM Kumar Shahdeo 
wrote:

> Hi All,
>
> We are using DHIS2 2.29.
> When we made systemSettings (https:///api/systemSettings?key=MY_KEY)
> GET call the response is as below
> {"MY_KEY": {
> "MyKeyInfo": [
> "val1",
> "val2"
> ]
> }
> }
> We were trying to make POST call to update the value for key "MY_KEY" as
> below
> url: https:///api/systemSettings
> Content-Type: "application/json"
> body:
> {
> "MY_KEY": {
> "MyKeyInfo": [
> "val1",
> ]
> }
> }
> We recieved response with error message as
> {
> "httpStatus": "Conflict",
> "httpStatusCode": 409,
> "status": "ERROR",
> "message": "Key(s) is not supported: MY_KEY"
> }
> Also, we have tried making POST calls with 
> https:///api/systemSettings/MY_KEY
> with values as a part of body in json format. We got the same error
> response.
>
> We are able to make POST call for DHIS key(s) listed in the DHIS2.29
> documentation, However POST calls with our keys are failing.
> Could you please help us to resolve this issue.
>
> Regards
> Gaurav & Raaji
> ___
> 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
>


-- 


*David Huser*
DHIS2 Support Specialist
dhu...@baosystems.com | https://baosystems.com |  2900 K Street, Suite 507,
Washington D.C. 20007
___
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


[Dhis2-devs] Script Not Loading For Pivot Table Plugin V28

2018-06-26 Thread Sourabh Bhardwaj
Hi All,

I am trying to Embed Pivot table from Pivot Plugin, however the only source
required 'reportTable.js'  is not loading:

(https://dhis2-cdn.org/v228/plugin/reporttable.js)
*giving the page is currently offline *

I am following the reference:
https://docs.dhis2.org/master/en/developer/html/dhis2_developer_manual_full.html#webapi_pivot_table_plugin

Is there any alternative available to 'reportTable' for version 28. If
someone having 'reportTable.js' available  offline , Please share.

Thanks in advance!
Sourabh Bhardwaj
HISP India
___
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


[Dhis2-devs] POST calls are not working in SystemSettings API - DHIS2 2.29

2018-06-26 Thread Kumar Shahdeo
Hi All,

We are using DHIS2 2.29.
When we made systemSettings (https:///api/systemSettings?key=MY_KEY)
GET call the response is as below
{"MY_KEY": {
"MyKeyInfo": [
"val1",
"val2"
]
}
}
We were trying to make POST call to update the value for key "MY_KEY" as
below
url: https:///api/systemSettings
Content-Type: "application/json"
body:
{
"MY_KEY": {
"MyKeyInfo": [
"val1",
]
}
}
We recieved response with error message as
{
"httpStatus": "Conflict",
"httpStatusCode": 409,
"status": "ERROR",
"message": "Key(s) is not supported: MY_KEY"
}
Also, we have tried making POST calls with
https:///api/systemSettings/MY_KEY
with values as a part of body in json format. We got the same error
response.

We are able to make POST call for DHIS key(s) listed in the DHIS2.29
documentation, However POST calls with our keys are failing.
Could you please help us to resolve this issue.

Regards
Gaurav & Raaji
___
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