[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20299: Minor fix

2015-09-22 Thread noreply
revno: 20299 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Wed 2015-09-23 13:56:47 +0700 message: Minor fix modified: dhis-2/dhis-api/src/main/java/org/hisp/dhis/schema/Schema.java -- lp:dhis2 https://code.launchpad.n

Re: [Dhis2-devs] [Dhis2-users] Program rule does not seem to be working

2015-09-22 Thread Markus Bekken
Hi Ese, there is no limit to the number of rules. I have one usecase with about 150 rules running on a program What does you second rule look like? There is probably something that prevents the second rule from working correctly. > 23. sep. 2015 kl. 08.39 skrev Ese Egerega : > > Hello, > > Ple

Re: [Dhis2-devs] [Dhis2-users] Program rule does not seem to be working

2015-09-22 Thread Ese Egerega
Hello, Please is there a limit to the number of rules I can have on a single form? For example, I have a rule which hides some fields based on if the patient is HIV positive. I created a second rule which is meant to hide other fields based on if the patients HIV status is previously known. Only t

Re: [Dhis2-devs] [Dhis2-users] Update data in DHIS2 by Import/export using CSV file

2015-09-22 Thread Shurajit Dutta
Hi Carlos, You can read about importing data in various formats (including CSV) here: https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s11.html On Fri, Sep 18, 2015 at 2:24 AM, Carlos Nyembwe wrote: > Hi all, > > There are very long as I break myself that question on the mechanism to >

[Dhis2-devs] API - User Settings throwing Exceptions

2015-09-22 Thread Lorill Crees
Hi, I am accessing the User Settings via the api, and if certain settings for a user are not set, the api is throwing a 500 Null Pointer exception. For example, on the demo server, this call properly returns "en": https://apps.dhis2.org/demo/api/userSettings/keyUiLocale?user=admin whereas this c

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20298: tracker/event-capture: css tyle for data entry error/success notification

2015-09-22 Thread noreply
revno: 20298 committer: Abyot Asalefew Gizaw branch nick: dhis2 timestamp: Tue 2015-09-22 18:33:27 +0200 message: tracker/event-capture: css tyle for data entry error/success notification modified: dhis-2/dhis-web/dhis-web-apps/src/

Re: [Dhis2-devs] [Bug 1498505] [NEW] Adding orgunit allows multiple duplicates

2015-09-22 Thread Morten Olav Hansen
I agree this is not good. Mark will fix this in his new apps in a generic way. I think this should be marked no fix. On Tuesday, 22 September 2015, Bob Jolliffe wrote: > Public bug reported: > > When you create a new orgunit and press the "Add" button multiple times > before the page reloads yo

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20297: System setting controller, return 200 on delete

2015-09-22 Thread noreply
revno: 20297 committer: Lars Helge Overland branch nick: dhis2 timestamp: Tue 2015-09-22 17:27:57 +0200 message: System setting controller, return 200 on delete modified: dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/weba

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20296: div is replaced with span as it is affecting custom form style

2015-09-22 Thread noreply
revno: 20296 committer: Abyot Asalefew Gizaw branch nick: dhis2 timestamp: Tue 2015-09-22 16:58:05 +0200 message: div is replaced with span as it is affecting custom form style modified: dhis-2/dhis-web/dhis-web-commons-resources/sr

Re: [Dhis2-devs] [Bug 1498505] [NEW] Adding orgunit allows multiple duplicates

2015-09-22 Thread Sadik Ngoa
Hi Dev, This problem described by Bob also applies to Datasets Sadik On Tue, Sep 22, 2015 at 4:46 PM, Bob Jolliffe wrote: > Public bug reported: > > When you create a new orgunit and press the "Add" button multiple times > before the page reloads you end up with multiple orgunits with the same

[Dhis2-devs] [Bug 1498505] Re: Adding orgunit allows multiple duplicates

2015-09-22 Thread Lars Helge Øverland
This is a general problem across the entire system / for all meta-data. Will be addressed with the new maintenance app. ** Changed in: dhis2 Assignee: (unassigned) => Mark Polak (markpo) ** Changed in: dhis2 Milestone: None => 2.22 -- You received this bug notification because you are

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20295: Authority, initialized authorities list to prevent nullpointers. FileResourceSchemaDescriptor, re...

2015-09-22 Thread noreply
revno: 20295 committer: Lars Helge Overland branch nick: dhis2 timestamp: Tue 2015-09-22 16:06:43 +0200 message: Authority, initialized authorities list to prevent nullpointers. FileResourceSchemaDescriptor, remvoed authorities for no

Re: [Dhis2-devs] [Dhis2-users] Program rule does not seem to be working

2015-09-22 Thread David Muturi
Thanks team !#{location} or #{location} == false works for boolean questions. rgds David 2015-09-22 16:09 GMT+03:00 Abyot Gizaw : > oh yes, thanks Markus. I mixed up :( > > > --- > Thank you, > Abyot. > > On Tue, Sep 22, 2015 at 2:53 PM, Markus Bekken > wrote: > >> Hi guys, >> Try !#{location}

[Dhis2-devs] [Bug 1498505] [NEW] Adding orgunit allows multiple duplicates

2015-09-22 Thread Bob Jolliffe
Public bug reported: When you create a new orgunit and press the "Add" button multiple times before the page reloads you end up with multiple orgunits with the same name and different uids. This causes a surprisingly common problem on high latency connections. The user presses "add" and thinks n

Re: [Dhis2-devs] Program rules issues/questions

2015-09-22 Thread Markus Bekken
Yes, good - will implement this way. As you started at - this approach is also how warning and error messages is working, and a "hide if ANY" approach will be the most equivalent to the other action types. Markus > 22. sep. 2015 kl. 15.40 skrev Olav Poppe : > > Hi, thanks for the quick respons

Re: [Dhis2-devs] Program rules issues/questions

2015-09-22 Thread Olav Poppe
Hi, thanks for the quick response. That explains why I was seeing strange behaviour. Might perhaps be different for other types of actions, but for hiding I think what you suggest would be the best, to hide if ANY rules want to hide a field (that was what I assumes it would do). Regards Olav

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20294: Added @component to FileResourceSchemaDescriptor

2015-09-22 Thread noreply
revno: 20294 committer: Lars Helge Overland branch nick: dhis2 timestamp: Tue 2015-09-22 15:29:05 +0200 message: Added @component to FileResourceSchemaDescriptor modified: dhis-2/dhis-api/src/main/java/org/hisp/dhis/schema/descripto

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20293: Added api/fileResource endpoint. Only supports GET on single object

2015-09-22 Thread noreply
revno: 20293 committer: Halvdan Hoem Grelland branch nick: dhis2 timestamp: Tue 2015-09-22 15:25:37 +0200 message: Added api/fileResource endpoint. Only supports GET on single object added: dhis-2/dhis-api/src/main/java/org/hisp/dhi

Re: [Dhis2-devs] Program rules issues/questions

2015-09-22 Thread Markus Bekken
Hi again, in cases where several rules affects the same dataelement in the user interface, it is currently the rule that is executed last that wins. To fix this, we have to decide on a way to resolve such inconsitencies, and I think the best way of resolving is that we hide the dataelement in ca

Re: [Dhis2-devs] Program rules issues/questions

2015-09-22 Thread Markus Bekken
Hi Olav! Thank you for the report and feedback. Do you have several rules that hides the same field/dropdown? The disable option is a good idea. Will add this. Markus > 22. sep. 2015 kl. 14.30 skrev Olav Poppe : > > Hi devs, > trying to set up some program rules for an Event program in 2.20 (

Re: [Dhis2-devs] [Dhis2-users] Program rule does not seem to be working

2015-09-22 Thread Abyot Gizaw
oh yes, thanks Markus. I mixed up :( --- Thank you, Abyot. On Tue, Sep 22, 2015 at 2:53 PM, Markus Bekken wrote: > Hi guys, > Try !#{location} or #{location} == false > > Best regards, > Markus > > 22. sep. 2015 kl. 14.49 skrev Abyot Gizaw : > > Hi David, > > If value "No" is type boolean, the

Re: [Dhis2-devs] [Dhis2-users] Program rule does not seem to be working

2015-09-22 Thread Markus Bekken
Hi guys, Try !#{location} or #{location} == false Best regards, Markus > 22. sep. 2015 kl. 14.49 skrev Abyot Gizaw : > > Hi David, > > If value "No" is type boolean, then try 'true' instead of no. It should work. > That is something we planned to address. > > > --- > Thank you, > Abyot. > >

Re: [Dhis2-devs] [Dhis2-users] Program rule does not seem to be working

2015-09-22 Thread Abyot Gizaw
Hi David, If value "No" is type boolean, then try 'true' instead of no. It should work. That is something we planned to address. --- Thank you, Abyot. On Tue, Sep 22, 2015 at 2:45 PM, David Muturi wrote: > Hi Abyot, > I have placed a rule see attachment but it doesn't work under data entry >

[Dhis2-devs] Warning/error messages in event capture custom forms

2015-09-22 Thread Olav Poppe
Hi devs, I’m having some issues with the layout of a custom form, due to the way validation warnings are dealt with in event capture (and I assume tracker capture). When a field is edited, a hidden is inserted, but even when hidden this can mess up the layout of table cells etc. I think it use

[Dhis2-devs] Program rules issues/questions

2015-09-22 Thread Olav Poppe
Hi devs, trying to set up some program rules for an Event program in 2.20 (rev 19876) in a custom form, with mixed results. 1) Expression: {DropdownA} != 'Yes'(also tried !{DropdownA} || {DropdownA}!='Yes' ) Action: Hide field {dropdown B} I.e., unless dropdown A = 'Yes' dropdown b sho

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20292: event-capture: better detection of unsaved data

2015-09-22 Thread noreply
revno: 20292 committer: Abyot Asalefew Gizaw branch nick: dhis2 timestamp: Tue 2015-09-22 13:55:28 +0200 message: event-capture: better detection of unsaved data modified: dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event

Re: [Dhis2-devs] [Dhis2-users] Program rule does not seem to be working

2015-09-22 Thread Abyot Gizaw
Hi David, In 2.20 we have hiding only for data elements (during data entry). Hiding attributes (during registration) is available only in trunk. --- Thank you, Abyot. On Tue, Sep 22, 2015 at 1:47 PM, David Muturi wrote: > Hi Abyot > Tracker Capture, I am using version 2.20 build 19884. I upgr

Re: [Dhis2-devs] [Dhis2-users] Program rule does not seem to be working

2015-09-22 Thread David Muturi
Hi Abyot Tracker Capture, I am using version 2.20 build 19884. I upgraded after seeing the online demo working on event capture. I have cleared the Cache. rgds David 2015-09-22 14:42 GMT+03:00 Abyot Gizaw : > Hi, > > Some questions for pin-point the problem: > >- Is this on event or tracker c

Re: [Dhis2-devs] [Dhis2-users] Program rule does not seem to be working

2015-09-22 Thread Abyot Gizaw
Hi, Some questions for pin-point the problem: - Is this on event or tracker capture app? - Which version of DHIS 2 are you using - both version and revision number? - Have you tried this after clearing your browser cache? --- Thank you, Abyot. On Tue, Sep 22, 2015 at 1:38 PM, David

Re: [Dhis2-devs] [Dhis2-users] Program rule does not seem to be working

2015-09-22 Thread David Muturi
Same here, I have put a rule that hides a question based on an answer to a different one i.e {location}=='No' and it doesn't seem to be working. rgds David 2015-09-22 5:53 GMT+03:00 Pramil Liyanage : > You are welcome. Same thing happened in an earlier build and I replaced > with the latest at t

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20291: OrganisationUnitController, simplification using OrganisationUnitQueryParams

2015-09-22 Thread noreply
revno: 20291 committer: Lars Helge Overland branch nick: dhis2 timestamp: Tue 2015-09-22 13:29:52 +0200 message: OrganisationUnitController, simplification using OrganisationUnitQueryParams modified: dhis-2/dhis-api/src/main/java/or

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20290: OrganisationUnitController, removed pointless clause

2015-09-22 Thread noreply
revno: 20290 committer: Lars Helge Overland branch nick: dhis2 timestamp: Tue 2015-09-22 13:13:07 +0200 message: OrganisationUnitController, removed pointless clause modified: dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20289: DataElementOperandController, adding totals param

2015-09-22 Thread noreply
revno: 20289 committer: Lars Helge Overland branch nick: dhis2 timestamp: Tue 2015-09-22 12:59:42 +0200 message: DataElementOperandController, adding totals param modified: dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/we

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20288: Minor

2015-09-22 Thread noreply
revno: 20288 committer: Lars Helge Overland branch nick: dhis2 timestamp: Tue 2015-09-22 12:50:34 +0200 message: Minor modified: dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/dataelement/DataElementOpera

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20287: DataElementOperandController, moving code to CollectionUtils

2015-09-22 Thread noreply
revno: 20287 committer: Lars Helge Overland branch nick: dhis2 timestamp: Tue 2015-09-22 12:47:41 +0200 message: DataElementOperandController, moving code to CollectionUtils modified: dhis-2/dhis-support/dhis-support-commons/src/mai

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20286: Removed unused method

2015-09-22 Thread noreply
revno: 20286 committer: Lars Helge Overland branch nick: dhis2 timestamp: Tue 2015-09-22 12:27:46 +0200 message: Removed unused method modified: dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementCategoryService.java

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20285: Data element operand, centralized method

2015-09-22 Thread noreply
revno: 20285 committer: Lars Helge Overland branch nick: dhis2 timestamp: Tue 2015-09-22 12:25:26 +0200 message: Data element operand, centralized method modified: dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementC

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20284: Typo in method name

2015-09-22 Thread noreply
revno: 20284 committer: Halvdan Hoem Grelland branch nick: dhis2 timestamp: Tue 2015-09-22 12:17:31 +0200 message: Typo in method name modified: dhis-2/dhis-api/src/main/java/org/hisp/dhis/eventreport/EventReportService.java dhis

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20283: minor

2015-09-22 Thread noreply
revno: 20283 committer: Halvdan Hoem Grelland branch nick: dhis2 timestamp: Tue 2015-09-22 12:16:12 +0200 message: minor modified: dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/DataValueController.java

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20282: Re-arranged data element operand methods

2015-09-22 Thread noreply
revno: 20282 committer: Lars Helge Overland branch nick: dhis2 timestamp: Tue 2015-09-22 11:35:56 +0200 message: Re-arranged data element operand methods modified: dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementC

[Dhis2-devs] [Bug 1497160] Re: Event Report and Visualiser This Week and Last Swapped

2015-09-22 Thread Lars Helge Øverland
Fixed in 2.20 and trunk. ** Changed in: dhis2 Importance: Undecided => Medium ** Changed in: dhis2 Assignee: (unassigned) => Lars Helge Øverland (larshelge) ** Changed in: dhis2 Milestone: None => 2.21 ** Changed in: dhis2 Status: New => Fix Committed -- You received this b

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20281: Relative periods. Not including this period in last* periods. If one wants e.g. last 12 months in...

2015-09-22 Thread noreply
revno: 20281 committer: Lars Helge Overland branch nick: dhis2 timestamp: Tue 2015-09-22 10:09:20 +0200 message: Relative periods. Not including this period in last* periods. If one wants e.g. last 12 months including this one can sel

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 20280: Codestyle

2015-09-22 Thread noreply
revno: 20280 committer: Lars Helge Overland branch nick: dhis2 timestamp: Tue 2015-09-22 09:35:15 +0200 message: Codestyle modified: dhis-2/dhis-api/src/main/java/org/hisp/dhis/reporttable/ReportTable.java -- lp:dhis2 https://code.