Dear Developers,
Does anybody know how to reference the current date for comparison using the d2:daysBetween function etc.
regards,
···
Simon Robert Kununka
DHIS2 implementor, Systems Analyst and Development Consultant
Uganda-Kampala
Direct: +256-777-108-323
E-mail: nomisrmugisa@gmail.com
“Don’t wish it was easier, wish you were better. Don’t wish for less problems, wish for more skills. Don’t wish for less change , wish for more wisdom.”
This message and its attachments are confidential and solely for the intended recipients. If received in error, please delete them and notify the sender via reply e-mail immediately.
Hi Simon,
Take a look at this table:
https://docs.dhis2.org/master/en/user/html/configure_program_rule.html#d0e30437
These are some standard variables you can use in the program rules expression. Including V{current_date} and an example using the d2:daysBetween function.
Best,
Edouard
···
2018-03-24 10:13 GMT+02:00 simon mugisa nomisrmugisa@gmail.com:
Dear Developers,
Does anybody know how to reference the current date for comparison using the d2:daysBetween function etc.
regards,
Simon Robert Kununka
DHIS2 implementor, Systems Analyst and Development Consultant
Uganda-Kampala
Direct: +256-777-108-323
E-mail: nomisrmugisa@gmail.com
“Don’t wish it was easier, wish you were better. Don’t wish for less problems, wish for more skills. Don’t wish for less change , wish for more wisdom.”
This message and its attachments are confidential and solely for the intended recipients. If received in error, please delete them and notify the sender via reply e-mail immediately.
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
–
Edouard Lavaud,
MSc in Health Policy, Planning & Financing
MEng in Telecommunication
University Diploma in ICT for Health
Email: edouard.lavaud@gmail.com
Mobile: 0033 6 7210 23 59
Thanks Eduardo,
I noticed this actually, however when I used this in the programe rule definition it seemed to choke the system.
will give it a go again and will update you on the server logs.
regards,
···
On Sat, Mar 24, 2018 at 12:48 PM, Edouard Lavaud edouard.lavaud@gmail.com wrote:
Hi Simon,
Take a look at this table:
https://docs.dhis2.org/master/en/user/html/configure_program_rule.html#d0e30437
These are some standard variables you can use in the program rules expression. Including V{current_date} and an example using the d2:daysBetween function.
Best,
Edouard
Simon Robert Kununka
DHIS2 implementor, Systems Analyst and Development Consultant
Uganda-Kampala
Direct: +256-777-108-323
E-mail: nomisrmugisa@gmail.com
“Don’t wish it was easier, wish you were better. Don’t wish for less problems, wish for more skills. Don’t wish for less change , wish for more wisdom.”
This message and its attachments are confidential and solely for the intended recipients. If received in error, please delete them and notify the sender via reply e-mail immediately.
2018-03-24 10:13 GMT+02:00 simon mugisa nomisrmugisa@gmail.com:
Dear Developers,
Does anybody know how to reference the current date for comparison using the d2:daysBetween function etc.
regards,
Simon Robert Kununka
DHIS2 implementor, Systems Analyst and Development Consultant
Uganda-Kampala
Direct: +256-777-108-323
E-mail: nomisrmugisa@gmail.com
“Don’t wish it was easier, wish you were better. Don’t wish for less problems, wish for more skills. Don’t wish for less change , wish for more wisdom.”
This message and its attachments are confidential and solely for the intended recipients. If received in error, please delete them and notify the sender via reply e-mail immediately.
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
Edouard Lavaud,
MSc in Health Policy, Planning & Financing
MEng in Telecommunication
University Diploma in ICT for Health
Email: edouard.lavaud@gmail.com
Mobile: 0033 6 7210 23 59
–