[Dhis2-devs] Program Rule

2018-10-07 Thread Amjad Ata Allah
Dear All, I am working on DHIS2 2.30 project. I am trying to hide/show program stage depending on a user selection. I succeed to hide the program stage, but its not showing back. Also there is no errors in the console. Regards, -- Save a tree, Please don't print this email unless you really ne

Re: [Dhis2-devs] Program Rule

2018-10-07 Thread Amjad Ata Allah
wrote: > Hello Amjad M. Ata-Allah , Kindly share the condition expression for the > program rule. > > regards > > On Sun, Oct 7, 2018 at 10:15 PM Amjad Ata Allah > wrote: > >> Dear All, >> >> I am working on DHIS2 2.30 project. >> I am trying to h

Re: [Dhis2-devs] Program Rule

2018-10-08 Thread Amjad Ata-Allah
okt. 2018, 6:50 a.m. skrev Amjad Ata Allah > : >> Hi Stephen >> Here is the condition expression: >> #{aDiagnose} != 'Meningitis - Other Bacterial' || #{aDiagnose} != >> 'Meningitis - Hemophillus Influenza' || #{aDiagnose} != 'Meningitis - >

Re: [Dhis2-devs] Program Rule

2018-10-08 Thread Amjad Ata Allah
the OR > > Try using AND > #{aDiagnose} != 'Meningitis - Other Bacterial' && #{aDiagnose} != > 'Meningitis - Hemophillus Influenza' && #{aDiagnose} != 'Meningitis - > Meningococcal Meningitis' > > Meaning : when aDiagnosis is NOT diag

Re: [Dhis2-devs] Program Rule

2018-10-08 Thread Amjad Ata Allah
ind of error, it often results in other program rules not > executing. > > In any case, you cannot combine OR and NOT the way you do - then the > expression is always true. > > Regards > Calle > > On Mon, 8 Oct 2018 at 13:37, Amjad Ata Allah > wrote: > >> Dea

Re: [Dhis2-devs] Program Rule

2018-10-08 Thread Amjad Ata-Allah
> > Seems like you have what you want? > > Regards > Calle > >> On Mon, 8 Oct 2018 at 21:26, Amjad Ata Allah >> wrote: >> Thanks Calle >> >> I replaced the OR with AND. >> I added another action to the rule "Show warning message&quo

Re: [Dhis2-devs] Program Rule

2018-10-08 Thread Amjad Ata Allah
is taken. > > maybe it's a refresh thing - have you tried to refresh the page? > > And does the stage appear if you remove the hide program stage action from > the Prog Rule? > > Regards > calle > > On Mon, 8 Oct 2018 at 22:08, Amjad Ata-Allah > wrote: > >> Ca