Re: [Dhis2-users] using parenthesis d2:condition

2018-02-12 Thread Markus Bekken
Hi Victor,
the below expression contains parenthesis, and will not work in program 
indicators:
https://jira.dhis2.org/browse/DHIS2-2813

Can I suggest to write the below indicator as:
- aggregate type: COUNT
- expression: V{event_count}
- filter: (#{tbLC6IHktf0.zhiaH2sMDEB}+(#{tbLC6IHktf0.HqvccHzvdUj}+ 
#{tbLC6IHktf0.d88MXV7ikNH}+ #{tbLC6IHktf0.SiBIjK40DGq}))  / 
#{tbLC6IHktf0.spWKINz7xwF} >=80

Best regards,
Markus

> 12. feb. 2018 kl. 08:48 skrev Victor Tabu :
> 
>   <>
>  
> Morning everyone and wish you good week,
>  
> I am trying to check if my indicator reach the threshold by using the formula 
> below
>  
> d2:condition('100(#{tbLC6IHktf0.zhiaH2sMDEB}+(#{tbLC6IHktf0.HqvccHzvdUj}+ 
> #{tbLC6IHktf0.d88MXV7ikNH}+ #{tbLC6IHktf0.SiBIjK40DGq}))  / 
> #{tbLC6IHktf0.spWKINz7xwF} >=80',1,0)
>  
> but I get this error message, is it same one who can tell me what is wrong in 
> the  formula?
>  
> Thank in advance
>  
> 
>  
> -
> Victor TABU TSHIBAMBULA
> Adminstrateur Gestionnaire du Système d’Information - Kinshasa
> Tel: + (243) 814784184 , VoIP : 243 0301 1096, E-mail: vt...@unicef.org 
> , skype : vtabu
>  
> Fonds des Nations Unies pour l’Enfance
> 372, avenue Colonel Mondiba, Kinshasa - Ngaliema
> Suivez nous sur Facebook , Twitter 
> , Pona Bana  et 
> http://www.unicef.org/ 
>  
>  
> 
>  
> 
>   
> 
>  
> 
>  
> From: Dhis2-users 
> [mailto:dhis2-users-bounces+vtabu=unicef@lists.launchpad.net 
> ] On Behalf 
> Of Lars Helge Øverland
> Sent: Monday, February 12, 2018 6:42 AM
> To: Edward Robinson  >
> Cc: dhis2-users  >
> Subject: Re: [Dhis2-users] Custom forms - disable / enable sections
>  
> Hi Edward,
>  
> this is a popular request; unfortunately we do not have a specific feature 
> for this.
>  
> One option is to come up with a few facility "profiles" and create new data 
> sets for each, while re-using the same data elements within the data sets, 
> then assigning the data sets to the org units accordingly.
>  
> We are getting requests for several variants of this feature: 
>  
> a) assigning data elements to facilities directly
> b) assigning sections to facilities directly
> c) assigning data elements to org unit groups within a group set
> c) assigning sections to org unit groups within a group set
>  
> I assume your request is similar to d)? Would be good if you can explain a 
> bit more about your usecase.
>  
> best regards,
>  
> Lars
>  
>  
>  
>  
> On 10 February 2018 at 00:02, Edward Robinson  > wrote:
> Is it possible to hide or show certain sections (tabs) of custom forms by 
> facility based on some facility property?  We are trying to avoid having 
> multiple forms for various services and present them on a single page with 
> multiple tabs if possible, but we want to be able to hide tabs that are 
> irrelevant for certain facilities.
> Thanks in advance for any ideas!
> 
> ___
> Mailing list: https://launchpad.net/~dhis2-users 
> 
> Post to : dhis2-users@lists.launchpad.net 
> 
> Unsubscribe : https://launchpad.net/~dhis2-users 
> 
> More help   : https://help.launchpad.net/ListHelp 
> 
> 
> 
>  
> -- 
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> l...@dhis2.org 
> http://www.dhis2.org 
>  
> ___
> Mailing list: https://launchpad.net/~dhis2-users 
> 
> Post to : dhis2-users@lists.launchpad.net 
> 
> Unsubscribe : https://launchpad.net/~dhis2-users 
> 
> More help   : https://help.launchpad.net/ListHelp 
> 
> ___
> Mailing list: https://launchpad.net/~dhis2-users 
> 
> Post to : dhis2-users@lists.launchpad.net 
> 
> Unsubscribe : https://launchpad.net/~dhis2-users 
> 
> More help   : https://help.launchpad.net/ListHelp 
> 
___
Mailing list: https://launchpad.net/~dhis2-users

[Dhis2-users] using parenthesis d2:condition

2018-02-11 Thread Victor Tabu


Morning everyone and wish you good week,

I am trying to check if my indicator reach the threshold by using the formula 
below

d2:condition('100(#{tbLC6IHktf0.zhiaH2sMDEB}+(#{tbLC6IHktf0.HqvccHzvdUj}+ 
#{tbLC6IHktf0.d88MXV7ikNH}+ #{tbLC6IHktf0.SiBIjK40DGq}))  / 
#{tbLC6IHktf0.spWKINz7xwF} >=80',1,0)

but I get this error message, is it same one who can tell me what is wrong in 
the  formula?

Thank in advance

[cid:image002.jpg@01D3A3DD.FFF5B8F0]

-
Victor TABU TSHIBAMBULA
Adminstrateur Gestionnaire du Système d’Information - Kinshasa
Tel: + (243) 814784184 , VoIP : 243 0301 1096, E-mail: 
vt...@unicef.org, skype : vtabu

Fonds des Nations Unies pour l’Enfance
372, avenue Colonel Mondiba, Kinshasa - Ngaliema
Suivez nous sur Facebook, 
Twitter, Pona Bana et 
http://www.unicef.org/







[cid:image003.jpg@01D37EE0.B5EF0170]


From: Dhis2-users 
[mailto:dhis2-users-bounces+vtabu=unicef@lists.launchpad.net] On Behalf Of 
Lars Helge Øverland
Sent: Monday, February 12, 2018 6:42 AM
To: Edward Robinson 
>
Cc: dhis2-users 
>
Subject: Re: [Dhis2-users] Custom forms - disable / enable sections

Hi Edward,

this is a popular request; unfortunately we do not have a specific feature for 
this.

One option is to come up with a few facility "profiles" and create new data 
sets for each, while re-using the same data elements within the data sets, then 
assigning the data sets to the org units accordingly.

We are getting requests for several variants of this feature:

a) assigning data elements to facilities directly
b) assigning sections to facilities directly
c) assigning data elements to org unit groups within a group set
c) assigning sections to org unit groups within a group set

I assume your request is similar to d)? Would be good if you can explain a bit 
more about your usecase.

best regards,

Lars




On 10 February 2018 at 00:02, Edward Robinson 
> wrote:
Is it possible to hide or show certain sections (tabs) of custom forms by 
facility based on some facility property?  We are trying to avoid having 
multiple forms for various services and present them on a single page with 
multiple tabs if possible, but we want to be able to hide tabs that are 
irrelevant for certain facilities.
Thanks in advance for any ideas!

___
Mailing list: https://launchpad.net/~dhis2-users
Post to : 
dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp



--
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
l...@dhis2.org
http://www.dhis2.org

___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


[Dhis2-users] using parenthesis d2:condition

2018-02-11 Thread Victor Tabu
Morning everyone and wish you good week,

I am trying to check if my indicator reach the threshold by using the formula 
below

d2:condition('100(#{tbLC6IHktf0.zhiaH2sMDEB}+(#{tbLC6IHktf0.HqvccHzvdUj}+ 
#{tbLC6IHktf0.d88MXV7ikNH}+ #{tbLC6IHktf0.SiBIjK40DGq}))  / 
#{tbLC6IHktf0.spWKINz7xwF} >=80',1,0)

but I get this error message, is it same one who can tell me what is wrong in 
the  formula?

Thank in advance

[cid:image002.jpg@01D3A3DD.FFF5B8F0]

-
Victor TABU TSHIBAMBULA
Adminstrateur Gestionnaire du Système d’Information - Kinshasa
Tel: + (243) 814784184 , VoIP : 243 0301 1096, E-mail: 
vt...@unicef.org, skype : vtabu

Fonds des Nations Unies pour l’Enfance
372, avenue Colonel Mondiba, Kinshasa - Ngaliema
Suivez nous sur Facebook, 
Twitter, Pona Bana et 
http://www.unicef.org/







[cid:image003.jpg@01D37EE0.B5EF0170]


From: Dhis2-users 
[mailto:dhis2-users-bounces+vtabu=unicef@lists.launchpad.net] On Behalf Of 
Lars Helge Øverland
Sent: Monday, February 12, 2018 6:42 AM
To: Edward Robinson 
Cc: dhis2-users 
Subject: Re: [Dhis2-users] Custom forms - disable / enable sections

Hi Edward,

this is a popular request; unfortunately we do not have a specific feature for 
this.

One option is to come up with a few facility "profiles" and create new data 
sets for each, while re-using the same data elements within the data sets, then 
assigning the data sets to the org units accordingly.

We are getting requests for several variants of this feature:

a) assigning data elements to facilities directly
b) assigning sections to facilities directly
c) assigning data elements to org unit groups within a group set
c) assigning sections to org unit groups within a group set

I assume your request is similar to d)? Would be good if you can explain a bit 
more about your usecase.

best regards,

Lars




On 10 February 2018 at 00:02, Edward Robinson 
> wrote:
Is it possible to hide or show certain sections (tabs) of custom forms by 
facility based on some facility property?  We are trying to avoid having 
multiple forms for various services and present them on a single page with 
multiple tabs if possible, but we want to be able to hide tabs that are 
irrelevant for certain facilities.
Thanks in advance for any ideas!

___
Mailing list: https://launchpad.net/~dhis2-users
Post to : 
dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp



--
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
l...@dhis2.org
http://www.dhis2.org

___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp