Re: [Dhis2-users] Dataset Custom Forms (CSS & JS)

2018-02-07 Thread Timothy Harding
Hello Makhate, Couple things! So first of all, *if* the CSS is for the custom form and the custom form only, putting them in the source tab like you described *should* work, but it can be finicky, as DHIS 2 does alter the HTML as it is being displayed. Best figure out what works in the chrome

Re: [Dhis2-users] Root organisation unit problem.

2018-02-07 Thread Knut Staring
Please try and open Organisation Unit level and click on the SAVE button I assume you have not tried to connect to a Posgresql database? Knut On Wed, Feb 7, 2018 at 3:57 PM, Khant Mg Mg wrote: > I didn't import anything. I create the first org unit (the root org

Re: [Dhis2-users] Root organisation unit problem.

2018-02-07 Thread Knut Staring
Hi Khant, Sending this back to the users list. The message you linked to was me trying to help Astrid. Not sure if she resolved it. Try and open Organisation Unit level and click on Save. Or did you import levels also from SL? Is your problem that you are not able to create groups? Knut On

[Dhis2-users] DAYS OR MONTHS BETWEEN ENROLLMENT AND AN EVENT

2018-02-07 Thread Stanley Kalyati
Hi All, Anyone that can help with how i can create a program indicator to filter all clients that have enrolled into a program before december 31,2017 and accessed a particular service and also clients that enrolled into a program after december 31,2017 and accessed a service? Anything i can use

Re: [Dhis2-users] Dataset Custom Forms (CSS & JS)

2018-02-07 Thread Makhate Makhate
Thanks, I ran the POST-request and it looks like it ran successfully because i can see the CSS file when i run /api/28/files/style. One last thing, how do i link/reference that css file? I'm asking this because the styling is not working on my forms. Warmest regards, Makhate, ICAP Lesotho On

Re: [Dhis2-users] Problem with the d2:condition function in program operator

2018-02-07 Thread Markus Bekken
Thanks, and that would be great Martin :) https://github.com/dhis2/dhis2-docs Markus > 7. feb. 2018 kl. 09:13 skrev Martin Van Aken : > > Just tried, it works! This will help me & more importantly some users a lot! > Long history of being bitten by operator priorities,

Re: [Dhis2-users] Problem with the d2:condition function in program operator

2018-02-07 Thread Markus Bekken
Hi Martin, I think it is the parenthesis within the condition that breaks the evaluation. When I would always argue for adding the parenthesis for the clarity of reading the expression, I think you are in luck here - if you remove all the parenthesis your numerical operators will be applied in

Re: [Dhis2-users] [Dhis2-devs] Using program rule expressions in Program indicator expressions

2018-02-07 Thread Bernard Sadaka (IM Advisor)
Hello Markus, Thank you for the list and explanation; is there any expected timeline for that? (JIRA issue, I can track?) With regards to the number of decimals, even if set to zero at the program indicator and after running the analytics, the “pivot table” still shows the digits.

Re: [Dhis2-users] Problem with the d2:condition function in program operator

2018-02-07 Thread Martin Van Aken
Just tried, it works! This will help me & more importantly some users a lot! Long history of being bitten by operator priorities, so I tend to go the "non ambiguous way". Are the operator priorities documented somewhere (I expect the "standard math ones", but better safe than sorry) Thanks for

Re: [Dhis2-users] [Dhis2-devs] Using program rule expressions in Program indicator expressions

2018-02-07 Thread Markus Bekken
Hi there Bernard, We aim to support more and hopefully all the program rule functions in program indicators. Unfortunately we are not there yet, and the list of supported functions in program indicators can be found here: 19.4.5. Reference information: Functions, variables and operators to use