How to save data from read only filed?/ calculative filed

Dear All,

I am creating a data entry screen which screen short is given bellow.

image

Opening Balance = Previous Month Closing Balance and Opening Balance is read only field.

How to bring Opening Balance in data entry form Previous Month

Closing Balance = Opening Balance +Receipts this Months – Distribution/Consumption

Closing Balance is read only filed.

We calculate the filed by Json but Closing Balance cannot save in dhis2.

Have Anyone work on it.

Please help on it.

Thanks

···

Regards,

Fatema Uddin

Technical Advisor (HIS)-Support to the Health Sector Program II

Deutsche Gesellschaft für Internationale Zusammenarbeit (GIZ) GmbH

German House

House 10/A-2, Road 90

Gulshan 2, Dhaka 1212, Bangladesh

T +880 9666701000

F +880 28823099

M +880 19 6206 4721

I www.giz.de

Hi Fatema,

Why don’t you just use an indicator? It will not be saved in the database, but will be calculated and available in the data entry form as well as the analytics.

Regards,

Jason

image

···

On Sun, Jun 21, 2015 at 8:14 AM, Uddin Fatema fatemacse@gmail.com wrote:

Dear All,

I am creating a data entry screen which screen short is given bellow.

Opening Balance = Previous Month Closing Balance and Opening Balance is read only field.

How to bring Opening Balance in data entry form Previous Month

Closing Balance = Opening Balance +Receipts this Months – Distribution/Consumption

Closing Balance is read only filed.

We calculate the filed by Json but Closing Balance cannot save in dhis2.

Have Anyone work on it.

Please help on it.

Thanks

Regards,

Fatema Uddin

Technical Advisor (HIS)-Support to the Health Sector Program II

Deutsche Gesellschaft für Internationale Zusammenarbeit (GIZ) GmbH

German House

House 10/A-2, Road 90

Gulshan 2, Dhaka 1212, Bangladesh

T +880 9666701000

F +880 28823099

M +880 19 6206 4721

I www.giz.de


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.pickering@gmail.com
tel:+46764147049

Thanks Jason, yes it can be good idea but what should i do with opening Balance. Any good idea?

image

···

On Sun, Jun 21, 2015 at 12:45 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Hi Fatema,

Why don’t you just use an indicator? It will not be saved in the database, but will be calculated and available in the data entry form as well as the analytics.

Regards,

Jason

On Sun, Jun 21, 2015 at 8:14 AM, Uddin Fatema fatemacse@gmail.com wrote:

Dear All,

I am creating a data entry screen which screen short is given bellow.

Opening Balance = Previous Month Closing Balance and Opening Balance is read only field.

How to bring Opening Balance in data entry form Previous Month

Closing Balance = Opening Balance +Receipts this Months – Distribution/Consumption

Closing Balance is read only filed.

We calculate the filed by Json but Closing Balance cannot save in dhis2.

Have Anyone work on it.

Please help on it.

Thanks

Regards,

Fatema Uddin

Technical Advisor (HIS)-Support to the Health Sector Program II

Deutsche Gesellschaft für Internationale Zusammenarbeit (GIZ) GmbH

German House

House 10/A-2, Road 90

Gulshan 2, Dhaka 1212, Bangladesh

T +880 9666701000

F +880 28823099

M +880 19 6206 4721

I www.giz.de


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.pickering@gmail.com
tel:+46764147049

Regards,

Fatema Uddin

Technical Advisor (HIS)-Support to the Health Sector Program II

Deutsche Gesellschaft für Internationale Zusammenarbeit (GIZ) GmbH

German House

House 10/A-2, Road 90

Gulshan 2, Dhaka 1212, Bangladesh

T +880 9666701000

F +880 28823099

M +880 19 6206 4721

I www.giz.de

Custom form to allow data from two periods in one form?

image

···

On Sun, Jun 21, 2015 at 12:45 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Hi Fatema,

Why don’t you just use an indicator? It will not be saved in the database, but will be calculated and available in the data entry form as well as the analytics.

Regards,

Jason


Regards,

Fatema Uddin

Technical Advisor (HIS)-Support to the Health Sector Program II

Deutsche Gesellschaft für Internationale Zusammenarbeit (GIZ) GmbH

German House

House 10/A-2, Road 90

Gulshan 2, Dhaka 1212, Bangladesh

T +880 9666701000

F +880 28823099

M +880 19 6206 4721

I www.giz.de

On Sun, Jun 21, 2015 at 8:14 AM, Uddin Fatema fatemacse@gmail.com wrote:

Dear All,

I am creating a data entry screen which screen short is given bellow.

Opening Balance = Previous Month Closing Balance and Opening Balance is read only field.

How to bring Opening Balance in data entry form Previous Month

Closing Balance = Opening Balance +Receipts this Months – Distribution/Consumption

Closing Balance is read only filed.

We calculate the filed by Json but Closing Balance cannot save in dhis2.

Have Anyone work on it.

Please help on it.

Thanks

Regards,

Fatema Uddin

Technical Advisor (HIS)-Support to the Health Sector Program II

Deutsche Gesellschaft für Internationale Zusammenarbeit (GIZ) GmbH

German House

House 10/A-2, Road 90

Gulshan 2, Dhaka 1212, Bangladesh

T +880 9666701000

F +880 28823099

M +880 19 6206 4721

I www.giz.de


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.pickering@gmail.com
tel:+46764147049

Yeah, that is a bit trickier, and it is not directly supported in DHIS2 at the moment. What we have done in other logistics systems with DHIS2 is to calculate (automatically) the closing balance from the previous month using a script on the server, and import this into the next month as a data element for the opening balance . That is a somewhat complex approach than just making the opening balance a normal data element and having people report it as part of the form. So, I guess it really depends on how you actually get the opening balance. Script could be used to calculate it for you, but there are many “gotchas” such as missing data, etc which need to be taken into account.

Regards,

Jason

image

···

On Sun, Jun 21, 2015 at 9:14 AM, Knut Staring knutst@gmail.com wrote:

Custom form to allow data from two periods in one form?

On Jun 21, 2015 8:07 AM, “Uddin Fatema” fatemacse@gmail.com wrote:

Thanks Jason, yes it can be good idea but what should i do with opening Balance. Any good idea?


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

On Sun, Jun 21, 2015 at 12:45 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Hi Fatema,

Why don’t you just use an indicator? It will not be saved in the database, but will be calculated and available in the data entry form as well as the analytics.

Regards,

Jason


Regards,

Fatema Uddin

Technical Advisor (HIS)-Support to the Health Sector Program II

Deutsche Gesellschaft für Internationale Zusammenarbeit (GIZ) GmbH

German House

House 10/A-2, Road 90

Gulshan 2, Dhaka 1212, Bangladesh

T +880 9666701000

F +880 28823099

M +880 19 6206 4721

I www.giz.de

On Sun, Jun 21, 2015 at 8:14 AM, Uddin Fatema fatemacse@gmail.com wrote:

Dear All,

I am creating a data entry screen which screen short is given bellow.

Opening Balance = Previous Month Closing Balance and Opening Balance is read only field.

How to bring Opening Balance in data entry form Previous Month

Closing Balance = Opening Balance +Receipts this Months – Distribution/Consumption

Closing Balance is read only filed.

We calculate the filed by Json but Closing Balance cannot save in dhis2.

Have Anyone work on it.

Please help on it.

Thanks

Regards,

Fatema Uddin

Technical Advisor (HIS)-Support to the Health Sector Program II

Deutsche Gesellschaft für Internationale Zusammenarbeit (GIZ) GmbH

German House

House 10/A-2, Road 90

Gulshan 2, Dhaka 1212, Bangladesh

T +880 9666701000

F +880 28823099

M +880 19 6206 4721

I www.giz.de


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.pickering@gmail.com
tel:+46764147049

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

Dear Fatema,

You can use the Web Api (json) to help you get the value which you then send to your opening balance field.

In the API url, the period should be set to current period - 1 (previous month).

Alex

image

···

On Sun, Jun 21, 2015 at 10:25 AM, Jason Pickering jason.p.pickering@gmail.com wrote:

Yeah, that is a bit trickier, and it is not directly supported in DHIS2 at the moment. What we have done in other logistics systems with DHIS2 is to calculate (automatically) the closing balance from the previous month using a script on the server, and import this into the next month as a data element for the opening balance . That is a somewhat complex approach than just making the opening balance a normal data element and having people report it as part of the form. So, I guess it really depends on how you actually get the opening balance. Script could be used to calculate it for you, but there are many “gotchas” such as missing data, etc which need to be taken into account.

Regards,

Jason


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

On Sun, Jun 21, 2015 at 9:14 AM, Knut Staring knutst@gmail.com wrote:

Custom form to allow data from two periods in one form?

On Jun 21, 2015 8:07 AM, “Uddin Fatema” fatemacse@gmail.com wrote:

Thanks Jason, yes it can be good idea but what should i do with opening Balance. Any good idea?


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.pickering@gmail.com
tel:+46764147049

On Sun, Jun 21, 2015 at 12:45 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Hi Fatema,

Why don’t you just use an indicator? It will not be saved in the database, but will be calculated and available in the data entry form as well as the analytics.

Regards,

Jason


Regards,

Fatema Uddin

Technical Advisor (HIS)-Support to the Health Sector Program II

Deutsche Gesellschaft für Internationale Zusammenarbeit (GIZ) GmbH

German House

House 10/A-2, Road 90

Gulshan 2, Dhaka 1212, Bangladesh

T +880 9666701000

F +880 28823099

M +880 19 6206 4721

I www.giz.de

On Sun, Jun 21, 2015 at 8:14 AM, Uddin Fatema fatemacse@gmail.com wrote:

Dear All,

I am creating a data entry screen which screen short is given bellow.

Opening Balance = Previous Month Closing Balance and Opening Balance is read only field.

How to bring Opening Balance in data entry form Previous Month

Closing Balance = Opening Balance +Receipts this Months – Distribution/Consumption

Closing Balance is read only filed.

We calculate the filed by Json but Closing Balance cannot save in dhis2.

Have Anyone work on it.

Please help on it.

Thanks

Regards,

Fatema Uddin

Technical Advisor (HIS)-Support to the Health Sector Program II

Deutsche Gesellschaft für Internationale Zusammenarbeit (GIZ) GmbH

German House

House 10/A-2, Road 90

Gulshan 2, Dhaka 1212, Bangladesh

T +880 9666701000

F +880 28823099

M +880 19 6206 4721

I www.giz.de


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.pickering@gmail.com
tel:+46764147049

Alex Tumwesigye

Technical Advisor - DHIS2 (Consultant),
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "