Re: [Dhis2-devs] Web portal CORS/preflight problem

2015-08-27 Thread Alex Tumwesigye
Dear Khan, Look at this http://api.jquery.com/jquery.ajax/ Read about crossDomain, by default it set to false so you may need to set it to true. Ideally, in your ajax request, add crossDomain:true Alex On Thu, Aug 27, 2015 at 9:53 AM, Mark Polak wrote: > Hello Hanna, > > Did you add http://

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

2015-08-27 Thread noreply
revno: 19866 committer: Morten Olav Hansen branch nick: dhis2 timestamp: Thu 2015-08-27 15:15:43 +0700 message: minor fix modified: dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/PartitionUti

Re: [Dhis2-devs] Web portal CORS/preflight problem

2015-08-27 Thread Hannan Khan
Dear Alex Thank you for sharing the resources. but the problem still persists. i write as following: Ext.onReady( function() { Ext.Ajax.request({ crossDomain: true, url: base + "dhis-web-commons-security/login.action?authOnly=true", method: 'POST', Please check. Regards Hannan O

Re: [Dhis2-devs] Web portal CORS/preflight problem

2015-08-27 Thread Morten Olav Hansen
Hi Hannan I haven't used the portal plugins (maybe Jan can help there), but what I did when I implemented CORS for DHIS 2, was to simply test using this: $.ajax({ url: 'some-web-api-url.json', headers: { "Authorization": btoa('admin:district' } }).done(...); Also remember that there must be

Re: [Dhis2-devs] Web portal CORS/preflight problem

2015-08-27 Thread Morten Olav Hansen
On Thu, Aug 27, 2015 at 3:47 PM, Morten Olav Hansen wrote: > headers: { "Authorization": btoa('admin:district' } > That should be headers: { "Authorization": 'Basic ' + btoa('admin:district' } -- Morten ___ Mailing list: https://launchpad.net/~dhis2

Re: [Dhis2-devs] Web portal CORS/preflight problem

2015-08-27 Thread Jan Henrik Øverland
Hi Hannan, I have done some testing and it seems the bundled Ext version is getting old. CORS is not working well with it. We need to look at this, but for now just include https://code.jquery.com/jquery-2.1.4.min.js (minified, only 84k) and do the authentication with jquery. The good thing abou

Re: [Dhis2-devs] [Dhis2-users] data mart deprecation - 2.21

2015-08-27 Thread Calle Hedberg
Paralytics?? On 27 August 2015 at 09:35, Hannan Khan wrote: > In Bangladesh we are not using Data Mart; instead we are using paralytics. > So no problem from our end. > > Regards > > Hannan Khan > HISP Bangladesh > > > On Wed, Aug 26, 2015 at 5:27 PM, Lars Helge Øverland > wrote: > >> Hi, >> >>

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19867: program rule support for TEI attributes

2015-08-27 Thread noreply
revno: 19867 committer: Abyot Asalefew Gizaw branch nick: dhis2 timestamp: Thu 2015-08-27 12:06:06 +0200 message: program rule support for TEI attributes modified: dhis-2/dhis-api/src/main/java/org/hisp/dhis/programrule/ProgramRuleAc

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

2015-08-27 Thread noreply
revno: 19868 committer: Abyot Asalefew Gizaw branch nick: dhis2 timestamp: Thu 2015-08-27 12:10:19 +0200 message: minor modified: dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance

Re: [Dhis2-devs] Web portal CORS/preflight problem

2015-08-27 Thread Hannan Khan
Thanks Jan. I added http://code.jquery.com/jquery-2.1.4.min.js>"> in the but still I get the error. What did I do wrong? Regards Hannan On Thu, Aug 27, 2015 at 2:49 PM, Jan Henrik Øverland < janhenrik.overl...@gmail.com> wrote: > Hi Hannan, > > I have done some testing and it seems the bu

Re: [Dhis2-devs] Web portal CORS/preflight problem

2015-08-27 Thread Knut Staring
Hi Hannan, Did you leave out "https:" ? On Thu, Aug 27, 2015 at 12:19 PM, Hannan Khan wrote: > Thanks Jan. > > I added http://code.jquery.com/jquery-2.1.4.min.js>"> in the but > still I get the error. What did I do wrong? > > Regards > > Hannan > > On Thu, Aug 27, 2015 at 2:49 PM, Jan Henr

Re: [Dhis2-devs] Web portal CORS/preflight problem

2015-08-27 Thread Jan Henrik Øverland
You need to do this part Ext.onReady( function() { Ext.Ajax.request({ crossDomain: true, url: base + "dhis-web-commons-security/login.action?authOnly=true", method: 'POST' with jquery instead of Ext. See the code that Morten posted. On Thu, Aug 27, 2015 at 12:19 PM, Hannan K

Re: [Dhis2-devs] [Dhis2-users] data mart deprecation - 2.21

2015-08-27 Thread Edward Ari Bichetero
That seems a little extreme, but whatever works. Desperate times call for desperate measures. - Edward - On Thursday, August 27, 2015 9:53 AM, Calle Hedberg wrote: Paralytics?? On 27 August 2015 at 09:35, Hannan Khan wrote: In Bangladesh we are not using Data Mart; instead we

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19869: programRuleAction.attribute -> programRuleAction.trackedEntityAttribute

2015-08-27 Thread noreply
revno: 19869 committer: Abyot Asalefew Gizaw branch nick: dhis2 timestamp: Thu 2015-08-27 13:49:26 +0200 message: programRuleAction.attribute -> programRuleAction.trackedEntityAttribute modified: dhis-2/dhis-api/src/main/java/org/his

Re: [Dhis2-devs] Web portal CORS/preflight problem

2015-08-27 Thread Alex Tumwesigye
Dear Hannan, Use $.ajax() or replace crossDomain:y=true with cors:true and try! I have not used it but give it a try. Alex On Thu, Aug 27, 2015 at 1:24 PM, Jan Henrik Øverland < janhenrik.overl...@gmail.com> wrote: > You need to do this part > > Ext.onReady( function() { > Ext.Ajax.re

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19870: Fix for optionset datatype and trackedEntityAttributes in rules engine

2015-08-27 Thread noreply
revno: 19870 committer: Markus Bekken branch nick: dhis2 timestamp: Thu 2015-08-27 14:56:53 +0200 message: Fix for optionset datatype and trackedEntityAttributes in rules engine modified: dhis-2/dhis-web/dhis-web-commons-resources/s

Re: [Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19856: Analaytics, implementd query parameter relativePeriodDate which will be used as basis for relativ...

2015-08-27 Thread Lars Helge Øverland
We are aiming for 2.21 for this one. Lars On Wed, Aug 26, 2015 at 11:15 PM, Calle Hedberg wrote: > Hi, > > excellent - only in 2.21, or will you add this to 2.20 and earlier > versions too? > > Regards > Calle > > On 26 August 2015 at 14:08, Lars Helge Øverland > wrote: > >> >> Hi Calle, >> >

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19871: minor fix in program rule for attributes

2015-08-27 Thread noreply
revno: 19871 committer: Abyot Asalefew Gizaw branch nick: dhis2 timestamp: Thu 2015-08-27 16:45:23 +0200 message: minor fix in program rule for attributes modified: dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19872: tracker-captuer: program rules engine for attribute support - WIP

2015-08-27 Thread noreply
revno: 19872 committer: Abyot Asalefew Gizaw branch nick: dhis2 timestamp: Thu 2015-08-27 17:15:20 +0200 message: tracker-captuer: program rules engine for attribute support - WIP modified: dhis-2/dhis-web/dhis-web-apps/src/main/web

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19873: Event analytics, added support for native date/timestamp column types

2015-08-27 Thread noreply
revno: 19873 committer: Lars Helge Overland branch nick: dhis2 timestamp: Thu 2015-08-27 17:28:24 +0200 message: Event analytics, added support for native date/timestamp column types modified: dhis-2/dhis-api/src/main/java/org/hisp/d

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19874: Program indicator / event analytics. Impl support for d2:daysBetween / days between two dates.

2015-08-27 Thread noreply
revno: 19874 committer: Lars Helge Overland branch nick: dhis2 timestamp: Thu 2015-08-27 19:18:00 +0200 message: Program indicator / event analytics. Impl support for d2:daysBetween / days between two dates. added: dhis-2/dhis-supp

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19875: bug fix in programRuleVariable to expose attribute type variables

2015-08-27 Thread noreply
revno: 19875 committer: Abyot Asalefew Gizaw branch nick: dhis2 timestamp: Thu 2015-08-27 21:05:08 +0200 message: bug fix in programRuleVariable to expose attribute type variables modified: dhis-2/dhis-api/src/main/java/org/hisp/dhi

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19876: tracker-capture: program rules are now supported during registration

2015-08-27 Thread noreply
revno: 19876 committer: Abyot Asalefew Gizaw branch nick: dhis2 timestamp: Thu 2015-08-27 21:05:47 +0200 message: tracker-capture: program rules are now supported during registration modified: dhis-2/dhis-web/dhis-web-apps/src/main/

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

2015-08-27 Thread noreply
revno: 19877 committer: Lars Helge Overland branch nick: dhis2 timestamp: Thu 2015-08-27 22:45:58 +0200 message: Minor modified: dhis-2/dhis-support/dhis-support-commons/src/main/java/org/hisp/dhis/commons/util/ExpressionFunctions.j

[Dhis2-devs] [Branch ~dhis2-devs-core/dhis2/trunk] Rev 19878: Event analytics / program indicators. Impl support for conditionals / function d2:condition( bool...

2015-08-27 Thread noreply
revno: 19878 committer: Lars Helge Overland branch nick: dhis2 timestamp: Fri 2015-08-28 00:22:39 +0200 message: Event analytics / program indicators. Impl support for conditionals / function d2:condition( boolean-expr, true-val, fals