Re: [Dhis2-devs] [Dhis2-users] Tracker Capture - Input Fields Validation

2016-04-27 Thread Markus Bekken
ons include lookup functions into other tables or stored > views in the system? > > Regards > Calle > > On 25 April 2016 at 14:37, Markus Bekken <mailto:markus.bek...@gmail.com>> wrote: > Hi Muhammad, > > There is support for this in the 2.23 release(just out

Re: [Dhis2-devs] [Dhis2-users] Fwd: Count events for specific program stage

2016-05-03 Thread Markus Bekken
Hi there Ramaso, the reason you are not seeing the program indicator in tracker capture for the particular TEI below is the program indicators filter. There is a shortcoming when combining the filters with indicators shown in the data entry form. Working on fixing this, but in the meantime we ca

Re: [Dhis2-devs] Tracker capture and custom forms

2016-05-10 Thread Markus Bekken
Hi Olav! Let me address your second point :) > 10. mai 2016 kl. 15.45 skrev Olav Poppe : > > Hi devs, > first, I’ve been working on a custom data entry form for tracker (2.22 and > 2.23). I’ve customised the same form as programmes with and without > registration, and I notice that in Tracker

Re: [Dhis2-devs] [Dhis2-users] Status of ImportSummaries in /api/events

2016-05-12 Thread Markus Bekken
Hi Morten, the TC/EC apps should still work as before if this is updated. Seems like a sensible fix. Will the https status of the whole call follow the importsummaries status? Markus > 12. mai 2016 kl. 12.32 skrev Vanya Seth : > > Ok sounds good. > > Regards > Vanya > > On Thu, May 12, 2016

Re: [Dhis2-devs] dueDate in Tracker Capture

2016-05-17 Thread Markus Bekken
Hi there Shivee, As you might now, the dueDate basically represents which date the event was supposed to take place at. For events that has actually taken place, you would also fill in the eventDate of the event that is posted, and the dueDate would not be that important anymore. When creating

Re: [Dhis2-devs] [Dhis2-users] Tracker Indicators not working as expected

2016-06-01 Thread Markus Bekken
Hi there, you want to make an indicator that compares the dates from two different events within the same enrollment. Unfortunately the program indicators is at the moment only capable of comparing data within one event. Is it a possibility to use the incident date or enrollment date as the adm

Re: [Dhis2-devs] Program rules combining several Dataelements. Not working?

2016-06-01 Thread Markus Bekken
Hi there Jose, the example you gave should work fine. It seems the reason that your particular espression is not evaluated to true(triggering the actions you hooked to the rule), is the middle clause of your expression: > #{AdoptedMethod} == '[35] UID' This evaluates to: > '[35] IUD' == '[35]

[Dhis2-devs] [Bug 1588757] Re: Missing authorities for deleting program indicators and editing program rules

2016-06-03 Thread Markus Bekken
** Changed in: dhis2 Assignee: (unassigned) => Markus Bekken (markus-bekken) -- You received this bug notification because you are a member of DHIS 2 developers, which is subscribed to DHIS. https://bugs.launchpad.net/bugs/1588757 Title: Missing authorities for deleting prog

Re: [Dhis2-devs] [Bug 1588757] Re: Missing authorities for deleting program indicators and editing program rules

2016-06-04 Thread Markus Bekken
Thanks :) I will look at it shortly. I was thinking we can simplify the authorities a bit for program rules, no need to have different authorities for actions and program rules for example. > 3. jun. 2016 kl. 15.37 skrev Juan Manuel Alcantara > : > > Hi Markus > Lets also add > > F_PROGRAMRUL

[Dhis2-devs] [Bug 1585785] Re: Program rule with skip logic invoked on repeatable stage result in 2nd stage not rendering all Data Elements

2016-06-06 Thread Markus Bekken
is2 Assignee: (unassigned) => Markus Bekken (markus-bekken) -- You received this bug notification because you are a member of DHIS 2 developers, which is subscribed to DHIS. https://bugs.launchpad.net/bugs/1585785 Title: Program rule with skip logic invoked on repeatable stage result

Re: [Dhis2-devs] Unique tracked entity attributes are now compulsory?

2016-06-08 Thread Markus Bekken
Hi guys! Chiming in - I think Abyot is on leave today. This seems to be a discrepancy that we should just resolve one way or the other. You might say that a blank value is not unique, but I have also recently encountered a use case where we needed a non-compulsory unique attribute like you Jose.

[Dhis2-devs] [Bug 1593574] Re: Tracker program hangs on data entry / event capture screen

2016-06-17 Thread Markus Bekken
The screenshots 1 and 2 is coming from a discrepancy between the latest build on the dev server and the latest built tracker capture from git. This problem will be resolved with the next deploy. The problem in screenshot 3 should be fixed with the latest 2.23 build. -- You received this bug noti

[Dhis2-devs] [Bug 1593574] Re: Tracker program hangs on data entry / event capture screen

2016-06-20 Thread Markus Bekken
** Changed in: dhis2 Status: Incomplete => Fix Committed -- You received this bug notification because you are a member of DHIS 2 developers, which is subscribed to DHIS. https://bugs.launchpad.net/bugs/1593574 Title: Tracker program hangs on data entry / event capture screen Status in

Re: [Dhis2-devs] Program indicators - option codes or text?

2016-06-28 Thread markus . bekken
Nicely spotted. Codes is used in analytics, but names in the client side calculation. Will fix so codes isused in TC for indicators. Markus > Den 28. jun. 2016 kl. 16.12 skrev Olav Poppe : > > Hi devs, I’ve only tested this in trunk: > when configuring program indicators the «Filter» descriptio

Re: [Dhis2-devs] Trunk tracker bugs/issues

2016-06-28 Thread Markus Bekken
Thanks Olav, see some inline comments. > 28. jun. 2016 kl. 14.52 skrev Olav Poppe : > > Hi devs, > this might all be known issues since this is trunk, but I’ve been testing the > tracker (EC/TC) part of trunk the last two days and though I’d report the > issues I’ve come over: > - TC: «auto-g

[Dhis2-devs] [Bug 1597137] [NEW] orphan program rule actions

2016-06-28 Thread Markus Bekken
Public bug reported: Working with the programs app maintaining program rules, it is possible to create orphaned program rule actions in the database. These would never trigger or be visible anywhere except as unwanted litter the database. ** Affects: dhis2 Importance: Undecided Stat

[Dhis2-devs] [Bug 1569793] Re: attribute unique in program not working

2016-06-29 Thread Markus Bekken
As we are not fixing this before 2.24, the options will be hidden. Be sure to revert revision 23470 when the support is implemented. ** Description changed: When using the "unique in program scope" option for attributes, registering users will cause a crash on the server side. The workar

Re: [Dhis2-devs] Trunk tracker bugs/issues

2016-06-29 Thread Markus Bekken
tom forms was something we had long before. Now >> seems we no more allow for adding event date during custom form design - I >> will try to investigate. But can't promise if this is going to make it >> before 2.24. >> >> -- >> Abyot A. Gizaw. >> Se

Re: [Dhis2-devs] Program indicators - option codes or text?

2016-07-01 Thread Markus Bekken
Hi again, this is fixed in the latest built 2.24 and trunk. Markus > 28. jun. 2016 kl. 16.37 skrev markus.bek...@gmail.com: > > Nicely spotted. Codes is used in analytics, but names in the client side > calculation. Will fix so codes isused in TC for indicators. > > Markus > > Den 28. jun. 20

[Dhis2-devs] [Bug 1597981] Re: can't add more than 1 attribute as source field in program rule

2016-07-02 Thread Markus Bekken
** Changed in: dhis2 Assignee: (unassigned) => Markus Bekken (markus-bekken) -- You received this bug notification because you are a member of DHIS 2 developers, which is subscribed to DHIS. https://bugs.launchpad.net/bugs/1597981 Title: can't add more than 1 attribute as source

[Dhis2-devs] [Bug 1599062] Re: program rule doesn't work onload in tracker capture registration form

2016-07-05 Thread Markus Bekken
** Changed in: dhis2 Assignee: (unassigned) => Markus Bekken (markus-bekken) -- You received this bug notification because you are a member of DHIS 2 developers, which is subscribed to DHIS. https://bugs.launchpad.net/bugs/1599062 Title: program rule doesn't work onload in

Re: [Dhis2-devs] Program indicators in data entry (EC)

2016-07-05 Thread Markus Bekken
Hi Olav! Its tagged 2.25: https://blueprints.launchpad.net/dhis2/+spec/program-rules-d2-condition Markus > 5. jul. 2016 kl. 14.44 skrev Olav Poppe : > > Hi devs, > is there a timeline for supporting all the different indicator expressions in > data entry? E.g. i notice that d2:condition does n

Re: [Dhis2-devs] Program indicators in data entry (EC)

2016-07-05 Thread Markus Bekken
ing the d2:condition in the calculation in > data entry (but perhaps it is the same thing in the background?) > > Olav > > > > >> 5. jul. 2016 kl. 14.46 skrev Markus Bekken : >> >> Hi Olav! >> >> Its tagged 2.25: >> https://blueprints

Re: [Dhis2-devs] TC "complete" modal

2016-07-05 Thread Markus Bekken
Hi Olav. The line seems to break in presence of the "Complete event and enrollment" button - will make a margin above the button to avoid them clinging together. The heading is an explicit style update made in 2.24, but you think the bigger header was nicer? :) Markus > 5. jul. 2016 kl. 14.30

[Dhis2-devs] [Bug 1599062] Re: program rule doesn't work onload in tracker capture registration form

2016-07-06 Thread Markus Bekken
Fixed in latest 2.24 and trunk. Git: https://github.com/dhis2/tracker-capture-app/commit/26e2468a76a154a9cc36958fe13b7f20b3050148 ** Changed in: dhis2 Status: New => Fix Released -- You received this bug notification because you are a member of DHIS 2 developers, which is subscribed to D

Re: [Dhis2-devs] [Dhis2-users] Issue with Tracker Capture Program Rules not working with sections

2016-09-02 Thread Markus Bekken
Hi Absolom. Can you open the browser console(if using Chrome on windows, it is opened with F12), and see if there are any red error messages that shows up when you click "add source field"? Markus > 1. sep. 2016 kl. 13.24 skrev Bridget Magoba : > > Dear Absolom, > I have a program with sectio

Re: [Dhis2-devs] Program rule - selected field to hide changes to None

2016-09-27 Thread Markus Bekken
Thanks for reporting, Calle. There was a related fix on trunk yesterday night that seems to have fixed the below mentioned issue as well. Looking into fixing the same in 2.24 now. Markus > 27. sep. 2016 kl. 12.16 skrev Calle Hedberg : > > Hi > > This increasingly looks like a significant bug

Re: [Dhis2-devs] Program rule - selected field to hide changes to None

2016-09-27 Thread Markus Bekken
hts issue. Logging in as system sorted that problem out - it > looks like the standard admin user don't have privileges to do anything on > program rules. > > Regards > calle > > On 27 September 2016 at 13:09, Markus Bekken <mailto:markus.bek...@gmail.com>> wrote

Re: [Dhis2-devs] [Bug 1612375] [NEW] Program indicators: error in percentage calculations when using d2:condition (inconsistent results at different levels of aggregation)

2016-10-07 Thread Markus Bekken
Hi there Sam, thank you for the detailed report. The division is done with integers when both the inputs are integers. So the result of the divison is rounded down from f.ex. 0,66 to 0 before the multiplication with 100 happens. You found a workaround yourself, another option would be to do the

Re: [Dhis2-devs] Program rule - selected field to hide changes to None

2016-10-07 Thread Markus Bekken
s2-devs-bounces+ditana > <mailto:dhis2-devs-bounces%2Bditana>=hispna@lists.launchpad.net > <mailto:hispna@lists.launchpad.net>] On Behalf Of Markus Bekken > Sent: Tuesday, September 27, 2016 3:06 PM > To: calle.hedb...@gmail.com <mailto:calle.hedb...@gmail.com> > C

Re: [Dhis2-devs] Program indicators and attributes

2016-10-18 Thread Markus Bekken
Hey Olav. Thanks for reporting. Reproduced this, will fix and get back to you. Markus > 18. okt. 2016 kl. 18.56 skrev Olav Poppe : > > Hi devs, we’re having problems making a program indicator that attributes in > the filter, using 2.24. We’ve tried different types of attributes (number, > opt

Re: [Dhis2-devs] Program indicators and attributes

2016-10-19 Thread Markus Bekken
Hey again Olav, this is fixed in the latest 2.24, and shortly in 2.25 and master. Markus > 19. okt. 2016 kl. 00.36 skrev Markus Bekken : > > Hey Olav. > Thanks for reporting. Reproduced this, will fix and get back to you. > > Markus > >> 18. okt. 2016 kl. 18.56 s

Re: [Dhis2-devs] [Dhis2-users] Tracker incident dates changes

2016-10-20 Thread Markus Bekken
Hi David, what is the time zone of the server? This is a known bug when you have a time zone different than UTC. Markus > 20. okt. 2016 kl. 09.31 skrev David Itana : > > Dear DHIS community > > I am using tracker Version: 2.24, Build revision: e2f8d0e, Build date: > 2016-10-13 06:20. I have

[Dhis2-devs] [Bug 1635583] Re: Program indicators are not properly evaluated

2016-10-28 Thread Markus Bekken
** Changed in: dhis2 Assignee: (unassigned) => Markus Bekken (markus-bekken) -- You received this bug notification because you are a member of DHIS 2 developers, which is subscribed to DHIS. https://bugs.launchpad.net/bugs/1635583 Title: Program indicators are not properly evalua

Re: [Dhis2-devs] Issue with calculation of Age through program indicator

2016-11-03 Thread Markus Bekken
Hi there Saurabh, The d2:yearsBetween() is not yet supported in the server side aggregation of program indicators. For now you would have to use d2:daysBetween() / 365 - which is not 100% correct as the leap years is not considered. You wrote d2daysBetween in your mail below(without the colon b

Re: [Dhis2-devs] update tracker profile form

2016-11-04 Thread Markus Bekken
Maybe you are being hit bu this? Unique in program does not work properly and was therefore removed as an option in the uniqueness scope for tracked entity attributes. Probably this was not backported all the way to 2.21. Try a different uniqueness scope for your attributes, and see if that hel

Re: [Dhis2-devs] [issue] Metadata Import fails when modifying a tracker program and tracker program stage

2016-11-04 Thread Markus Bekken
Hi Archana! I'll let Morten or someone else comment on possible fixes, but recently had the same problem as you describe in "with registration" below. I didn't dig to the bottom of it but found a workaround: You can manually clean out the program_attribute rows connected to the program(s) being

Re: [Dhis2-devs] Program Rules: NULL is not defined

2016-11-19 Thread Markus Bekken
Hi there, There should not be any incompatibilities between 2.24 and 2.25 program rules. Can you provide a login privately so I can debug and try to uncover the problem? In program rules, NULL is not supported. You can use d2:hasValue('variableName'), this statement will be true if the value is

Re: [Dhis2-devs] Program rule actions of type ASSIGN not working on SCHEDULED events

2016-11-25 Thread Markus Bekken
Hi there, thank you for the detailed report below. This problem was fixed and released around the time of the original request, but for some reason has not been included in the later 2.25 builds. I redeployed and rebuilt the code now, please try again with the latest 2.25. (https://github.com/dh

Re: [Dhis2-devs] [Dhis2-users] Program rules to show/hide sections.

2016-12-04 Thread Markus Bekken
Hey there Arun, Which version of DHIS are you using? And is this tracker or event capture? It seems there is a bug when several rules are working to hide or show the same section - one of the rules will always win. What should have happened is of course what you expected: The section should be h

Re: [Dhis2-devs] [Dhis2-users] Program rules to show/hide sections.

2016-12-08 Thread Markus Bekken
un Paul <mailto:paul.a...@gmail.com>> wrote: > Hi Markus, > > I am using Tracker. > Version is 2.23, but I tried this on the demo site (2.25) it's reproducible > there too. > It will be great to get a fix for this. > > Thanks, > Arun > > > &

Re: [Dhis2-devs] "Error"-type program ruled triggered before data entry opens

2017-01-04 Thread Markus Bekken
Hi Olav, until recently the "Show error preventing completion" was ignored by the registration form. To have it more uniform with how other rules relate to the registration form - and support the "First stage appears on registration page" better - this was changed. Now the rules are being run i

Re: [Dhis2-devs] [Dhis2-users] Program Indicators

2017-01-13 Thread Markus Bekken
Hi there Seth, the option set codes only need to be unique within each option set. One option set can be Male - 1 Female - 2 And another can be Yes - 1 No - 0 But when your option set is Male - 1 Female - 1 ...then the two options will always be seen as "1" when analyzing the data. Markus

Re: [Dhis2-devs] [Dhis2-users] Program Indicators

2017-01-13 Thread Markus Bekken
ement Officer > Drugs for Neglected Diseases initiative – Africa Regional Office > Tetezi Towers, 3rd Floor, George Padmore Road, Kilimani| P.O. Box 21936 - > 00505| Nairobi | Kenya > T: +254 020 3995000 | M: +254 727 389 149| sok...@dndi.org > <mailto:sok...@dndi.org> | sky

Re: [Dhis2-devs] Error in Program Rule

2017-01-16 Thread Markus Bekken
Hi Rady, I could not reporoduce the error in my local or on the demo server, but they are running a newer version of 2.25. Is there a possibility to update your server to the latest 2.25? If you still have the problem on the latest 2.25, it would be good if you can send a database dump privatel

Re: [Dhis2-devs] Error in Program Rule

2017-01-17 Thread Markus Bekken
Thank you for the database Rady. Found that the problem was triggered by an apostrophe in a program stage section name. This weakness is fixed now - please try again with the latest 2.25. Best regards, Markus > 16. jan. 2017 kl. 23.02 skrev Markus Bekken : > > Hi Rady, >

Re: [Dhis2-devs] Clarification around program rules

2017-01-30 Thread Markus Bekken
Hi Archana, sorry for the delayed response. Functionality for editing of variables is regrettably lacking in the program rules editor. Support for editing and renaming is coming in a later release, possibly at the same time as we modernize the program rules editor UI. Name change is currently o

Re: [Dhis2-devs] Tracker Program Indicator using data element with option sert

2017-01-31 Thread Markus Bekken
Hi there Brent, As Calle says, you should use the option set code for the program indicators. In your example below it seems you are using parenthesis around your condition value. You should remove these and use apostrophes to quote the option set code like this: #{programstage.dataelement} == '

Re: [Dhis2-devs] Tracker Program Indicator using data element with option sert

2017-01-31 Thread Markus Bekken
; optionSETs > > Regards > calle > > On 31 January 2017 at 10:48, Markus Bekken <mailto:mar...@dhis2.org>> wrote: > Hi there Brent, > As Calle says, you should use the option set code for the program indicators. > In your example below it seems you are usin

Re: [Dhis2-devs] OptionSets of type Number - is optionvalue CODES then limited to number?

2017-02-11 Thread Markus Bekken
Hi Calle - the data type of the option set is meant to dictate what type of data the option set codes will be. I would say the error was in 2.24 and older dhis versions - allowing letters in codes for numeric option sets seems like a bug. Markus > Den 11. feb. 2017 kl. 12.40 skrev Calle Hedbe

Re: [Dhis2-devs] Tracking information between Program Stages and sections

2017-02-11 Thread Markus Bekken
Hi there! One option is to make a program indicator that shows the test score. This will make this piece of information visible in the Indicators widget throughout all program stages. It is also possible to automatically fill fields based on values in other fields using program rules, but it de

Re: [Dhis2-devs] Program indicator "hasValue"

2017-03-01 Thread Markus Bekken
Hi Olav, the following syntax is now supported: > - #{wmSb9TmevMn.jeK5z6acB3N} == ‘’ Jira issue: https://jira.dhis2.org/browse/DHIS2-1185 Best regards, Markus > 1. feb. 2017 kl. 13.40 skrev Olav Poppe : > > Hi devs, I’m trying (in 2.25) to make a p

Re: [Dhis2-devs] [Dhis2-users] PROGRAM INDICATOR CAN DISPLAY DATA WHEN I SWITCH OU TO ROW DIMENSIONS

2017-03-24 Thread Markus Bekken
Dear Georgi and Stanley, There seems to be a problem with the monthly periods in tracker - please register this as a bug in Jira. The problem with the Program Indicators from different years I was not able to reproduce. Using the pivot table app I am able to see program indicator values from di

Re: [Dhis2-devs] [Dhis2-users] CLARITY ON DEFINITIONS FOR COUNTS IN PROGRAM INDICATORS

2017-04-04 Thread Markus Bekken
Hi Stanley! You possibly already read this chapter in the docs: 26.4.1.7. About variables We can probably expand a bit more in the docs on how the different counts work. Here is a bit more of an explanation for

Re: [Dhis2-devs] [Dhis2-users] Analyze across events

2017-04-10 Thread Markus Bekken
Hi there Pramil, if you are on version 2.26 or later you can make a program indicator with the "Enrollment" analytics type: This will let you compare data from different events within the same enrollment. The enrollment date is used as the aggregation date when looking at the data in a pivot.

Re: [Dhis2-devs] [Dhis2-users] Analyze across events

2017-04-10 Thread Markus Bekken
try. Will get back to you > if any issue. Thanks again. > > Pramil > > On Mon, Apr 10, 2017 at 12:59 PM, Markus Bekken <mailto:mar...@dhis2.org>> wrote: > Hi there Pramil, > if you are on version 2.26 or later you can make a program indicator with the > "

Re: [Dhis2-devs] Aggregating events based on last value of the data element

2017-04-10 Thread Markus Bekken
Hi there Chathura, it seems that the query you want to make below can be achieved with enrollment program indicators. Assuming the program is built as a multiple event with registration, and the DE1 is part of a repeating program stage, the inherent properties of enrollment program indicators c

Re: [Dhis2-devs] Aggregating events based on last value of the data element

2017-04-10 Thread Markus Bekken
number of affected children at a given > time. > > Will the child A only be calculated for the month of October 2016 or will he > be counted on subsequent months as well. (In the output we are expecting to > see the prevalence of the disease per month). > > Thank you >

Re: [Dhis2-devs] Aggregating events based on last value of the data element

2017-04-10 Thread Markus Bekken
prevalence (old+new) of Disease X in the given community. Should be something > like below > > July 2016 - 3 > August 2016 - 5 > September 2016 - 6 > October 2016 - 6 > November 2016 - 6 > December 2016 - 6 > January 2017 - 5 > February 2017 - 5 > March 2017 - 5 &

Re: [Dhis2-devs] Program indicator "hasValue"

2017-04-24 Thread Markus Bekken
es as well? > I get > > ERROR: invalid input syntax for type timestamp: ‘' > and > ERROR: COALESCE types timestamp without time zone and integer cannot be > matched > > if I use == ‘’ or == 0 respectively for dates. > > Olav > > > > > >

Re: [Dhis2-devs] Bug - cannot schedule events in Tracker Capture

2017-04-25 Thread Markus Bekken
Hey Sam! Thanks for pushing this up the priority list. It was a relatively small fix, new versions of 2.26 and 2.27 snapshot are ready to download. Best regards, Markus > 25. apr. 2017 kl. 17.35 skrev Sam Johnson : > > Hi devs, > > Just following up on the bug below (DHIS2-1438 >

Re: [Dhis2-devs] [Dhis2-users] Enter data for a future date in Event and Tracker Capture

2017-04-26 Thread Markus Bekken
Hi Georgi and Nick The tracker does not allow allow event dates in the future. This restriction is probably there because most(all so far?) tracker use cases register actual events that already has happened. Knowing nothing about your usecase: Can you model it slightly differently, capturing th

Re: [Dhis2-devs] [Dhis2-users] Auto-Generated Client UICs in Tracker v2.25

2017-04-26 Thread Markus Bekken
Also, you can vote for this issue, and add your specific requirements in the comments: https://jira.dhis2.org/browse/DHIS2-434 > 25. apr. 2017 kl. 17.49 skrev Em Le Hong : > > You can use script on custom form. Until now, there's no way for default form > to generate based on tracked entity a

Re: [Dhis2-devs] [Dhis2-users] Enter data for a future date in Event and Tracker Capture

2017-04-26 Thread Markus Bekken
not allow to create a six-monthly stages for 2016. Note how the > arrow used to go to next period (2016) is inactive. The only possible options > are the two six-monthly periods in 2015. 2014 is not active either. > > > > > > From: Markus Bekken [mail

Re: [Dhis2-devs] Bug - cannot schedule events in Tracker Capture

2017-05-02 Thread Markus Bekken
al care visit’.) I’ve logged this as DHIS2-1507 > <https://jira.dhis2.org/browse/DHIS2-1507>. > > I’d be very grateful if you’re able to find time to look at this again, as > these two bugs have once again broken the Tracker in 2.26. > > Many thanks, Sam. >

Re: [Dhis2-devs] How do filters work in Enrolment program indicators?

2017-05-08 Thread Markus Bekken
Hi Sam, your suspicion is correct. In Enrollment program indicators you will always evaluate the newest value for each of the data elements within repeatable program stages - both for filters and expression. This means that for your use case you will have to use the event analyticstype. I thin

Re: [Dhis2-devs] [Dhis2-users] d2:validatePattern

2017-05-12 Thread Markus Bekken
Hi Simon. The expression below seems all correct. Tested the same in 2.27 snapshot and it works. Which version are you on? Do you have other rules working for the same variable A{index_id}? Markus > 12. mai 2017 kl. 09.28 skrev simon mugisa : > > Hi there evryone, > > has anybody out there be

Re: [Dhis2-devs] Error creation new stage on 2.26

2017-05-15 Thread Markus Bekken
Hi There Pepe, Are you able to reproduce this issue on the demo server? https://play.dhis2.org/demo/ How are you adding the event? The error message you are getting seems to indicate that you are trying to create more than one event in non-repeatable program stage. This should not be possible i

Re: [Dhis2-devs] Aggregation type for Tracker Data Elements

2017-05-18 Thread Markus Bekken
Hi! Which version of Dhis are you using? Can you reproduce on play.dhis2.org? Markus > 16. mai 2017 kl. 20.44 skrev Lorill Crees : > > Hi, > > We have program stage data elements of type integer for year and for month > that show up as sums when visualizing in the pivot table. I see that going

Re: [Dhis2-devs] [Dhis2-users] Create Program indicator to sum DE across events

2017-05-22 Thread Markus Bekken
Hi there Joao, At the moment this is not possible to do within standard DHIS2 functionality. We are working on a change that might enable this kind of calculation, but this is not detailed and planned to a specific release yet. It would be possible to make a custom SQL view that retrieves this.

Re: [Dhis2-devs] Expected "inter-stage" behaviour of ASSIGN program rule action

2017-05-22 Thread Markus Bekken
Hi Victor, Sorry for the delayed response. The ASSIGN rules is only intended to affect the data that the user sees(the active/current event). This usually means that you can create helper fields, but they rely on the basis for your calculations being in the same event, or in previously registe

Re: [Dhis2-devs] Expected "inter-stage" behaviour of ASSIGN program rule action

2017-05-24 Thread Markus Bekken
e a few more use cases where it would be useful to do assignments to > other stages. But we also know that this is a behaviour that was not > initially thought. > > Thanks, > > Víctor > > On 22 May 2017 at 21:43, Markus Bekken <mailto:mar...@dhis2.org>> wrote

Re: [Dhis2-devs] [Dhis2-users] Program Indicator with Period as Condition

2017-06-01 Thread Markus Bekken
ly...@gmail.com>> wrote: > Markus, > > You have just hit the nail on the head.All those conditions are what am > looking for. > > Please guide. > > Thanks > > Stanley > > On May 31, 2017 9:50 AM, "Markus Bekken" <mailto:mar...@dhis2.org>>

Re: [Dhis2-devs] [Dhis2-users] Potential Bug? (skip-logic rules fire on drop-down select but not on radio-button)

2017-06-01 Thread Markus Bekken
Hi there David! I might also be a bit sleep deprived, but have independently confirmed what you describe below. Will fix and get back to you! Markus > 1. jun. 2017 kl. 12.28 skrev David Hagan : > > Hey there community ... > > Someone slap me if I've got this wrong ... > > ... been up nearl

Re: [Dhis2-devs] [Dhis2-users] Potential Bug? (skip-logic rules fire on drop-down select but not on radio-button)

2017-06-02 Thread Markus Bekken
Hey David, a build is triggering now for 2.26 where this should be fixed. Markus > 1. jun. 2017 kl. 14.04 skrev Markus Bekken : > > Hi there David! > I might also be a bit sleep deprived, but have independently confirmed what > you describe below. > > Will fi

Re: [Dhis2-devs] [Dhis2-users] Program Indicator with Period as Condition

2017-06-07 Thread Markus Bekken
ate}, > V{current_date})<120) > > Kindly assist > > Stanley > > > > On Fri, Jun 2, 2017 at 8:14 AM, Immaculate Ayebazibwe <mailto:ekass...@gmail.com>> wrote: > Thank you Markus, > Will get back to you. > > > > Thank you and Kind Regards

Re: [Dhis2-devs] API - event coordinates not getting saved

2017-06-12 Thread Markus Bekken
Dear Harsh, can you reproduce in play? Trying to reproduce through the event capture app, the only difference I see between the two payloads is the number of decimals in the coordinate captured. The apps uses only 6 decimals: "coordinate":{"latitude":9.394871,"longitude":-11.487579} Markus > 12

Re: [Dhis2-devs] [Dhis2-users] Skip-logic on Events with Option Codes - can't seem to get it to work...

2017-06-12 Thread Markus Bekken
Hi David! There is a flag when you create the source field that lets you control wether the value or code should be used in the comparisons. Unfortunately the source fields is not editable once created until version 2.27 onwards. You can check the settings of your source field in the API: https

[Dhis2-devs] [Bug 1490838] Re: tracker get not yet enrolled on opening record

2015-11-18 Thread Markus Bekken
This has not been observed for some time. Wont use time on trying to repro unless it reemerges as a problem. ** Changed in: dhis2 Status: New => Invalid -- You received this bug notification because you are a member of DHIS 2 developers, which is subscribed to DHIS. https://bugs.launchpad

Re: [Dhis2-devs] Program Rules are not working on Dropdowns(Event/Tracker )

2015-11-27 Thread markus . bekken
Hi Shourab! Is your dropdown defined using a 'yes/no' data type, or in fact an option set? For yes/no data types, the syntax would be: > #{bcg} == false || #{bcg} == true Or shorthand: > !#{bcg} || #{bcg} If it is an option set, the rule seems correct(but did you mean to hide the fields both

[Dhis2-devs] [Bug 1420646] Re: tracker capture - optionsets at the end of sections getting clipped

2015-12-07 Thread Markus Bekken
** Changed in: dhis2 Status: New => Fix Released -- You received this bug notification because you are a member of DHIS 2 developers, which is subscribed to DHIS. https://bugs.launchpad.net/bugs/1420646 Title: tracker capture - optionsets at the end of sections getting clipped Status i

[Dhis2-devs] [Bug 1524306] [NEW] Program indicator data element selection

2015-12-09 Thread Markus Bekken
Public bug reported: When adding or editing a program indicator: To see data elements to add to the expression, it is necessary to select a program stage. When the program stage is selected, the data elements is displayed. So far so good. Deselect the program stage(select "Please select"). The

[Dhis2-devs] [Bug 1530140] [NEW] (Tracker Capture) Registration - no error message when email format is invalid

2015-12-30 Thread Markus Bekken
Public bug reported: If supplying an invalid email in a tracked entity attribute field for email, the underlying registration fails but no error message is given to the end user. ** Affects: dhis2 Importance: Medium Assignee: Markus Bekken (markus-bekken) Status: Fix Committed

Re: [Dhis2-devs] Issue with program rule in build 20987

2016-01-04 Thread Markus Bekken
Hi Ese! Thanks for reporting. I am able to reproduce this in the cases where the name of the program rule is already taken, but the other program rule is in a different program. Will work on a fix for this, but can you verify wether your case is the same - alternatively send me some more info on

Re: [Dhis2-devs] Issue with program rule in build 20987

2016-01-05 Thread Markus Bekken
> On Mon, Jan 4, 2016 at 11:35 PM, Markus Bekken <mailto:markus.bek...@gmail.com>> wrote: > Hi Ese! > Thanks for reporting. I am able to reproduce this in the cases where the name > of the program rule is already taken, but the other program rule is in a > different prog

Re: [Dhis2-devs] Search person by incidence date range

2016-01-06 Thread Markus Bekken
Dear Nayeem, at the moment you can do an advanced search based on enrollment date, but not incidence date. Would it cover your usecase if the advanced search accomodated the incidence date in the same way as enrollment date? Markus > 6. jan. 2016 kl. 12.02 skrev Nayeem Al Mifthah : > > Dear Al

[Dhis2-devs] [Bug 1524306] Re: Program indicator data element selection

2016-01-10 Thread Markus Bekken
** Changed in: dhis2 Status: New => Fix Committed -- You received this bug notification because you are a member of DHIS 2 developers, which is subscribed to DHIS. https://bugs.launchpad.net/bugs/1524306 Title: Program indicator data element selection Status in DHIS: Fix Committed B

[Dhis2-devs] [Bug 1532787] Re: Tracker Capture - Controls at bottom of first page not working

2016-01-12 Thread Markus Bekken
** Changed in: dhis2 Status: New => Fix Committed -- You received this bug notification because you are a member of DHIS 2 developers, which is subscribed to DHIS. https://bugs.launchpad.net/bugs/1532787 Title: Tracker Capture - Controls at bottom of first page not working Status in DH

Re: [Dhis2-devs] DHIS V 2.22 : Tracker Capture Error

2016-01-16 Thread Markus Bekken
Dear Pamod, thank you for reporting. There seems to be a sensitivity towards null values in the repeatable property of program stage. Have made an update to 2.22 that makes the repeatable property false in the cases where it did not previously have a value. You can wait for the newest 2.22 buil

[Dhis2-devs] [Bug 1523838] Re: Decimal numbers lost in Event Capture

2016-01-18 Thread Markus Bekken
Fixed in trunk - R 21779 ** Changed in: dhis2 Status: Confirmed => Fix Committed -- You received this bug notification because you are a member of DHIS 2 developers, which is subscribed to DHIS. https://bugs.launchpad.net/bugs/1523838 Title: Decimal numbers lost in Event Capture Statu

Re: [Dhis2-devs] Reminder about a problem published in launchpad

2016-01-19 Thread Markus Bekken
Knut, perhaps it was marked as a request for more information? > 19. jan. 2016 kl. 10.15 skrev Knut Staring : > > Hi Navod, > > Using this list is much better than posting on Launchpad. But I see that > Markus already applied to you on Launchpad, but his answer seems not to be > reflected in y

[Dhis2-devs] [Bug 1537107] Re: 2.22 - events with audit history can not be deleted

2016-01-22 Thread Markus Bekken
Ths is solved temporarily in Tracker Capture by giving an informative error message to the user that tries to delete an event with an audit history. The ultimate plan is to make the event-delete just being a soft-delete that keeps the event history, but until then we should make an error message th

[Dhis2-devs] [Bug 1514693] Re: Tracker Event Date changes to previous day on refresh

2016-01-29 Thread Markus Bekken
. ** Changed in: dhis2 Assignee: (unassigned) => Markus Bekken (markus-bekken) -- You received this bug notification because you are a member of DHIS 2 developers, which is subscribed to DHIS. https://bugs.launchpad.net/bugs/1514693 Title: Tracker Event Date changes to previous day on refr

[Dhis2-devs] [Bug 1539772] [NEW] tracker compulsory dataelements not compulsory

2016-01-29 Thread Markus Bekken
Public bug reported: The "compulsory" option in a tracker programstages dataelements does not seem to have the wanted effect. When a dataelement is added to a program stage and marked as "compulsory" on a program stage that has the flag for "Complete allowed only if validation passes", this combi

Re: [Dhis2-devs] Question on tracker dates and effecting limits on dates for which data may be captured

2016-02-05 Thread Markus Bekken
Hi Elmarie! Interesting! The mentioned incident and enrollment dates is available in the program rules, with the syntax V{enrollment_date}, V{incident_date} and V{current_date}. See table 30.3 for the full list of supported "variables": http://dhis2.github.io/dhis2-docs/master/en/user/html/dh

Re: [Dhis2-devs] quick question re tracker capture

2016-02-09 Thread Markus Bekken
Hi Craig! Tested now on the latest 2.22, and think I see the same: the "Date in future" column under "Select attributes" in "Edit program" does not seem to work. Will look into why, but it seems like a bug. Markus > 8. feb. 2016 kl. 18.44 skrev Craig Hollingsworth : > > Hi, > > There is an

Re: [Dhis2-devs] Changing Org Unit of TEI

2016-02-09 Thread Markus Bekken
Hi Pamod! It is not currently enabled in trunk, but we have made a implementation for something that might be similar in Palestine. We have made a "Referral" user interface that allows scheduling a visit at another orgunit than the TEI is registered at(and another than the logged in user has sel

Re: [Dhis2-devs] [Dhis2-users] Issue with the new data entry form in tracker capture

2016-02-16 Thread markus . bekken
Hi Ese, thanks for reporting. This is a bug. It was fixed in trunk earlier, and will be backported. Markus > Den 17. feb. 2016 kl. 07.39 skrev Ese Egerega : > > Hello Devs, > > Many thanks for the new improvements in the tracker but there is something > you may want to look into. > > With th

[Dhis2-devs] [Bug 1552106] [NEW] (Tracker Capture) Unchecked yes only fields

2016-03-01 Thread Markus Bekken
by d2:hasValue ** Affects: dhis2 Importance: Undecided Assignee: Markus Bekken (markus-bekken) Status: In Progress ** Changed in: dhis2 Status: New => In Progress ** Changed in: dhis2 Assignee: (unassigned) => Markus Bekken (markus-bekken) -- You received th

Re: [Dhis2-devs] Clear Audit Log

2016-03-09 Thread Markus Bekken
Hi Pamod, when the event has an audit log there is currently no means of deleting it through the api(and therefore not from the apps). It can be done by first deleting entries in the database table trackedentitydatavalueaudit. Full support is coming, hopefully in 2.23. Markus > 7. mar. 2016 k

  1   2   3   >