Re: [Dhis2-users] Help with a program rule

2017-08-08 Thread Georgi Chakarov
Thanks Markus, I will definitely test this! Regards, Georgi From: Markus Bekken [mailto:mar...@dhis2.org] Sent: Tuesday, August 8, 2017 5:40 PM To: Georgi Chakarov Cc: DHIS Users ; DHIS 2 Developers list Subject: Re: [Dhis2-users] Help with a program rule Hi there Georgi! Thanks for the

Re: [Dhis2-users] Help with a program rule

2017-08-08 Thread Markus Bekken
Hi there Georgi! Thanks for the feedback. It seems you got it almost right except for one little detail on the usage of the substring function. To get the fifth character you would have to change your expression to: d2:substring(A{Client ID}, 5, 6) == '2' There was an error in the doc, so a s

[Dhis2-users] Help with a program rule

2017-08-04 Thread Georgi Chakarov
Hi all (again)! :) I have a challenging task for whoever is interested. I find it quite difficult working with the functions in program rules expression, especially learning from the user manual. I am trying to execute the following rule: If the fifth character of Client ID (text attribute) is