Re: [Dhis2-devs] Program Rule

2018-10-08 Thread Amjad Ata Allah
Calle

Yes, i did a refresh and a hard refresh and even more i deleted all the
browser cache :D
Yes, the stage appear if i remove the hide program stage rule.

Regards,

On Mon, Oct 8, 2018 at 11:18 PM Calle Hedberg 
wrote:

> Hi
>
> agree - if the expression is false, no action 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:
>
>> Calle
>>
>> Yes, but the programe stage should appear when the expression is false,
>> which is not happening. Even the warning message disappear when the
>> expression is false.
>>
>> Sent from my iPhone
>>
>> On Oct 8, 2018, at 11:03 PM, Calle Hedberg 
>> wrote:
>>
>> Hi
>>
>> If the warning message appear when the dagnosis value is something else
>> than meninges, then it means the expression correctly evaluated to TRUE.
>>  So the expression is correct.
>>
>> And the other action if expression is true, is to hide the meninges
>> stage, yes? and that stage correctly does not appear?
>>
>> 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" for testing,
>>> and now the warning message appears but the program stage don't.
>>> So the issue is with the program stage.
>>>
>>> Any suggestions?
>>>
>>> Regards,
>>>
>>> On Mon, Oct 8, 2018 at 2:41 PM Calle Hedberg 
>>> wrote:
>>>
 Amjad,

 That error is a data-related error (I had something similar last week,
 and tracked it down to one single orgunit that had an erroneous attribute
 value - but in your case the data error might be somewhere else, no idea
 where). If you get that kind 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:

> Dear Calle,
>
> The case is that i have like 20 diagnosis, i need to hide the stage if
> the diagnose is not one of those 3 diagnosis and show the stage if its one
> of them.
>
> I also tried the &&, but didn't work also.
>
> After clearing the cache, i have this error:
> TypeError: Cannot read property 'id' of undefined
> at dataentry-controller.js:405
> at Object.r [as forEach] (angular.js:331)
> at processRuleEffect (dataentry-controller.js:298)
> at dataentry-controller.js:201
> at n.$broadcast (angular.js:14785)
> at dhis2.angular.services.js:2873
> at angular.js:13248
> at n.$eval (angular.js:14466)
> at n.$digest (angular.js:14282)
> at n.$apply (angular.js:14571)
>
> Regards,
>
> On Mon, Oct 8, 2018 at 1:27 PM Calle Hedberg 
> wrote:
>
>> Hi
>>
>> You only use the code if that has been specified in the option set
>> (tick-box).
>>
>> Secondly, you are using OR and NOT in your expression:
>>
>> #{aDiagnose} != 'Meningitis - Other Bacterial' || #{aDiagnose} !=
>> 'Meningitis - Hemophillus Influenza' || #{aDiagnose} != 'Meningitis -
>> Meningococcal Meningitis'
>>
>> Basically that means the expression will always return true, at least
>> if aDiagnose is a single value diagnosis field. Even if you select let us
>> say "Meningitis - Mengingococcal Meningitis" as the aDiagnosis value, the
>> three other components in the expression will be true so the total is 
>> true
>> due to the OR
>>
>> Try using AND
>> #{aDiagnose} != 'Meningitis - Other Bacterial' && #{aDiagnose} !=
>> 'Meningitis - Hemophillus Influenza' && #{aDiagnose} != 'Meningitis -
>> Meningococcal Meningitis'
>>
>> Meaning : when aDiagnosis is NOT diag1 AND not diag2 AND NOT diag3
>> then hide stage X
>>
>> Regards
>> Calle
>>
>>
>> Regards
>> Calle
>>
>> On Mon, 8 Oct 2018 at 09:11, Amjad Ata-Allah <
>> ataallah.am...@gmail.com> wrote:
>>
>>> Dear Zubair,
>>>
>>> Yes it is, and i tried both (name and code).
>>>
>>> Regards,
>>>
>>> Sent from my iPhone
>>>
>>> On Oct 8, 2018, at 9:47 AM, Zubair Asghar Raja 
>>> wrote:
>>>
>>> Hi Amjad
>>> Is aDiagnose an option set? If it is then try using code instead of
>>> name.
>>>
>>>
>>> Zubair
>>>
>>> Den man. 8. okt. 2018, 6:50 a.m. skrev Amjad Ata Allah <
>>> ataallah.am...@gmail.com>:
>>>
 Hi Stephen
 Here is the condition expression:
 #{aDiagnose} != 'Meningitis - Other Bacterial' || #{aDiagnose} !=
 'Meningitis - Hemophillus Influenza' || #{aDiagnose} != 

Re: [Dhis2-devs] Program Rule

2018-10-08 Thread Calle Hedberg
Hi

agree - if the expression is false, no action 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:

> Calle
>
> Yes, but the programe stage should appear when the expression is false,
> which is not happening. Even the warning message disappear when the
> expression is false.
>
> Sent from my iPhone
>
> On Oct 8, 2018, at 11:03 PM, Calle Hedberg 
> wrote:
>
> Hi
>
> If the warning message appear when the dagnosis value is something else
> than meninges, then it means the expression correctly evaluated to TRUE.
>  So the expression is correct.
>
> And the other action if expression is true, is to hide the meninges stage,
> yes? and that stage correctly does not appear?
>
> 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" for testing,
>> and now the warning message appears but the program stage don't.
>> So the issue is with the program stage.
>>
>> Any suggestions?
>>
>> Regards,
>>
>> On Mon, Oct 8, 2018 at 2:41 PM Calle Hedberg 
>> wrote:
>>
>>> Amjad,
>>>
>>> That error is a data-related error (I had something similar last week,
>>> and tracked it down to one single orgunit that had an erroneous attribute
>>> value - but in your case the data error might be somewhere else, no idea
>>> where). If you get that kind 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:
>>>
 Dear Calle,

 The case is that i have like 20 diagnosis, i need to hide the stage if
 the diagnose is not one of those 3 diagnosis and show the stage if its one
 of them.

 I also tried the &&, but didn't work also.

 After clearing the cache, i have this error:
 TypeError: Cannot read property 'id' of undefined
 at dataentry-controller.js:405
 at Object.r [as forEach] (angular.js:331)
 at processRuleEffect (dataentry-controller.js:298)
 at dataentry-controller.js:201
 at n.$broadcast (angular.js:14785)
 at dhis2.angular.services.js:2873
 at angular.js:13248
 at n.$eval (angular.js:14466)
 at n.$digest (angular.js:14282)
 at n.$apply (angular.js:14571)

 Regards,

 On Mon, Oct 8, 2018 at 1:27 PM Calle Hedberg 
 wrote:

> Hi
>
> You only use the code if that has been specified in the option set
> (tick-box).
>
> Secondly, you are using OR and NOT in your expression:
>
> #{aDiagnose} != 'Meningitis - Other Bacterial' || #{aDiagnose} !=
> 'Meningitis - Hemophillus Influenza' || #{aDiagnose} != 'Meningitis -
> Meningococcal Meningitis'
>
> Basically that means the expression will always return true, at least
> if aDiagnose is a single value diagnosis field. Even if you select let us
> say "Meningitis - Mengingococcal Meningitis" as the aDiagnosis value, the
> three other components in the expression will be true so the total is true
> due to the OR
>
> Try using AND
> #{aDiagnose} != 'Meningitis - Other Bacterial' && #{aDiagnose} !=
> 'Meningitis - Hemophillus Influenza' && #{aDiagnose} != 'Meningitis -
> Meningococcal Meningitis'
>
> Meaning : when aDiagnosis is NOT diag1 AND not diag2 AND NOT diag3
> then hide stage X
>
> Regards
> Calle
>
>
> Regards
> Calle
>
> On Mon, 8 Oct 2018 at 09:11, Amjad Ata-Allah 
> wrote:
>
>> Dear Zubair,
>>
>> Yes it is, and i tried both (name and code).
>>
>> Regards,
>>
>> Sent from my iPhone
>>
>> On Oct 8, 2018, at 9:47 AM, Zubair Asghar Raja 
>> wrote:
>>
>> Hi Amjad
>> Is aDiagnose an option set? If it is then try using code instead of
>> name.
>>
>>
>> Zubair
>>
>> Den man. 8. okt. 2018, 6:50 a.m. skrev Amjad Ata Allah <
>> ataallah.am...@gmail.com>:
>>
>>> Hi Stephen
>>> Here is the condition expression:
>>> #{aDiagnose} != 'Meningitis - Other Bacterial' || #{aDiagnose} !=
>>> 'Meningitis - Hemophillus Influenza' || #{aDiagnose} != 'Meningitis -
>>> Meningococcal Meningitis'
>>>
>>> Thanks,
>>>
>>> On Mon, Oct 8, 2018 at 12:41 AM Stephen Ocaya 
>>> 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 <
 ataallah.am...@gmail.com> wrote:

> Dear All,

[Dhis2-devs] Tomcat log inundated with irrelevant warning messages about "No IdentifiableObjectStore found for class: ... Reportingrate"

2018-10-08 Thread Calle Hedberg
Hi
I have recently noticed that the tomcat log is getting filled with
irrelevant warning messages of this type:

* WARN  2018-10-08 22:12:51,086 No IdentifiableObjectStore found for class:
class org.hisp.dhis.common.ReportingRate
(DefaultIdentifiableObjectManager.java [http-nio-8080-exec-9])
* WARN  2018-10-08 22:12:51,111 No IdentifiableObjectStore found for class:
class org.hisp.dhis.common.ReportingRate
(DefaultIdentifiableObjectManager.java [http-nio-8080-exec-9])
* WARN  2018-10-08 22:12:51,113 No IdentifiableObjectStore found for class:
class org.hisp.dhis.common.ReportingRate
(DefaultIdentifiableObjectManager.java [http-nio-8080-exec-9])

As far as I can tell, every single favourite invoked on e.g. dashboard
generates one of these irrelevant warning messages in the log.

Any idea what could cause this?

Regards
Calle

***

Calle Hedberg

46D Alma Road, 7700 Rosebank, SOUTH AFRICA

Tel/fax (home): +27-21-685-6472

Cell: +27-82-853-5352

Iridium SatPhone: +8816-315-19119

Email: calle.hedb...@gmail.com

Skype: calle_hedberg

***
___
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


Re: [Dhis2-devs] Program Rule

2018-10-08 Thread Amjad Ata-Allah
Calle

Yes, but the programe stage should appear when the expression is false, which 
is not happening. Even the warning message disappear when the expression is 
false.

Sent from my iPhone

> On Oct 8, 2018, at 11:03 PM, Calle Hedberg  wrote:
> 
> Hi
> 
> If the warning message appear when the dagnosis value is something else than 
> meninges, then it means the expression correctly evaluated to TRUE.
>  So the expression is correct.
> 
> And the other action if expression is true, is to hide the meninges stage, 
> yes? and that stage correctly does not appear?
> 
> 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" for testing, and 
>> now the warning message appears but the program stage don't.
>> So the issue is with the program stage.
>> 
>> Any suggestions?
>> 
>> Regards,
>> 
>>> On Mon, Oct 8, 2018 at 2:41 PM Calle Hedberg  
>>> wrote:
>>> Amjad,
>>> 
>>> That error is a data-related error (I had something similar last week, and 
>>> tracked it down to one single orgunit that had an erroneous attribute value 
>>> - but in your case the data error might be somewhere else, no idea where). 
>>> If you get that kind 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:
 Dear Calle,
 
 The case is that i have like 20 diagnosis, i need to hide the stage if the 
 diagnose is not one of those 3 diagnosis and show the stage if its one of 
 them.
 
 I also tried the &&, but didn't work also.
 
 After clearing the cache, i have this error:
 TypeError: Cannot read property 'id' of undefined
 at dataentry-controller.js:405
 at Object.r [as forEach] (angular.js:331)
 at processRuleEffect (dataentry-controller.js:298)
 at dataentry-controller.js:201
 at n.$broadcast (angular.js:14785)
 at dhis2.angular.services.js:2873
 at angular.js:13248
 at n.$eval (angular.js:14466)
 at n.$digest (angular.js:14282)
 at n.$apply (angular.js:14571)
 
 Regards,
 
> On Mon, Oct 8, 2018 at 1:27 PM Calle Hedberg  
> wrote:
> Hi
> 
> You only use the code if that has been specified in the option set 
> (tick-box).
> 
> Secondly, you are using OR and NOT in your expression:
> 
> #{aDiagnose} != 'Meningitis - Other Bacterial' || #{aDiagnose} != 
> 'Meningitis - Hemophillus Influenza' || #{aDiagnose} != 'Meningitis - 
> Meningococcal Meningitis'
> 
> Basically that means the expression will always return true, at least if 
> aDiagnose is a single value diagnosis field. Even if you select let us 
> say "Meningitis - Mengingococcal Meningitis" as the aDiagnosis value, the 
> three other components in the expression will be true so the total is 
> true due to the OR
> 
> Try using AND
> #{aDiagnose} != 'Meningitis - Other Bacterial' && #{aDiagnose} != 
> 'Meningitis - Hemophillus Influenza' && #{aDiagnose} != 'Meningitis - 
> Meningococcal Meningitis'
> 
> Meaning : when aDiagnosis is NOT diag1 AND not diag2 AND NOT diag3 then 
> hide stage X
> 
> Regards
> Calle
> 
> 
> Regards
> Calle
> 
>> On Mon, 8 Oct 2018 at 09:11, Amjad Ata-Allah  
>> wrote:
>> Dear Zubair,
>> 
>> Yes it is, and i tried both (name and code).
>> 
>> Regards,
>> 
>> Sent from my iPhone
>> 
>>> On Oct 8, 2018, at 9:47 AM, Zubair Asghar Raja  wrote:
>>> 
>>> Hi Amjad 
>>> Is aDiagnose an option set? If it is then try using code instead of 
>>> name.
>>> 
>>> 
>>> Zubair 
>>> 
>>> Den man. 8. 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 - 
 Meningococcal Meningitis'
 
 Thanks,
 
> On Mon, Oct 8, 2018 at 12:41 AM Stephen Ocaya  
> 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 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 

Re: [Dhis2-devs] Program Rule

2018-10-08 Thread Calle Hedberg
Hi

If the warning message appear when the dagnosis value is something else
than meninges, then it means the expression correctly evaluated to TRUE.
 So the expression is correct.

And the other action if expression is true, is to hide the meninges stage,
yes? and that stage correctly does not appear?

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" for testing, and
> now the warning message appears but the program stage don't.
> So the issue is with the program stage.
>
> Any suggestions?
>
> Regards,
>
> On Mon, Oct 8, 2018 at 2:41 PM Calle Hedberg 
> wrote:
>
>> Amjad,
>>
>> That error is a data-related error (I had something similar last week,
>> and tracked it down to one single orgunit that had an erroneous attribute
>> value - but in your case the data error might be somewhere else, no idea
>> where). If you get that kind 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:
>>
>>> Dear Calle,
>>>
>>> The case is that i have like 20 diagnosis, i need to hide the stage if
>>> the diagnose is not one of those 3 diagnosis and show the stage if its one
>>> of them.
>>>
>>> I also tried the &&, but didn't work also.
>>>
>>> After clearing the cache, i have this error:
>>> TypeError: Cannot read property 'id' of undefined
>>> at dataentry-controller.js:405
>>> at Object.r [as forEach] (angular.js:331)
>>> at processRuleEffect (dataentry-controller.js:298)
>>> at dataentry-controller.js:201
>>> at n.$broadcast (angular.js:14785)
>>> at dhis2.angular.services.js:2873
>>> at angular.js:13248
>>> at n.$eval (angular.js:14466)
>>> at n.$digest (angular.js:14282)
>>> at n.$apply (angular.js:14571)
>>>
>>> Regards,
>>>
>>> On Mon, Oct 8, 2018 at 1:27 PM Calle Hedberg 
>>> wrote:
>>>
 Hi

 You only use the code if that has been specified in the option set
 (tick-box).

 Secondly, you are using OR and NOT in your expression:

 #{aDiagnose} != 'Meningitis - Other Bacterial' || #{aDiagnose} !=
 'Meningitis - Hemophillus Influenza' || #{aDiagnose} != 'Meningitis -
 Meningococcal Meningitis'

 Basically that means the expression will always return true, at least
 if aDiagnose is a single value diagnosis field. Even if you select let us
 say "Meningitis - Mengingococcal Meningitis" as the aDiagnosis value, the
 three other components in the expression will be true so the total is true
 due to the OR

 Try using AND
 #{aDiagnose} != 'Meningitis - Other Bacterial' && #{aDiagnose} !=
 'Meningitis - Hemophillus Influenza' && #{aDiagnose} != 'Meningitis -
 Meningococcal Meningitis'

 Meaning : when aDiagnosis is NOT diag1 AND not diag2 AND NOT diag3 then
 hide stage X

 Regards
 Calle


 Regards
 Calle

 On Mon, 8 Oct 2018 at 09:11, Amjad Ata-Allah 
 wrote:

> Dear Zubair,
>
> Yes it is, and i tried both (name and code).
>
> Regards,
>
> Sent from my iPhone
>
> On Oct 8, 2018, at 9:47 AM, Zubair Asghar Raja 
> wrote:
>
> Hi Amjad
> Is aDiagnose an option set? If it is then try using code instead of
> name.
>
>
> Zubair
>
> Den man. 8. okt. 2018, 6:50 a.m. skrev Amjad Ata Allah <
> ataallah.am...@gmail.com>:
>
>> Hi Stephen
>> Here is the condition expression:
>> #{aDiagnose} != 'Meningitis - Other Bacterial' || #{aDiagnose} !=
>> 'Meningitis - Hemophillus Influenza' || #{aDiagnose} != 'Meningitis -
>> Meningococcal Meningitis'
>>
>> Thanks,
>>
>> On Mon, Oct 8, 2018 at 12:41 AM Stephen Ocaya 
>> 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 <
>>> ataallah.am...@gmail.com> wrote:
>>>
 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 need
 to.

 Amjad M. Ata-Allah
 _
 M: +970.599.721.158
 Em: ataallah.am...@gmail.com
 Em: amjad.ataal...@hotmail.com
 Skype: amjad.ataallah
 _
 

Re: [Dhis2-devs] Program Rule

2018-10-08 Thread Amjad Ata Allah
Thanks Calle

I replaced the OR with AND.
I added another action to the rule "Show warning message" for testing, and
now the warning message appears but the program stage don't.
So the issue is with the program stage.

Any suggestions?

Regards,

On Mon, Oct 8, 2018 at 2:41 PM Calle Hedberg 
wrote:

> Amjad,
>
> That error is a data-related error (I had something similar last week, and
> tracked it down to one single orgunit that had an erroneous attribute value
> - but in your case the data error might be somewhere else, no idea where).
> If you get that kind 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:
>
>> Dear Calle,
>>
>> The case is that i have like 20 diagnosis, i need to hide the stage if
>> the diagnose is not one of those 3 diagnosis and show the stage if its one
>> of them.
>>
>> I also tried the &&, but didn't work also.
>>
>> After clearing the cache, i have this error:
>> TypeError: Cannot read property 'id' of undefined
>> at dataentry-controller.js:405
>> at Object.r [as forEach] (angular.js:331)
>> at processRuleEffect (dataentry-controller.js:298)
>> at dataentry-controller.js:201
>> at n.$broadcast (angular.js:14785)
>> at dhis2.angular.services.js:2873
>> at angular.js:13248
>> at n.$eval (angular.js:14466)
>> at n.$digest (angular.js:14282)
>> at n.$apply (angular.js:14571)
>>
>> Regards,
>>
>> On Mon, Oct 8, 2018 at 1:27 PM Calle Hedberg 
>> wrote:
>>
>>> Hi
>>>
>>> You only use the code if that has been specified in the option set
>>> (tick-box).
>>>
>>> Secondly, you are using OR and NOT in your expression:
>>>
>>> #{aDiagnose} != 'Meningitis - Other Bacterial' || #{aDiagnose} !=
>>> 'Meningitis - Hemophillus Influenza' || #{aDiagnose} != 'Meningitis -
>>> Meningococcal Meningitis'
>>>
>>> Basically that means the expression will always return true, at least if
>>> aDiagnose is a single value diagnosis field. Even if you select let us say
>>> "Meningitis - Mengingococcal Meningitis" as the aDiagnosis value, the three
>>> other components in the expression will be true so the total is true due to
>>> the OR
>>>
>>> Try using AND
>>> #{aDiagnose} != 'Meningitis - Other Bacterial' && #{aDiagnose} !=
>>> 'Meningitis - Hemophillus Influenza' && #{aDiagnose} != 'Meningitis -
>>> Meningococcal Meningitis'
>>>
>>> Meaning : when aDiagnosis is NOT diag1 AND not diag2 AND NOT diag3 then
>>> hide stage X
>>>
>>> Regards
>>> Calle
>>>
>>>
>>> Regards
>>> Calle
>>>
>>> On Mon, 8 Oct 2018 at 09:11, Amjad Ata-Allah 
>>> wrote:
>>>
 Dear Zubair,

 Yes it is, and i tried both (name and code).

 Regards,

 Sent from my iPhone

 On Oct 8, 2018, at 9:47 AM, Zubair Asghar Raja 
 wrote:

 Hi Amjad
 Is aDiagnose an option set? If it is then try using code instead of
 name.


 Zubair

 Den man. 8. okt. 2018, 6:50 a.m. skrev Amjad Ata Allah <
 ataallah.am...@gmail.com>:

> Hi Stephen
> Here is the condition expression:
> #{aDiagnose} != 'Meningitis - Other Bacterial' || #{aDiagnose} !=
> 'Meningitis - Hemophillus Influenza' || #{aDiagnose} != 'Meningitis -
> Meningococcal Meningitis'
>
> Thanks,
>
> On Mon, Oct 8, 2018 at 12:41 AM Stephen Ocaya 
> 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 <
>> ataallah.am...@gmail.com> wrote:
>>
>>> 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 need to.
>>>
>>> Amjad M. Ata-Allah
>>> _
>>> M: +970.599.721.158
>>> Em: ataallah.am...@gmail.com
>>> Em: amjad.ataal...@hotmail.com
>>> Skype: amjad.ataallah
>>> _
>>> ___
>>> 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
>>>
>>
>>
>> Strategic Information Systems for Actions
>> Plot 36 Impala Avenue, Kololo
>> P.O. Box 4750, Kampala
>>
>
>
> --
> Save a tree, Please don't print this email unless you really need to.
>
> Amjad M. Ata-Allah
> _
> M: +970.599.721.158
> Em: 

Re: [Dhis2-devs] Program Rule

2018-10-08 Thread Amjad Ata Allah
Dear Calle,

The case is that i have like 20 diagnosis, i need to hide the stage if the
diagnose is not one of those 3 diagnosis and show the stage if its one of
them.

I also tried the &&, but didn't work also.

After clearing the cache, i have this error:
TypeError: Cannot read property 'id' of undefined
at dataentry-controller.js:405
at Object.r [as forEach] (angular.js:331)
at processRuleEffect (dataentry-controller.js:298)
at dataentry-controller.js:201
at n.$broadcast (angular.js:14785)
at dhis2.angular.services.js:2873
at angular.js:13248
at n.$eval (angular.js:14466)
at n.$digest (angular.js:14282)
at n.$apply (angular.js:14571)

Regards,

On Mon, Oct 8, 2018 at 1:27 PM Calle Hedberg 
wrote:

> Hi
>
> You only use the code if that has been specified in the option set
> (tick-box).
>
> Secondly, you are using OR and NOT in your expression:
>
> #{aDiagnose} != 'Meningitis - Other Bacterial' || #{aDiagnose} !=
> 'Meningitis - Hemophillus Influenza' || #{aDiagnose} != 'Meningitis -
> Meningococcal Meningitis'
>
> Basically that means the expression will always return true, at least if
> aDiagnose is a single value diagnosis field. Even if you select let us say
> "Meningitis - Mengingococcal Meningitis" as the aDiagnosis value, the three
> other components in the expression will be true so the total is true due to
> the OR
>
> Try using AND
> #{aDiagnose} != 'Meningitis - Other Bacterial' && #{aDiagnose} !=
> 'Meningitis - Hemophillus Influenza' && #{aDiagnose} != 'Meningitis -
> Meningococcal Meningitis'
>
> Meaning : when aDiagnosis is NOT diag1 AND not diag2 AND NOT diag3 then
> hide stage X
>
> Regards
> Calle
>
>
> Regards
> Calle
>
> On Mon, 8 Oct 2018 at 09:11, Amjad Ata-Allah 
> wrote:
>
>> Dear Zubair,
>>
>> Yes it is, and i tried both (name and code).
>>
>> Regards,
>>
>> Sent from my iPhone
>>
>> On Oct 8, 2018, at 9:47 AM, Zubair Asghar Raja  wrote:
>>
>> Hi Amjad
>> Is aDiagnose an option set? If it is then try using code instead of name.
>>
>>
>> Zubair
>>
>> Den man. 8. okt. 2018, 6:50 a.m. skrev Amjad Ata Allah <
>> ataallah.am...@gmail.com>:
>>
>>> Hi Stephen
>>> Here is the condition expression:
>>> #{aDiagnose} != 'Meningitis - Other Bacterial' || #{aDiagnose} !=
>>> 'Meningitis - Hemophillus Influenza' || #{aDiagnose} != 'Meningitis -
>>> Meningococcal Meningitis'
>>>
>>> Thanks,
>>>
>>> On Mon, Oct 8, 2018 at 12:41 AM Stephen Ocaya 
>>> 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 <
 ataallah.am...@gmail.com> wrote:

> 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 need to.
>
> Amjad M. Ata-Allah
> _
> M: +970.599.721.158
> Em: ataallah.am...@gmail.com
> Em: amjad.ataal...@hotmail.com
> Skype: amjad.ataallah
> _
> ___
> 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
>


 Strategic Information Systems for Actions
 Plot 36 Impala Avenue, Kololo
 P.O. Box 4750, Kampala

>>>
>>>
>>> --
>>> Save a tree, Please don't print this email unless you really need to.
>>>
>>> Amjad M. Ata-Allah
>>> _
>>> M: +970.599.721.158
>>> Em: ataallah.am...@gmail.com
>>> Em: amjad.ataal...@hotmail.com
>>> Skype: amjad.ataallah
>>> _
>>> ___
>>> 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
>>>
>> ___
>> 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
>>
>
>
> --
>
> ***
>
> Calle Hedberg
>
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
>
> Tel/fax (home): +27-21-685-6472
>
> Cell: +27-82-853-5352
>
> Iridium SatPhone: +8816-315-19119
>
> Email: calle.hedb...@gmail.com
>
> Skype: calle_hedberg
>
> ***
>
>

-- 
Save a tree, Please don't print this email unless you really need to.

Amjad M. Ata-Allah
_
M: +970.599.721.158
Em: 

Re: [Dhis2-devs] Program Rule

2018-10-08 Thread Calle Hedberg
Amjad,

That error is a data-related error (I had something similar last week, and
tracked it down to one single orgunit that had an erroneous attribute value
- but in your case the data error might be somewhere else, no idea where).
If you get that kind 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:

> Dear Calle,
>
> The case is that i have like 20 diagnosis, i need to hide the stage if the
> diagnose is not one of those 3 diagnosis and show the stage if its one of
> them.
>
> I also tried the &&, but didn't work also.
>
> After clearing the cache, i have this error:
> TypeError: Cannot read property 'id' of undefined
> at dataentry-controller.js:405
> at Object.r [as forEach] (angular.js:331)
> at processRuleEffect (dataentry-controller.js:298)
> at dataentry-controller.js:201
> at n.$broadcast (angular.js:14785)
> at dhis2.angular.services.js:2873
> at angular.js:13248
> at n.$eval (angular.js:14466)
> at n.$digest (angular.js:14282)
> at n.$apply (angular.js:14571)
>
> Regards,
>
> On Mon, Oct 8, 2018 at 1:27 PM Calle Hedberg 
> wrote:
>
>> Hi
>>
>> You only use the code if that has been specified in the option set
>> (tick-box).
>>
>> Secondly, you are using OR and NOT in your expression:
>>
>> #{aDiagnose} != 'Meningitis - Other Bacterial' || #{aDiagnose} !=
>> 'Meningitis - Hemophillus Influenza' || #{aDiagnose} != 'Meningitis -
>> Meningococcal Meningitis'
>>
>> Basically that means the expression will always return true, at least if
>> aDiagnose is a single value diagnosis field. Even if you select let us say
>> "Meningitis - Mengingococcal Meningitis" as the aDiagnosis value, the three
>> other components in the expression will be true so the total is true due to
>> the OR
>>
>> Try using AND
>> #{aDiagnose} != 'Meningitis - Other Bacterial' && #{aDiagnose} !=
>> 'Meningitis - Hemophillus Influenza' && #{aDiagnose} != 'Meningitis -
>> Meningococcal Meningitis'
>>
>> Meaning : when aDiagnosis is NOT diag1 AND not diag2 AND NOT diag3 then
>> hide stage X
>>
>> Regards
>> Calle
>>
>>
>> Regards
>> Calle
>>
>> On Mon, 8 Oct 2018 at 09:11, Amjad Ata-Allah 
>> wrote:
>>
>>> Dear Zubair,
>>>
>>> Yes it is, and i tried both (name and code).
>>>
>>> Regards,
>>>
>>> Sent from my iPhone
>>>
>>> On Oct 8, 2018, at 9:47 AM, Zubair Asghar Raja  wrote:
>>>
>>> Hi Amjad
>>> Is aDiagnose an option set? If it is then try using code instead of name.
>>>
>>>
>>> Zubair
>>>
>>> Den man. 8. okt. 2018, 6:50 a.m. skrev Amjad Ata Allah <
>>> ataallah.am...@gmail.com>:
>>>
 Hi Stephen
 Here is the condition expression:
 #{aDiagnose} != 'Meningitis - Other Bacterial' || #{aDiagnose} !=
 'Meningitis - Hemophillus Influenza' || #{aDiagnose} != 'Meningitis -
 Meningococcal Meningitis'

 Thanks,

 On Mon, Oct 8, 2018 at 12:41 AM Stephen Ocaya 
 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 <
> ataallah.am...@gmail.com> wrote:
>
>> 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 need to.
>>
>> Amjad M. Ata-Allah
>> _
>> M: +970.599.721.158
>> Em: ataallah.am...@gmail.com
>> Em: amjad.ataal...@hotmail.com
>> Skype: amjad.ataallah
>> _
>> ___
>> 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
>>
>
>
> Strategic Information Systems for Actions
> Plot 36 Impala Avenue, Kololo
> P.O. Box 4750, Kampala
>


 --
 Save a tree, Please don't print this email unless you really need to.

 Amjad M. Ata-Allah
 _
 M: +970.599.721.158
 Em: ataallah.am...@gmail.com
 Em: amjad.ataal...@hotmail.com
 Skype: amjad.ataallah
 _
 ___
 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

>>> ___
>>> Mailing list: 

Re: [Dhis2-devs] Program Rule

2018-10-08 Thread Calle Hedberg
Hi

You only use the code if that has been specified in the option set
(tick-box).

Secondly, you are using OR and NOT in your expression:

#{aDiagnose} != 'Meningitis - Other Bacterial' || #{aDiagnose} !=
'Meningitis - Hemophillus Influenza' || #{aDiagnose} != 'Meningitis -
Meningococcal Meningitis'

Basically that means the expression will always return true, at least if
aDiagnose is a single value diagnosis field. Even if you select let us say
"Meningitis - Mengingococcal Meningitis" as the aDiagnosis value, the three
other components in the expression will be true so the total is true due to
the OR

Try using AND
#{aDiagnose} != 'Meningitis - Other Bacterial' && #{aDiagnose} !=
'Meningitis - Hemophillus Influenza' && #{aDiagnose} != 'Meningitis -
Meningococcal Meningitis'

Meaning : when aDiagnosis is NOT diag1 AND not diag2 AND NOT diag3 then
hide stage X

Regards
Calle


Regards
Calle

On Mon, 8 Oct 2018 at 09:11, Amjad Ata-Allah 
wrote:

> Dear Zubair,
>
> Yes it is, and i tried both (name and code).
>
> Regards,
>
> Sent from my iPhone
>
> On Oct 8, 2018, at 9:47 AM, Zubair Asghar Raja  wrote:
>
> Hi Amjad
> Is aDiagnose an option set? If it is then try using code instead of name.
>
>
> Zubair
>
> Den man. 8. okt. 2018, 6:50 a.m. skrev Amjad Ata Allah <
> ataallah.am...@gmail.com>:
>
>> Hi Stephen
>> Here is the condition expression:
>> #{aDiagnose} != 'Meningitis - Other Bacterial' || #{aDiagnose} !=
>> 'Meningitis - Hemophillus Influenza' || #{aDiagnose} != 'Meningitis -
>> Meningococcal Meningitis'
>>
>> Thanks,
>>
>> On Mon, Oct 8, 2018 at 12:41 AM Stephen Ocaya 
>> 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 <
>>> ataallah.am...@gmail.com> wrote:
>>>
 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 need to.

 Amjad M. Ata-Allah
 _
 M: +970.599.721.158
 Em: ataallah.am...@gmail.com
 Em: amjad.ataal...@hotmail.com
 Skype: amjad.ataallah
 _
 ___
 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

>>>
>>>
>>> Strategic Information Systems for Actions
>>> Plot 36 Impala Avenue, Kololo
>>> P.O. Box 4750, Kampala
>>>
>>
>>
>> --
>> Save a tree, Please don't print this email unless you really need to.
>>
>> Amjad M. Ata-Allah
>> _
>> M: +970.599.721.158
>> Em: ataallah.am...@gmail.com
>> Em: amjad.ataal...@hotmail.com
>> Skype: amjad.ataallah
>> _
>> ___
>> 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
>>
> ___
> 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
>


-- 

***

Calle Hedberg

46D Alma Road, 7700 Rosebank, SOUTH AFRICA

Tel/fax (home): +27-21-685-6472

Cell: +27-82-853-5352

Iridium SatPhone: +8816-315-19119

Email: calle.hedb...@gmail.com

Skype: calle_hedberg

***
___
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


Re: [Dhis2-devs] failed to lazily initialize a collection of role: org.hisp.dhis.user.UserCredentials.userAuthorityGroups, could not initialize proxy - no Session

2018-10-08 Thread 林晓东

this is for dhis2 2.30 version. but 2.29 can work.




--

此致
 

莫愁前路无知己,天下谁人不识君。

在 2018-10-08 15:48:32,"林晓东"  写道:

Hi,all
   when I login with hisptz touch app, got this error
  should change the attribute lazy="false"   in .hbm.xml? 


--

此致
 easy
莫愁前路无知己,天下谁人不识君。




 ___
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


Re: [Dhis2-devs] PostgreSQL-10 Optimization for DHIS2

2018-10-08 Thread Gerald Thomas


postgresql.conf
Description: Binary data
Dear Calle,Please find the attached requested file.On Oct 8, 2018, at 6:52 AM, Calle Hedberg  wrote:Gerald,Please post your postgresql.conf fileRegardsCalleOn Sun, 7 Oct 2018 at 23:19, gerald thomas  wrote:Dear All,My instance is running on Ubuntu 18.04 with PostgreSQL-10 and i am using version 2.27 Build revision 49b827a with an allocated RAM of 16Gb for PostgreSQL and 12Gb RAM for the other application processes. Whatever i had done during optimization of Postgres had not reduce my analytics time below 1 hour. Please can anyone help because i actually want analytics to run below 30 minutes.-- Regards,
 
Gerald
___
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
-- ***Calle Hedberg46D Alma Road, 7700 Rosebank, SOUTH AFRICA Tel/fax (home): +27-21-685-6472Cell: +27-82-853-5352Iridium SatPhone: +8816-315-19119Email: calle.hedb...@gmail.comSkype: calle_hedberg***
___
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


[Dhis2-devs] Translation reset after night

2018-10-08 Thread Em Le Hong
Dear all,

We are running a database on 2.29 build date 2018-09-24 03:24 and facing a
strange behavior on translation of organisation unit and data elements.

For example we want to update translation for an organisation unit. It's
working fine, but after a night the old translation will be showed.
Checking with WEB api we see a duplicate translation property (has 2 name,
2 short name properties)
Ex:
"translations": [{"property": "NAME","locale": "lo","value": "0101 ມ.
ຈັນທະບູລີ"},{"property": "NAME","locale": "lo","value": "ມ.ຈັນທະບູລີ"},{
"property": "SHORT_NAME","locale": "lo","value": "ຈັນທະບູລີ"},{"property":
"SHORT_NAME","locale": "lo","value": "ມ. ຈັນທະບູລີ"}],
Then we use API to remove 1 translation that is the old. It's working fine,
old translation gone. But it's very strange that after a night then the old
translation will be showed again with duplicate property.

Does anyone ever see similar issue or experience to solve it? I'm very
appreciated that you can share.

I'm trying to reproduce this issue on blank database but still couldn't
reproduce it.

Thanks,
-- 
*Em Le Hong*
DHIS2 Implementation| *HISP Vietnam *
em.hispviet...@gmail.com | *Skype:* em.hispviet...@gmail.com
___
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


[Dhis2-devs] failed to lazily initialize a collection of role: org.hisp.dhis.user.UserCredentials.userAuthorityGroups, could not initialize proxy - no Session

2018-10-08 Thread 林晓东
Hi,all
   when I login with hisptz touch app, got this error
  should change the attribute lazy="false"   in .hbm.xml? 


--

此致
 easy
莫愁前路无知己,天下谁人不识君。___
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


Re: [Dhis2-devs] PostgreSQL-10 Optimization for DHIS2

2018-10-08 Thread Calle Hedberg
Gerald,

Please post your postgresql.conf file

Regards
Calle

On Sun, 7 Oct 2018 at 23:19, gerald thomas  wrote:

> Dear All,
> My instance is running on Ubuntu 18.04 with PostgreSQL-10 and i am using
> version 2.27 Build revision 49b827a with an allocated RAM of 16Gb for
> PostgreSQL and 12Gb RAM for the other application processes.
> Whatever i had done during optimization of Postgres had not reduce my
> analytics time below 1 hour. Please can anyone help because i actually want
> analytics to run below 30 minutes.
>
> --
> Regards,
>
> Gerald
> ___
> 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
>


-- 

***

Calle Hedberg

46D Alma Road, 7700 Rosebank, SOUTH AFRICA

Tel/fax (home): +27-21-685-6472

Cell: +27-82-853-5352

Iridium SatPhone: +8816-315-19119

Email: calle.hedb...@gmail.com

Skype: calle_hedberg

***
___
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


Re: [Dhis2-devs] Program Rule

2018-10-08 Thread Amjad Ata-Allah
Dear Zubair,

Yes it is, and i tried both (name and code).

Regards,

Sent from my iPhone

> On Oct 8, 2018, at 9:47 AM, Zubair Asghar Raja  wrote:
> 
> Hi Amjad 
> Is aDiagnose an option set? If it is then try using code instead of name.
> 
> 
> Zubair 
> 
> Den man. 8. 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 - 
>> Meningococcal Meningitis'
>> 
>> Thanks,
>> 
>>> On Mon, Oct 8, 2018 at 12:41 AM Stephen Ocaya  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 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 need to.
 
 Amjad M. Ata-Allah
 _
 M: +970.599.721.158
 Em: ataallah.am...@gmail.com
 Em: amjad.ataal...@hotmail.com
 Skype: amjad.ataallah
 _
 ___
 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
>>> 
>>> 
>>> Strategic Information Systems for Actions
>>> Plot 36 Impala Avenue, Kololo
>>> P.O. Box 4750, Kampala
>> 
>> 
>> -- 
>> Save a tree, Please don't print this email unless you really need to.
>> 
>> Amjad M. Ata-Allah
>> _
>> M: +970.599.721.158
>> Em: ataallah.am...@gmail.com
>> Em: amjad.ataal...@hotmail.com
>> Skype: amjad.ataallah
>> _
>> ___
>> 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
___
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


Re: [Dhis2-devs] Program Rule

2018-10-08 Thread Zubair Asghar Raja
Hi Amjad
Is aDiagnose an option set? If it is then try using code instead of name.


Zubair

Den man. 8. okt. 2018, 6:50 a.m. skrev Amjad Ata Allah <
ataallah.am...@gmail.com>:

> Hi Stephen
> Here is the condition expression:
> #{aDiagnose} != 'Meningitis - Other Bacterial' || #{aDiagnose} !=
> 'Meningitis - Hemophillus Influenza' || #{aDiagnose} != 'Meningitis -
> Meningococcal Meningitis'
>
> Thanks,
>
> On Mon, Oct 8, 2018 at 12:41 AM Stephen Ocaya 
> 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 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 need to.
>>>
>>> Amjad M. Ata-Allah
>>> _
>>> M: +970.599.721.158
>>> Em: ataallah.am...@gmail.com
>>> Em: amjad.ataal...@hotmail.com
>>> Skype: amjad.ataallah
>>> _
>>> ___
>>> 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
>>>
>>
>>
>> Strategic Information Systems for Actions
>> Plot 36 Impala Avenue, Kololo
>> P.O. Box 4750, Kampala
>>
>
>
> --
> Save a tree, Please don't print this email unless you really need to.
>
> Amjad M. Ata-Allah
> _
> M: +970.599.721.158
> Em: ataallah.am...@gmail.com
> Em: amjad.ataal...@hotmail.com
> Skype: amjad.ataallah
> _
> ___
> 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
>
___
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