Hi Simon. The expression below seems all correct. Tested the same in 2.27 snapshot and it works. Which version are you on? Do you have other rules working for the same variable A{index_id}?
Markus > 12. mai 2017 kl. 09.28 skrev simon mugisa <nomisrmug...@gmail.com>: > > Hi there evryone, > > has anybody out there been succesful with the d2:validatePattern pattern > program rule, > i impliment it by: !d2:validatePattern(A{index_id} ,'\\d{6}\/\\d{2}\/\\d') > which i coppied from the dhis2 user guide and added my own A{} but i get this > error: > d2:validatePattern was called with the incorrect number of parameters > > my question is how many parameters are required. if they are two can someone > give the right format for this. > > > Simon Robert Kununka > DHIS2 implimentor, Analyst and Consultant > > Uganda-Kampala > Direct: + <tel:%2B1-703-667-3954>256-777-108-323 > E-mail: nomisrmug...@gmail.com <mailto:nomisrmug...@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-users > Post to : dhis2-us...@lists.launchpad.net > Unsubscribe : https://launchpad.net/~dhis2-users > More help : https://help.launchpad.net/ListHelp
_______________________________________________ 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