Hi!
I have created a report which uses a relative reporting period.
From the api description, I get the period from dhis2.report.periods[0] which gives me a period identifier, like 2015Oct (for financial year October 2015 - September 2016).
I want to be able to display the descriptive period name on the report like Data Approval Status for Period October 2015 to September 2016, how I achieve that because currently I can only display the period identifier like 2015Oct?
Thank you in advance!
···
:: Sovello Hildebrand Mgani ::
–If you teach man to fish, you’ll feed him a lifetime–
I suppose you would have to parse 2015Oct with Javascript and then transform it to your desired output.
Knut
···
On Thu, Mar 30, 2017 at 9:18 AM, Sovello Hildebrand Mgani sovellohpmgani@gmail.com wrote:
Hi!
I have created a report which uses a relative reporting period.
From the api description, I get the period from dhis2.report.periods[0] which gives me a period identifier, like 2015Oct (for financial year October 2015 - September 2016).
I want to be able to display the descriptive period name on the report like Data Approval Status for Period October 2015 to September 2016, how I achieve that because currently I can only display the period identifier like 2015Oct?
Thank you in advance!
:: Sovello Hildebrand Mgani ::
–If you teach man to fish, you’ll feed him a lifetime–
–
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
–
Knut Staring
Dept. of Informatics, University of Oslo
Norway: +4791880522
Skype: knutstar
http://dhis2.org
Thanks Knut for the pointer.
I had thought of this but then there came the challenge: these variables can be changed anytime from financial to calendar year from monthly to quarterly and that’s why I though I may need a more dynamic way of fetching the descriptive period.
Cheers
···
On Mar 30, 2017 16:39, “Knut Staring” knutst@gmail.com wrote:
I suppose you would have to parse 2015Oct with Javascript and then transform it to your desired output.
Knut
On Thu, Mar 30, 2017 at 9:18 AM, Sovello Hildebrand Mgani sovellohpmgani@gmail.com wrote:
Hi!
I have created a report which uses a relative reporting period.
From the api description, I get the period from dhis2.report.periods[0] which gives me a period identifier, like 2015Oct (for financial year October 2015 - September 2016).
I want to be able to display the descriptive period name on the report like Data Approval Status for Period October 2015 to September 2016, how I achieve that because currently I can only display the period identifier like 2015Oct?
Thank you in advance!
:: Sovello Hildebrand Mgani ::
–If you teach man to fish, you’ll feed him a lifetime–
–
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
–
Knut Staring
Dept. of Informatics, University of Oslo
Norway: +4791880522
Skype: knutstar
http://dhis2.org