← Back to team overview

dhis2-devs team mailing list archive

Re: [Dhis2-users] Help needed: Checking a string with single quote in program rule...

 

Hi MSP

I am not sure how to rectify the problem directly, but several easy
solutions would be to simply reword the response to: 'Unsure', 'unknown',
'not known' or similar.

Kind regards,
Terence

Terence Scott

Global Alliance for Rabies Control (GARC)
Pan-African Rabies Control Network (PARACON) Steering Committee
terence.scott@xxxxxxxxxxxxxxxxxx
https://paracon.rabiesalliance.org
Skype: tpscott1987



On Tue, Oct 30, 2018 at 10:26 PM M.Selvaraaj Prabu <msp.cbe@xxxxxxxxx>
wrote:

> Hi all.
>
> Kindly assist me to resolve this issue.
>
> I want to check a single quoted string in a program rule such as "variable
> == 'Don't know'". I tried using two single quotes (Don''t know) and escaped
> with a backward slash (Don\'t know) but it doesn't work.
>
> Any suggestions? Your help is very much appreciated.
>
> Thanks and regards.
>
> MSP
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>

Follow ups

References