Re: [Dhis2-devs] [Dhis2-users] Issue while using curl command

2013-03-03 Thread Morten Olav Hansen
Hi Did you follow all the instructions? remember that this db is cleaned every night, so you will need to also do the part that sends data to the server. -- Morten On Sat, Mar 2, 2013 at 5:17 PM, Ola Hodne Titlestad wrote: > Forwarding to devs list. > > Ola > --- > On 2 Mar 2013 14:49, "Ji

Re: [Dhis2-devs] Build falure

2013-03-04 Thread Morten Olav Hansen
Lars has fixed this now -- Morten On Mon, Mar 4, 2013 at 10:46 AM, Hieu Dang Duy wrote: > Hi, > > Seemly, there is a missing commit file as DataMartTask which is placed at > the package org.hisp.dhis.system.scheduling (dhis-support-system). Please > check it out. Thanks > > -- > "*Expert By Cha

Re: [Dhis2-devs] learning how to navigate dhis2 sourcecode

2013-03-04 Thread Morten Olav Hansen
Hi You should be looking at the struts.xml files, e.g. in the dhis-web-light module, you will find a struts.xml where every action is mapped, the actions class then provides the data for the velocity file. -- Morten On Mon, Mar 4, 2013 at 12:35 PM, Nyaika David wrote: > Hi Guys > > I have pic

Re: [Dhis2-devs] learning how to navigate dhis2 sourcecode and flow

2013-03-04 Thread Morten Olav Hansen
On Mon, Mar 4, 2013 at 4:48 PM, Nyaika David wrote: > > /main.vm >name="page">/dhis-web-dashboard-integration/mainForm.vm > true > style/dashboard.css > javascript/dropdown.js > > Its in InitAction.java -- Morten __

Re: [Dhis2-devs] learning how to navigate dhis2 sourcecode and flow

2013-03-06 Thread Morten Olav Hansen
;> > #end > > regards > David > > On Mon, Mar 4, 2013 at 5:21 PM, Morten Olav Hansen wrote: > >> >> On Mon, Mar 4, 2013 at 4:48 PM, Nyaika David wrote: >> >>> >>> /main.vm >>> >> name="page">/dh

Re: [Dhis2-devs] dhis2 fred-api can't display chinese organiztion name.

2013-03-07 Thread Morten Olav Hansen
Ok, strange. I will look into it, it should be using UTF-8 for everything. -- Morten On Thu, Mar 7, 2013 at 4:27 PM, easy wrote: > hi,all > the fred-api can't display chinese org name ,all crazy words. > > > > > -- > 此致 > > easy > > 莫愁前路无知己,天下谁人不识君。 > > > > __

Re: [Dhis2-devs] dhis2 fred-api can't display chinese organiztion name.

2013-03-07 Thread Morten Olav Hansen
Can you try and access it with .json at the end? are the names still crazy words? -- Morten On Thu, Mar 7, 2013 at 5:26 PM, Morten Olav Hansen wrote: > Ok, strange. I will look into it, it should be using UTF-8 for everything. > > -- > Morten > > > On Thu, Mar 7, 2013 at

Re: [Dhis2-devs] dhis2 fred-api can't display chinese organiztion name.

2013-03-07 Thread Morten Olav Hansen
This have been fixed in r10046, please try again. -- Morten On Thu, Mar 7, 2013 at 5:30 PM, Morten Olav Hansen wrote: > Can you try and access it with .json at the end? are the names still crazy > words? > > -- > Morten > > > On Thu, Mar 7, 2013 at 5:26 PM, Morten Ol

Re: [Dhis2-devs] Connection error

2013-03-12 Thread Morten Olav Hansen
Hi I would suggest cleaning out the webapps directory, put a new war file there. Restart the server, and then start up tomcat. This sometimes happens if you either start the same instance two times, or maybe the old one was unable to shutdown properly, so you have 1 one in a stale shutdown state,

Re: [Dhis2-devs] Metadata's use of List

2013-04-06 Thread Morten Olav Hansen
On Fri, Apr 5, 2013 at 1:28 AM, Saptarshi Purkayastha wrote: > Is there a reason not to use a Set here instead? > I'm sure some of them can be made sets. But I think the main reason was that we wanted a stable order. For most of the types, this doesn't matter, but for organisation units, we are e

Re: [Dhis2-devs] Metadata's use of List

2013-04-07 Thread Morten Olav Hansen
of expected >> behavior we'd have metadata to be Collection of unique objects. >> >> >> --- >> Regards, >> Saptarshi PURKAYASTHA >> >> My Tech Blog: http://sunnytalkstech.blogspot.com >> You Live by CHOICE, Not by CHANCE >> >> >>

[Dhis2-devs] [Bug 1429630] Re: Missing validation for duplicate category combos

2015-03-10 Thread Morten Olav Hansen
This should be fixed in 2.17, 2.18 and trunk now, please try it out ** 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/1429630 Title: M

Re: [Dhis2-devs] Event-data CSV import issues

2015-03-12 Thread Morten Olav Hansen
It was enhanced a few days ago, yes.. and is now in latest 2.17, 2.18 and trunk -- Morten On Thu, Mar 12, 2015 at 11:31 AM, Calle Hedberg wrote: > Knut, > > Unless it was enhanced during the last 2-3 days, then it is still very > slow compared to other data imports (e.g importing 5.6 mill datav

Re: [Dhis2-devs] Error creating program stage

2015-03-17 Thread Morten Olav Hansen
Hi Mahendra Yes, this is something that was added recently I think.. I will have a look at it -- Morten On Tue, Mar 17, 2015 at 1:19 PM, Mahendra Kariya < mahendra.kar...@thoughtworks.com> wrote: > Hi All, > > When we are POSTing the following payload to /api/metadata, we are getting > a NullPo

Re: [Dhis2-devs] Error creating program stage

2015-03-17 Thread Morten Olav Hansen
Please try again with rev 18617. -- Morten On Tue, Mar 17, 2015 at 6:00 PM, Mahendra Kariya < mahendra.kar...@thoughtworks.com> wrote: > Thanks! > > On Tue, Mar 17, 2015 at 4:26 PM, Morten Olav Hansen > wrote: > >> Hi Mahendra >> >> Yes, this is someth

Re: [Dhis2-devs] Filtering fields on /api/metadata

2015-03-18 Thread Morten Olav Hansen
Hi Mahendra Field filtering has never worked on /api/metadata endpoint, it only supports viewClasses.. I do want to rewrite that endpoint to support field filtering, but its not something that can be done quickly (unless we hacked it in) You can however do something like this (I think this is clo

Re: [Dhis2-devs] API to get dataset section order

2015-03-18 Thread Morten Olav Hansen
This have now been added to trunk -- Morten On Wed, Mar 18, 2015 at 6:18 PM, Mahendra Kariya < mahendra.kar...@thoughtworks.com> wrote: > Hi Lars, > > Thanks for the info. We noticed that the dataset.sections array is ordered > as per sections sort order. What we are looking for is a separate fi

Re: [Dhis2-devs] DataSet's CategoryCombo.

2015-03-20 Thread Morten Olav Hansen
Hi Araz What are you trying to do? send data values to a server? -- Morten On Fri, Mar 20, 2015 at 5:17 PM, Araz Abishov wrote: > Hello everyone, > > CategoryCombo of DataSet contains both CategoryOptionCombos and Categories > (with CategoryOptions). > > I am a little bit confused here - what

Re: [Dhis2-devs] API to get dataset section order

2015-03-22 Thread Morten Olav Hansen
Please try again with rev 18655. -- Morten On Sun, Mar 22, 2015 at 1:36 PM, Mahendra Kariya < mahendra.kar...@thoughtworks.com> wrote: > Hi Morten, > > Did you get time to take a look at this? > > On Thu, Mar 19, 2015 at 1:28 PM, Mahendra Kariya < > mahendra.kar...@thoughtworks.com> wrote: > >>

[Dhis2-devs] [Bug 1424604] Re: Category option combo not matched on import

2015-03-23 Thread Morten Olav Hansen
** 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/1424604 Title: Category option combo not matched on import Status in DHIS 2: Fix Committ

Re: [Dhis2-devs] [Dhis2-users] dhis2 2, 18 resource table generate Bugs

2015-03-23 Thread Morten Olav Hansen
Yes, this is a known bug. I'm still looking into it, it only happens with certain timezones, will let you know when it has been fixed. -- Morten On Mon, Mar 23, 2015 at 3:05 PM, Ola Hodne Titlestad wrote: > Hi Fatema, > > This is not a database issue, but a bug that occurs when generating the >

Re: [Dhis2-devs] Error POSTing programs metadata

2015-03-30 Thread Morten Olav Hansen
Could you please try again with rev 18738 -- Morten On Sat, Mar 28, 2015 at 12:42 AM, Mahendra Kariya < mahendra.kar...@thoughtworks.com> wrote: > Hi, > > I was just wondering if someone got time to take a look at this. > > On Tue, Mar 24, 2015 at 11:59 AM, Mahendra Kariya < > mahendra.kar...@th

Re: [Dhis2-devs] Filtering by attribute values on /api/organisations

2015-03-30 Thread Morten Olav Hansen
Hi You can do something like this: /api/organisationUnits?filter=attributeValues.attribute.id: eq:ATTRIBUTE_ID&filter=attributeValues.value:eq:VALUE You can read more about the object filter here: https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s06.html Please be aware that attributeVal

Re: [Dhis2-devs] Filtering by attribute values on /api/organisations

2015-03-30 Thread Morten Olav Hansen
Please also not that in 2.19 metadata attributes support option-sets, which might be nice if you have a pre-defined list of ou types. -- Morten On Mon, Mar 30, 2015 at 4:33 PM, Morten Olav Hansen wrote: > Hi > > You can do something like this: > /api/organisation

Re: [Dhis2-devs] Error POSTing programs metadata

2015-03-30 Thread Morten Olav Hansen
> { > "status": "SUCCESS", > "importCount": { > "imported": 1, > "updated": 0, > "ignored": 0, > "deleted": 0 > }, > "type": "P

Re: [Dhis2-devs] Possible bug related to "value" field in datavalues in api/events.

2015-03-30 Thread Morten Olav Hansen
Please also remember that multiple names can point to the same code value, so you probably want to indicate that somehow in your UI, it is impossible to know which name was used when collecting the code. -- Morten On Mon, Mar 30, 2015 at 7:42 PM, Lars Helge Øverland wrote: > That's correct. > >

Re: [Dhis2-devs] Error POSTing programs metadata

2015-03-31 Thread Morten Olav Hansen
On Tue, Mar 31, 2015 at 3:53 PM, Shilpa Goley wrote: > "programStageDataElements": [ > { > "id": "a36531ccdvv", > "name": "Arrival Date - Burn Unit" > } > ], > Just to confirm, this is pointing to an

Re: [Dhis2-devs] Fwd: Re: Sending Mail from complete dataset

2015-03-31 Thread Morten Olav Hansen
Did you check that they all have a valid email account? did you check to see if your email server got any bounces? (or maybe your emails even ended up in the spam folder?), also check your server logs to see if there is anything there The reason for using bcc is probably to hide other peoples emai

Re: [Dhis2-devs] Fwd: Re: Sending Mail from complete dataset

2015-03-31 Thread Morten Olav Hansen
emails to [TO] field. > > > > On Wed, Apr 1, 2015 at 1:45 PM, Morten Olav Hansen > wrote: > >> Did you check that they all have a valid email account? did you check to >> see if your email server got any bounces? (or maybe your emails even ended >> up in the spam

Re: [Dhis2-devs] Error POSTing programs metadata

2015-04-01 Thread Morten Olav Hansen
;: [ > { > "id": "skCkh4ifu34", > "dataElement": { > "id": "a365abcddba", > "name": "Arrival Date - Burn Unit" >

[Dhis2-devs] [Bug 1430226] Re: Multi-org unit data entry does not work below offline org unit level

2015-04-08 Thread Morten Olav Hansen
** 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/1430226 Title: Multi-org unit data entry does not work below offline org unit level

[Dhis2-devs] [Bug 1430226] Re: Multi-org unit data entry does not work below offline org unit level

2015-04-13 Thread Morten Olav Hansen
** Changed in: dhis2 Status: In Progress => 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/1430226 Title: Multi-org unit data entry does not work below offline org unit level

Re: [Dhis2-devs] Bug on OpenID dhis2

2015-04-14 Thread Morten Olav Hansen
Which version of dhis2? -- Morten 2015-04-15 8:21 GMT+07:00 Ngoc Thanh Nguyen : > After signing in successfully > > Etat HTTP 500 - Filter execution threw an exception > -- > > *type* Rapport d''exception > > *message* *Filter execution threw an exception* > > *descri

Re: [Dhis2-devs] HazelCast Instance Is Not Active Error

2015-04-24 Thread Morten Olav Hansen
Hi Eddie HazelCast was removed a few releases ago, what version of DHIS 2 are you running? could you update to the latest revision of your version (just download same war file again) -- Morten On Thu, Apr 23, 2015 at 8:58 PM, Edwin Mulwa wrote: > Hi, > > We are experiencing this error when ent

Re: [Dhis2-devs] POSTing orgUnitGroups and orgUnits in one transaction

2015-04-27 Thread Morten Olav Hansen
Hi Mahendra No, this is not currently supported. We are working on it, and we might have something for 2.20 (you would have to use PUT /api/organisationUnits/ID). This is happening because our importer is very generic in nature, so before it didn't know which side is the owning side, and in this

Re: [Dhis2-devs] Org Unit Level 2 Issue

2015-04-27 Thread Morten Olav Hansen
Hi The list actually includes the selected orgUnit, so its easier to edit it (this is especially true for root orgUnits). I'm not sure why its in the middle of the list though, did you click on the column? (to sort it) -- Morten On Tue, Apr 28, 2015 at 12:09 PM, Pamod Amarakoon wrote: > > Dear

Re: [Dhis2-devs] Org Unit Level 2 Issue

2015-04-27 Thread Morten Olav Hansen
I think it was for the 2.17 release (probably not on the release notes, it was just a small feature). -- Morten On Tue, Apr 28, 2015 at 12:40 PM, Pamod Amarakoon wrote: > > Hi Morten, > > > Thank you for the prompt reply. I have another instance that has a > slightly different org unit hierarch

Re: [Dhis2-devs] 2.19 bug.

2015-04-28 Thread Morten Olav Hansen
Abyot, That message gets displayed in an alert(..) box every time you load the tracker capture app.. do we need to display it at all? we don't do these other places? maybe we can use the same kind of notification we use in the data entry module? seems a bit intrusive that you would have to click a

Re: [Dhis2-devs] Assigning an Org. Unit Group to a Org. Unit with the API

2015-05-03 Thread Morten Olav Hansen
If you can use 2.18 or 2.19, you can use the collection API [1]. If you use 2.18, you -must- use the owning side, which means, add the orgUnit to the orgUnitGroup (and not the other way), in 2.19, you can do both. [1] https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s08.html#d5e1079 -- Mo

Re: [Dhis2-devs] Spanish and French accents in reports as filters

2015-05-11 Thread Morten Olav Hansen
Hi Can you give me a bit more information? where exactly is this? is it in the UI? web-api? which reporting facility? -- Morten On Mon, May 11, 2015 at 2:46 PM, Jose Garcia Muñoz wrote: > > Hi devs, > > We are not being able to filter the reports by options which contains > accents. We just go

Re: [Dhis2-devs] DHIS2: Having issues while trying to create reports/charts

2015-05-12 Thread Morten Olav Hansen
Hi, You need to run analytics, if you don't see that as an option.. it means you don't have superuser rights. Which user are you login in as? admin/district? -- Morten On Tue, May 12, 2015 at 2:20 PM, Muhammad Tahir wrote: > Hi All, > > I have done the following actions in first step, but can

Re: [Dhis2-devs] Remove OptionSet from DataElement

2015-05-12 Thread Morten Olav Hansen
Hi Try and set it to null, and use mergeStrategy=REPLACE (2.19 only) -- Morten On Wed, May 13, 2015 at 2:47 AM, Alan Hill wrote: > Am trying to unassign an optionSet from a dataElement via the api. > > Have tried: > > PUT /api/dataElements/ > > In the JSON, have tried removing the optionSe

Re: [Dhis2-devs] Error When Running 2.19 SQL Update Script

2015-05-13 Thread Morten Olav Hansen
Hi You need to first run DHIS2 2.19 one time, so it can create the column (this was new in 2.19), and then you can run the script to update legacy data (we now have a orgUnit pointer on enrollment/programInstance) -- Morten On Thu, May 14, 2015 at 3:18 AM, Dan Cocos wrote: > Hi All, > > When u

Re: [Dhis2-devs] Event reports not working ?

2015-05-14 Thread Morten Olav Hansen
Hi After you entered the data, did you remember to run the analytics process? reports -> analytics -- Morten On Thu, May 14, 2015 at 11:50 AM, Furqonuddin Ramdhani wrote: > Hi Everyone, > > I'm working on tracker/event capture form (single event without > registration). The form already done a

[Dhis2-devs] [Bug 1455035] Re: Sharing settings changes itself to none thus making the items restricted to Systems Administrators

2015-05-14 Thread Morten Olav Hansen
Exactly when did this happen? in a 2.17 -> 2.18 upgrade? or a 2.18 -> 2.18? upgrade? did you use any kind of import/export functionality? -- You received this bug notification because you are a member of DHIS 2 developers, which is subscribed to DHIS. https://bugs.launchpad.net/bugs/1455035 Titl

[Dhis2-devs] [Bug 1453569] Re: Sharing Feature not working for Dashboards

2015-05-14 Thread Morten Olav Hansen
Hi Can you try and replicate this on http://apps.dhis2.org/demo? (2.19), there shouldn't be any updates to ACL since 2.18, so the bug should be there also.. I have tested on 2.19 / 2.20, and it behaves as it should (I'm assuming the new user does not have the ALL authority, which overrides all ki

[Dhis2-devs] [Bug 1453569] Re: Sharing Feature not working for Dashboards

2015-05-15 Thread Morten Olav Hansen
This have now been fixed in trunk, 2.19, 2.18. ** Changed in: dhis2 Status: New => Fix Committed ** Changed in: dhis2 Assignee: (unassigned) => Morten Olav Hansen (mortenoh) ** Changed in: dhis2 Milestone: None => 2.20 -- You received this bug notification because

[Dhis2-devs] [Bug 1453569] Re: Sharing Feature not working for Dashboards

2015-05-15 Thread Morten Olav Hansen
Hi, I should have completed your other bug report sorry, but I think maybe it was related. Can you please test it and see if it works better? also, if it does not.. can you reproduce on /demo for me? ** Changed in: dhis2 Status: Fix Committed => New -- You received this bug notification

[Dhis2-devs] [Bug 1455035] Re: Sharing settings changes itself to none thus making the items restricted to Systems Administrators

2015-05-15 Thread Morten Olav Hansen
This have now been fixed in trunk, 2.19, 2.18. ** Changed in: dhis2 Status: New => Fix Committed ** Changed in: dhis2 Importance: Undecided => High ** Changed in: dhis2 Assignee: (unassigned) => Morten Olav Hansen (mortenoh) ** Changed in: dhis2 Milestone: Non

Re: [Dhis2-devs] How many records can Organization Unit hold up?

2015-05-15 Thread Morten Olav Hansen
Can you be a bit more specific? where does it "crash"? is it a browser issue? server issue? can you send us the relevant parts of the logs? (if any) If its the browser, can you open the developer tools (f12) and look in the javascript console and see if there is anything in red -- Morten On Fri,

Re: [Dhis2-devs] API - Assign DataElements to ProgramStage

2015-05-21 Thread Morten Olav Hansen
Hi The ID you are using, is it data element ID? -- Morten On Tue, May 19, 2015 at 11:22 PM, Lorill Crees wrote: > We have also tried a POST to this to add each one individually: > > /api/programStages//programStageDataElements/ > > but get this error: > > "Collection programStageDataElements d

Re: [Dhis2-devs] Meta data import

2015-05-21 Thread Morten Olav Hansen
Hi Can you try and export/import OUs only? to verify? is the log giving you any indication of what might be wrong? -- Morten On Fri, May 22, 2015 at 6:42 AM, Thuy Nguyen wrote: > I think you shouldn't export and import from different versions. You > should do this in the same version and upgra

Re: [Dhis2-devs] org.postgresql.util.PSQLException: ERROR: column dataelemen1_.shortname does not exist

2015-05-22 Thread Morten Olav Hansen
On Mon, May 18, 2015 at 2:40 PM, Pooben Dass wrote: > Caused by: org.postgresql.util.PSQLException: ERROR: column > dataelemen1_.shortname does not exist > > Position: 373 > > Hi This seems to be the issue, not sure why it happens.. but could you try and add the shortname column manually? sho

Re: [Dhis2-devs] API - Assign DataElements to ProgramStage

2015-05-22 Thread Morten Olav Hansen
25 PM, Lorill Crees wrote: > Hi Morten, > > Yes it is: > /api/programStages//programStageDataElements/ Element ID to add> > > Thanks, > > Lorill > > On Thu, May 21, 2015 at 9:51 PM, Morten Olav Hansen > wrote: > >> Hi >> >> The ID you are

[Dhis2-devs] [Bug 1458708] [NEW] timezone-issues-with-resource-table

2015-05-25 Thread Morten Olav Hansen
Public bug reported: If you change your server timezone to +/- 5-6 hours from UTC, the resource table generator complains about duplicate periods. This affects versions 2.18, 2.19, 2.20. ** Affects: dhis2 Importance: Medium Assignee: Morten Olav Hansen (mortenoh) Status

Re: [Dhis2-devs] Web API Not Allowing Bulk Data Values Transfer on Demo Site

2015-06-01 Thread Morten Olav Hansen
Hi You need to use https when you are using cURL, it doesn't forward automatically. -- Morten On Mon, Jun 1, 2015 at 4:03 PM, Edwin Mulwa wrote: > > > 301 Moved Permanently > > Moved Permanently > The document has moved https://apps.dhis2.org/demo/api/dataValueSets";>here. > > > > Hi, > >

Re: [Dhis2-devs] Bug on OpenID dhis2

2015-06-01 Thread Morten Olav Hansen
7 >> Free in JVM: 97 Max Limit: 888CPU cores:2 >> >> 2015-04-17 6:39 GMT+07:00 Ngoc Thanh Nguyen >> : >> >>> I think it is 2.17 >>> >>> On Wed, Apr 15, 2015 at 9:19 AM, Morten Olav Hansen >>> wrote: >>> >&g

Re: [Dhis2-devs] CORS: JSONP code sample

2015-06-03 Thread Morten Olav Hansen
Hi Greg I don't have an example here, but all you really need to do is to add a Authotization header (to your $.ajax or what you are using) and it should work, I havent played around with credentials directly (but this is also probably supported? I know jquery have withCredentials etc) What is im

[Dhis2-devs] Changes to web-api object filter in 2.19/2.20

2015-06-03 Thread Morten Olav Hansen
Hi everyone As part of a cleanup in the object filter in 2.20, we have decided to change the default logic from OR to AND in the object filter, the current situation was a bit chaotic where it was not always straight forward to know if OR or AND was applied. For the most part, this change should

Re: [Dhis2-devs] Bug in 2.18 data entry?

2015-06-04 Thread Morten Olav Hansen
Hi Seid Did you try out the latest version of 2.18? we backported some fixes for this issue. https://www.dhis2.org/download/releases/2.18/dhis.war -- Morten On Thu, Jun 4, 2015 at 4:18 PM, Seid Hussein wrote: > Did anyone get a solution for this? The same is happening with us with > data entr

Re: [Dhis2-devs] logging (for server administrators)

2015-06-07 Thread Morten Olav Hansen
On Sun, Jun 7, 2015 at 10:37 PM, Lars Helge Øverland wrote: > No everything generated by DHIS 2 including exceptions go into the main > dhis.log file. We should of course aim at fixing the cause of these errors. > Is there an easy way to switch this off during development? Having to tail an extr

Re: [Dhis2-devs] DHIS2 Code Build and Deploy

2015-06-08 Thread Morten Olav Hansen
Hi Seems like windows don't like the long filenames. Are you doing branching in Eclipse? can you try from the command line instead, just do something like "bzr branch lp:dhis2" from the root of d:\\ Then you can import the pom.xml file into eclipse -- Morten On Mon, Jun 8, 2015 at 1:34 PM, Muha

Re: [Dhis2-devs] DHIS2 Code Build and Deploy

2015-06-10 Thread Morten Olav Hansen
at above mentioned path. > Also I tried to edit maven dependencies (BuildPath->Libraries) but when > selecting the *dhis-api-2.12-SNAPSHOT.jar*, its neither editable nor can > be removed. > > > I have download source code for 2.19. > > > On Mon, Jun 8, 2015 at 12:22

Re: [Dhis2-devs] DHIS2 Standard Reports: API ~ CORS

2015-06-10 Thread Morten Olav Hansen
Hi Greg So you want to get the html, then rendering it in a external app? the problem I see with that, is that the queries inside that HTML report will not have CORS enabled, will they? if it was just html, there should be no problems.. but I assume you are using some kind of XHR to fetch the data

Re: [Dhis2-devs] [Dhis2-users] List of permission in DHIS2

2015-06-10 Thread Morten Olav Hansen
/api/schemas is also a good source of metadata authorities (especially those linked to the web-api). -- Morten On Wed, Jun 10, 2015 at 5:27 PM, Abyot Gizaw wrote: > Yes, I have a very rough document. I was hoping for us to clean it first > as there are lots of roles which are not in use current

Re: [Dhis2-devs] Data Element - Aggregate vs Tracker Domain Type values

2015-06-14 Thread Morten Olav Hansen
For data sets (collecting aggregate data) you must use the AGGREGATE domain type, for tracker (where data elements are collected into programs / program-stages) you must use domain type TRACKER. -- Morten On Mon, Jun 15, 2015 at 12:03 PM, Muhammad Tahir wrote: > Hi, > > What is the difference b

Re: [Dhis2-devs] Internationalization of Web API response info / conflicts?

2015-06-16 Thread Morten Olav Hansen
Hi No, this is not currently supported. We might support it in a future release, as we are changing our responses messages a bit in 2.20/2.21. -- Morten On Wed, Jun 17, 2015 at 5:58 AM, Lorill Crees wrote: > Hi All, > > Is it possible to receive messages back from the web api in other > langua

Re: [Dhis2-devs] DHIS2 App i18n

2015-06-16 Thread Morten Olav Hansen
Hi, As far as I know, this is not currently supported, it might be something to look into in the future though. Mark: how is this handled for internal apps in the menu? -- Morten On Tue, Jun 16, 2015 at 10:12 PM, Alan Hill wrote: > I have been trying to internationalize the name/description f

Re: [Dhis2-devs] Internationalization of Web API response info / conflicts?

2015-06-17 Thread Morten Olav Hansen
> difficult. > > Knowing the changes you have planned will be helpful as it could > potentially break the way we're currently parsing the results. > > By the way, we're working off 2.20 snapshot. > > Thanks, > > Lorill > > > > On Tue, Jun 16, 2015 at

Re: [Dhis2-devs] TrackedEntityAttribute update - add optionSet

2015-06-17 Thread Morten Olav Hansen
Hi Please try again with the latest version of 2.19 or trunk. -- Morten On Thu, Jun 18, 2015 at 1:22 AM, Alan Hill wrote: > Hi there > > I have a TrackedEntityAttribute created through the web api and want to > perform an update to both add and remove an optionSet assignment. > > I have attemp

Re: [Dhis2-devs] [Dhis2-users] dhis2 2, 18 resource table generate Bugs

2015-06-17 Thread Morten Olav Hansen
37;3;"2014-11-30";"2014-12-30" > 1283338;3;"2013-12-31";"2014-01-30" > 1283339;3;"2014-01-31";"2014-02-27" > 1283340;3;"2014-07-31";"2014-08-30" > 1283341;3;"2014-10-31";"2014-11-29" > 1283

Re: [Dhis2-devs] TrackedEntityAttribute update - add optionSet

2015-06-18 Thread Morten Olav Hansen
now seems to function correctly. > > However, removing the optionSet is still not possible. > > Should I be using any specific strategy / mergeStrategy for the remove to > function? > > Many thanks for the quick turn around. > > Alan > > > > On Wed, Jun 17, 20

Re: [Dhis2-devs] TrackedEntityInstance update

2015-06-18 Thread Morten Olav Hansen
Hi Alan Seems like you have an invalid optionset, i..e an optionset without code? -- Morten On Fri, Jun 19, 2015 at 7:47 AM, Alan Hill wrote: > Hi there > > *Version 2.20-SNAPSHOT, Build #19453* > > Trying to update a TrackedEntityInstance but this is failing for > attributes that have an opti

Re: [Dhis2-devs] TrackedEntityInstance update

2015-06-18 Thread Morten Olav Hansen
rry, can you clarify, where do you see that? > > Thanks > > Alan > > > > On Thu, Jun 18, 2015 at 6:56 PM, Morten Olav Hansen > wrote: > >> Hi Alan >> >> Seems like you have an invalid optionset, i..e an optionset without code? >> >>

Re: [Dhis2-devs] TrackedEntityAttribute update - add optionSet

2015-06-18 Thread Morten Olav Hansen
ot;http://localhost:8000/api/optionSets/X61RbMAvsTj"}, > "access":{"update":true, > "externalize":false, > "write":true, > "delete":true, > "read":true, > "manage":true}, > "user":{"id&q

Re: [Dhis2-devs] TrackedEntityInstance update

2015-06-18 Thread Morten Olav Hansen
> }, > - > { > - id: "XJa5QiUzKgb", > - name: "southern", > - code: "3", > - created: "2015-06-18T22:27:50.910+", > - lastUpdated: "2015-06-18T23:51:10.803+000

Re: [Dhis2-devs] TrackedEntityAttribute update - add optionSet

2015-06-18 Thread Morten Olav Hansen
PUT -d @tea.json -u admin:district -H "Content-type: application/json" " http://localhost:8080/api/trackedEntityAttributes/wSHRkXNPeED?mergeStrategy=REPLACE"; -v -- Morten On Fri, Jun 19, 2015 at 11:46 AM, Morten Olav Hansen wrote: > Ok, I will need to look more into

Re: [Dhis2-devs] TrackedEntityInstance update

2015-06-18 Thread Morten Olav Hansen
related to your optionSet, could you please try and create a new one through the UI, and a few options, and see if that works? -- Morten On Fri, Jun 19, 2015 at 12:24 PM, Morten Olav Hansen wrote: > Hm, ok. I will need to look more into this then, from the stack trace is > seems related to i

Re: [Dhis2-devs] TrackedEntityAttribute update - add optionSet

2015-06-18 Thread Morten Olav Hansen
rom the database? > > Thanks > > A > > On Thu, Jun 18, 2015 at 11:26 PM, Morten Olav Hansen > wrote: > >> Hi >> >> I made a small change to the actions that power the UI, so it should work >> properly there now. As for trough the web-api, I was succe

Re: [Dhis2-devs] GET /api/trackedEntityAttributes filter=code:eq: attributes that have empty code are also returned

2015-06-19 Thread Morten Olav Hansen
Hi There was some inconsistencies between the db optimised and in-memory filter operators there. Please try again with the latest revision. -- Morten On Fri, Jun 19, 2015 at 1:33 PM, Alan Hill wrote: > Me again... > > I'm querying TrackedEntityAttributes. Some have been created through web >

Re: [Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19296: WIP proper error reporting on failed GML parsing during import

2015-06-25 Thread Morten Olav Hansen
It seems to be looping in Attribute.toString(), I remember this was an issue at some point.. but that was a long long time ago.. so maybe you need a revision bump -- Morten On Fri, Jun 26, 2015 at 6:52 AM, Halvdan Grelland wrote: > I tried your example GML on both our demo servers (dev on 2.20

Re: [Dhis2-devs] Problem Posting to XML to Web API

2015-06-30 Thread Morten Olav Hansen
Hi Please be aware that there are differences from JSON to XML here. An empty collection in JSON is set to empty, but an empty collection in xml is set to -null-, so please never include an empty collection if you are using XML. -- Morten On Wed, Jul 1, 2015 at 2:22 AM, Halvdan Grelland wrote:

Re: [Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19296: WIP proper error reporting on failed GML parsing during import

2015-06-30 Thread Morten Olav Hansen
tribute.Attribute_$$_jvst804_10.toString(Attribute_$$_jvst804_10.java) >>>>> at java.lang.String.valueOf(Unknown Source) >>>>> at java.lang.StringBuilder.append(Unknown Source) >>>>> at >>>>> org.hisp.dhis.attribute.AttributeValue.toString(Attr

Re: [Dhis2-devs] [Dhis2-users] Need help with "Multiple Events with Registration"

2015-06-30 Thread Morten Olav Hansen
What version of dhis is this? did you start with an empty database? -- Morten On Wed, Jul 1, 2015 at 12:08 PM, Asiz koju wrote: > Dear all, > > Can anyone help me with following issue? > > > > 1. Created an orgi unit > > 2. Created some attributes (First Name, Last Name) > > 3. Created some opt

Re: [Dhis2-devs] [Dhis2-users] Need help with "Multiple Events with Registration"

2015-06-30 Thread Morten Olav Hansen
Ok, sounds strange. I'm not sure if live is 100% compatible with tracker or not, but I'm sure there are others that can answer that (it uses a different database) -- Morten On Wed, Jul 1, 2015 at 12:30 PM, Asiz koju wrote: > I am using version 2.18 and did experimented with 2.19 as well. I have

Re: [Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19296: WIP proper error reporting on failed GML parsing during import

2015-07-01 Thread Morten Olav Hansen
ML files - I'm using the normal user > interface (apps -> import/export -> import GML file > > Regards > Calle > > On 1 July 2015 at 06:57, Morten Olav Hansen wrote: > >> Hi guys >> >> I've been trying to reproduce your bug this morning, but I&

Re: [Dhis2-devs] Batch lock exceptions

2015-07-01 Thread Morten Olav Hansen
Jason Create a blueprint for lock exception API, and I will have a look at it.. can't promise it for 2.20 though. I agree it might be better to have it as a composite key, but these have a tendency to create havoc with our generic importer, so lets convert it to a idObject and keep it as it is fo

Re: [Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19296: WIP proper error reporting on failed GML parsing during import

2015-07-01 Thread Morten Olav Hansen
On Wed, Jul 1, 2015 at 4:12 PM, Bob Jolliffe wrote: > Having said that, this stack overflow business might carry some clue. > @Morten you mention elsewhere in this thread "It seems to be looping in > Attribute.toString()". Are you sure it is looping or is there something > recursive going on h

[Dhis2-devs] [Bug 1471118] Re: Filter/Search with data element details in Pivot tables

2015-07-03 Thread Morten Olav Hansen
This have now been fixed and backported to 2.19. Please allow 45 min or so for our build server to update the version. ** Changed in: dhis2 Importance: Undecided => High ** Changed in: dhis2 Assignee: (unassigned) => Morten Olav Hansen (mortenoh) ** Changed in: dhis2 Milestone

Re: [Dhis2-devs] Internationalization of Web API response info / conflicts?

2015-07-07 Thread Morten Olav Hansen
e are also many api calls for assignments i.e. >> - /api >> That return 204 (no body). Is this intentional/expected behaviour? >> >> Thanks, >> >> Lorill >> >> On Wed, Jun 17, 2015 at 6:34 PM, Morten Olav Hansen >> wrote: >&g

[Dhis2-devs] [Bug 1458708] Re: timezone-issues-with-resource-table

2015-07-08 Thread Morten Olav Hansen
** 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/1458708 Title: timezone-issues-with-resource-table Status in DHIS 2: Fix Committed

Re: [Dhis2-devs] Internationalization of Web API response info / conflicts?

2015-07-08 Thread Morten Olav Hansen
h version/build this was > fixed in? I am still seeing the issue in 2.20-SNAPSHOT build #19473 > > Kind regards > > Alan > > > > On Tue, Jul 7, 2015 at 9:35 PM, Morten Olav Hansen > wrote: > >> Hi >> >> Most of this should now be fixed, ple

Re: [Dhis2-devs] Fwd: Deployable war for previous builds

2015-07-14 Thread Morten Olav Hansen
Could you also please provide your DHIS 2 version and build rev? we should have fixed this issue 1-2 months ago (or at least a similar issue) -- Morten On Tue, Jul 14, 2015 at 5:14 PM, Jason Pickering < jason.p.picker...@gmail.com> wrote: > In this case, you should probably alter the "default" c

Re: [Dhis2-devs] Fwd: Deployable war for previous builds

2015-07-14 Thread Morten Olav Hansen
en > import the rest. > > Alex > > On Tue, Jul 14, 2015 at 1:19 PM, Morten Olav Hansen > wrote: > >> Could you also please provide your DHIS 2 version and build rev? we >> should have fixed this issue 1-2 months ago (or at least a similar issue) >> >>

Re: [Dhis2-devs] Fwd: Deployable war for previous builds

2015-07-14 Thread Morten Olav Hansen
Just upgrade. >>>> On Jul 14, 2015 2:33 PM, "Mritunjay Dubey" >>>> wrote: >>>> >>>>> Yes please fix it. >>>>> >>>>> Because it's hard to know the "default" category-combo-option UID,

Re: [Dhis2-devs] Fwd: Deployable war for previous builds

2015-07-14 Thread Morten Olav Hansen
ng that category-option-combo I need to delete references > from all these tables. > > Is this the way I should do it ? > Please let me know. > > Thank you > Mritunjay > > On Wed, Jul 15, 2015 at 12:02 PM, Morten Olav Hansen > wrote: > >> Hi >> >&g

Re: [Dhis2-devs] Fwd: Deployable war for previous builds

2015-07-14 Thread Morten Olav Hansen
2015 at 1:51 PM, Morten Olav Hansen wrote: > Yeah, I think that should be ok, just make sure you have a backup ;-) When > it creates the default COC, it will also setup the tables around it, > probably you will see duplicate "default" names in those tables also. > > -- &

Re: [Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19664: minor fix, turn of lazy for a few PI properties that we always access (using AbstractEnrollmentSe...

2015-07-15 Thread Morten Olav Hansen
cannot save almost any DE or > indicator without truncating the additional def fields added as attributes. > > Regards > Calle > On 16 Jul 2015 06:57, wrote: > >> ---- >> revno: 19664 >> committer: Morten Olav

[Dhis2-devs] [Bug 1474060] Re: Users able to delete dashboard items without authorization

2015-07-16 Thread Morten Olav Hansen
Fixed in 2.19/trunk. It still allows moving around the items, but will not save the new position. We will disallow moving the items around in a future version. ** Changed in: dhis2 Milestone: None => 2.20 ** Changed in: dhis2 Assignee: (unassigned) => Morten Olav Hansen (mo

[Dhis2-devs] [Bug 1453569] Re: Sharing Feature not working for Dashboards

2015-07-16 Thread Morten Olav Hansen
** 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/1453569 Title: Sharing Feature not working for Dashboards Status in DHIS: Fix Committed

<    3   4   5   6   7   8   9   10   11   12   >