[Dhis2-devs] Embedding Event Charts

2016-10-07 Thread Pooben Dass
Hi Devs Can we embed Events charts in a standard report and from which version of dhis2 is this possible? Is this the correct format of the script? DHIS.getEventChart({ url : base, el : 'chart1', type : 'column', program : 'ProgramUID', programStage : 'StageUID', columns : [ {dimension : 'ou',i

[Dhis2-devs] Fwd: Embedding Event Charts

2016-10-10 Thread Pooben Dass
-- Forwarded message -- From: Pooben Dass Date: Fri, Oct 7, 2016 at 11:59 AM Subject: Embedding Event Charts To: dhis2-devs@lists.launchpad.net Cc: j...@dhis2.org, Kabelo Molepo Hi Devs Can we embed Events charts in a standard report and from which version of dhis2 is this

[Dhis2-devs] Analytics Error :- DataIntegrityViolationException

2016-10-10 Thread Pooben Dass
Hi Devs Please can anyone assist in pointing out how to correct this issue for this exception:- I'm using dhis2 v2.24 Caused by: org.springframework.dao.DataIntegrityViolationException: StatementCallback; SQL [insert into analytics_event_temp_2015_cskmsvrprny ("uidlevel1","uidlevel2","uidlevel3"

[Dhis2-devs] Embedding a chart on an HTML page

2016-11-04 Thread Pooben Dass
Hi Devs I'm trying to embed a chart with category options on to an HTML page. What is the correct format to map the co & de dimension? This is the example for the de only? DHIS.getChart({ url : base, el : 'chart1', type : 'pie', columns : [ {dimension : 'de',items : [ {id : 'DE_UID' }] } ], rows

[Dhis2-devs] Embedding a chart on an HTML page

2016-11-04 Thread Pooben Dass
-- Forwarded message -- From: Pooben Dass Date: Fri, Nov 4, 2016 at 9:52 AM Subject: Embedding a chart on an HTML page To: dhis2-devs@lists.launchpad.net Hi Devs I'm trying to embed a chart with category options on to an HTML page. What is the correct format to map the co

Re: [Dhis2-devs] Embedding a chart on an HTML page

2016-11-07 Thread Pooben Dass
> Remember that you can always create the chart you want in the app first > and click "Embed" on the toolbar to see how the chart is configured. > > Jan > > On 4 November 2016 at 14:11, Pooben Dass wrote: > >> >> -- Forwarded message -- &g

Re: [Dhis2-devs] Embedding a chart on an HTML page

2016-11-08 Thread Pooben Dass
, 2016 at 10:48 AM, Jan Henrik Øverland wrote: > I see. Just set the *co* dimension as series (columns) and period > dimension as category (rows). Then the data element and orgunit(s) as > filter. > > Remember, you can only have a single column dimension and a single row > dimensio

Re: [Dhis2-devs] Embedding a chart on an HTML page

2016-11-08 Thread Pooben Dass
Jan Henrik Øverland wrote: > You are right, having "co" as a dimension and the data element as filter > isn't actually supported. > > However, selecting e.g. gender with items male/female as a dimension by > using ids will work. Is that okay for now? > > On 8 N

Re: [Dhis2-devs] Embedding a chart on an HTML page

2016-11-08 Thread Pooben Dass
oben On Tue, Nov 8, 2016 at 2:29 PM, Jan Henrik Øverland wrote: > Then add periods to rows and it should work? > > On 8 November 2016 at 13:26, Pooben Dass wrote: > >> Hi Jan >> >> I've changed the script to use the gender UID as below but the Title and &g

Re: [Dhis2-devs] Embedding a chart on an HTML page

2016-11-08 Thread Pooben Dass
.getChart - which version of the plugin is > this? > > Try the 2.25 plugin and it will work (as described earlier in the thread). > No guarantees when the versions don't match. > > On 8 November 2016 at 13:32, Pooben Dass wrote: > >> Hi Jan >> >> Sorry i c

[Dhis2-devs] Embedding a Chart in a standard HTML Report

2016-11-25 Thread Pooben Dass
Hi Devs Is it necessary to include these parameters in a standard HTML Report chartPlugin.url = "http://localhost:9090/dhis";; chartPlugin.username = "user"; chartPlugin.password = "password"; If yes is there a script/api call to get the user password. Regards Pooben -- *This message and a

Re: [Dhis2-devs] Embedding a Chart in a standard HTML Report

2016-11-25 Thread Pooben Dass
Hi Pooben, > > Url, username and password are only needed for CORS purposes. > > Not sure however if it will work without the url currently. Give it a try. > All requests should work well without the user credentials though. > > Jan > > On 25 November 2016 at 11:30, Po

Re: [Dhis2-devs] Embedding a Chart in a standard HTML Report

2016-11-25 Thread Pooben Dass
Yes. One could use ... "../" as the url value and it works. Thank you On Fri, Nov 25, 2016 at 1:08 PM, Jan Henrik Øverland wrote: > Is it OK to just provide the url for now? > > On 25 November 2016 at 12:07, Pooben Dass wrote: > >> Hi Jan >> >> Than

[Dhis2-devs] Error: Highcharts error #13 when Passing an array as a dimension

2016-11-29 Thread Pooben Dass
Hi Devs How can I pass an array of values to the columns dimension? I receive this error : *Error: Highcharts error #13: www.highcharts.com/errors/13( …) *when I try the sample code below var arrVals = [{'id':'UID1'},{id:'UID2'} ]; chartPlugin.load([{ column

Re: [Dhis2-devs] Error: Highcharts error #13 when Passing an array as a dimension

2016-11-29 Thread Pooben Dass
lue is a valid DOM node? > > -- > Morten Olav Hansen > Senior Engineer, DHIS 2 > University of Oslo > http://www.dhis2.org > > On Tue, Nov 29, 2016 at 8:11 PM, Pooben Dass wrote: > >> Hi Devs >> >> How can I pass an array of values to the columns dimensio

[Dhis2-devs] 404 Error when trying to use the DHIS2 menu in an APP

2017-02-21 Thread Pooben Dass
Hi Devs Please can you assist me in getting the DHIS Menu to display in my app? I'm using dhis 2,25 build 8182981 *and this is the error I receive on the console :-* jquery.min.js:2 GET http://localhost:9090/dhis/api/apps/api/me/profile.json 404 (Not Found) send @ jquery.min.js:2 ajax @ jquery.

[Dhis2-devs] Fwd: 404 Error when trying to use the DHIS2 menu in an APP

2017-02-24 Thread Pooben Dass
Hi Devs Any information to assist with this error? Regards Pooben -- Forwarded message -- From: Pooben Dass Date: Tue, Feb 21, 2017 at 12:41 PM Subject: 404 Error when trying to use the DHIS2 menu in an APP To: dhis2-devs Hi Devs Please can you assist me in getting the DHIS

Re: [Dhis2-devs] Fwd: 404 Error when trying to use the DHIS2 menu in an APP

2017-02-27 Thread Pooben Dass
try to remove them from your app and see if > the error still occurs. > > Regards, > > On Fri, Feb 24, 2017 at 4:08 PM, Pooben Dass wrote: > >> Hi Devs >> >> Any information to assist with this error? >> >> Regards >> Pooben >> >>

Re: [Dhis2-devs] Fwd: 404 Error when trying to use the DHIS2 menu in an APP

2017-02-27 Thread Pooben Dass
Nguyen wrote: > Hi Pooben, > > Please take the below file as an example. It's the main page of the > dashboard-app. > > https://raw.githubusercontent.com/dhis2/dashboard-app/master/index.html > > Regards, > > On Mon, Feb 27, 2017 at 3:44 PM, Pooben Dass wrote: &g

[Dhis2-devs] Displaying the borders and thematic layers in HTML report

2017-03-24 Thread Pooben Dass
Hi Jan I'm using this code to display a map in a report. DHIS 2.25 DHIS.getMap({ mapViews: [{ rows: [{dimension: "ou","items": [{"id": "LEVEL-5"},{"id": "qLQDVrnUKX3"}]}], labels: true, labelFontSize: "11px", labelFontStyle: "normal", layer: "boundary"}, { layer

Re: [Dhis2-devs] Displaying the borders and thematic layers in HTML report

2017-03-27 Thread Pooben Dass
chart but now i'm not sure how to include it on the page? Kind Regards Pooben On Fri, Mar 24, 2017 at 7:22 PM, Pooben Dass wrote: > Hi Jan > > I'm using this code to display a map in a report. DHIS 2.25 > > > DHIS.getMap({ > mapViews: [{ > rows: [{dime

[Dhis2-devs] API for the DataValueImportSummary

2017-06-08 Thread Pooben Dass
Hi Devs Please can you assist me is finding the api endpoint to check the import summary once an async import is performed. I know the /api/system/tasks/DATAVALUE_IMPORT to check if the tasks has completed but I would like to view the import summary i.e the imported, updated, etc numbers? Kind Re

Re: [Dhis2-devs] API for the DataValueImportSummary

2017-06-08 Thread Pooben Dass
Thank you. I will give it a try. On Thu, Jun 8, 2017 at 3:25 PM, Vladimer Shioshvili wrote: > Once tasks says that import is complete, you can use: > api/system/taskSummaries/DATAVALUE_IMPORT to get the summary. > > Best, > Vlad > > On Thu, Jun 8, 2017 at 8:35 AM Pooben

[Dhis2-devs] Yes/No fields no populating version 2.26

2017-06-12 Thread Pooben Dass
Hi Devs We got a custom HTML in version 2.20 that populates values(in the drop down list) captured on the form but upon upgrading the db we find that the fields have changed to radio buttons and are not populating the values captured. Is there something that we've missed in the upgrade process or

Re: [Dhis2-devs] Yes/No fields no populating version 2.26

2017-06-13 Thread Pooben Dass
13 AM, Lars Helge Øverland wrote: > Hi Pooben, > > what type of form is this, i.e. tracker or aggregate? > > regards, > > Lars > > > On Mon, Jun 12, 2017 at 11:27 AM, Pooben Dass wrote: > >> Hi Devs >> >> We got a custom HTML in version 2.20 tha

[Dhis2-devs] Optionset api not returning the name and code v2.26

2017-06-15 Thread Pooben Dass
Hi We have a dropdown list of comment options linked to the dataelements as option set comments but the drop down populates as undefined. Upon checking the api (/api/optionSets/) to confirm what is returned, I see it only returns the id not the other values. this is what is returned in v2.26: op

Re: [Dhis2-devs] Optionset api not returning the name and code v2.26

2017-06-15 Thread Pooben Dass
id, but you can easily get more by doing `options[:all]` or by > being more specific `options[id,displayName]`. > > [1] https://docs.dhis2.org/master/en/developer/html/ > webapi_metadata_field_filter.html > > -- > Morten Olav Hansen > Senior Engineer, DHIS 2 > Universi

[Dhis2-devs] SQL query contains references to protected tables error

2017-07-26 Thread Pooben Dass
I'm trying to create a SQL view in dhis 2.27 but I keeping receiving this error SQL query contains references to protected tables? Any idea why as I was able to create the view in dhis 2.25 previously and how can i recreate it Here is my select SELECT trackedentityattributevalue.value AS "Syst

[Dhis2-devs] Uncaught (in promise) Error: Can not add a Model without id to a ModelCollection

2017-07-31 Thread Pooben Dass
Hi Devs We are receiving this error when trying to view the dataelements from the Maintenance App? Any idea why? Version 2,27 build: 5c148f4 Regards Pooben -- *This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer

Re: [Dhis2-devs] Uncaught (in promise) Error: Can not add a Model without id to a ModelCollection

2017-07-31 Thread Pooben Dass
y data > elements that lack a valid uid. If that doesn't help it would be great if > you can create an issue in Jira. > > Best, > > > Nicolay Ramm > Front end developer, DHIS 2 > University of Oslo > https://www.dhis2.org > > On Mon, Jul 31, 2017 at 9:51 AM, Po

Re: [Dhis2-devs] Error creating user account 2.27

2017-08-22 Thread Pooben Dass
Hi Sam / Farai Are you still experiencing this error? As I've found that if you go to the Settings > Zccess and then reselect the 'Minimum characters in password'. Once the settings are updated, you will be able to add users and reset passwords. Regards Pooben On Tue, Aug 15, 2017 at 6:01 AM,

Re: [Dhis2-devs] Unable to open settings app.

2017-08-27 Thread Pooben Dass
Senior Engineer, DHIS 2 > University of Oslo > http://www.dhis2.org > > On Mon, Aug 28, 2017 at 1:11 PM, Pooben Dass wrote: > >> Hi Devs >> >> Please can you assist us we are unable to access the settings app on a >> 2.27 dhis2 instance? >> >> T

Re: [Dhis2-devs] Error in password reset and new user creation

2017-08-29 Thread Pooben Dass
Hi Mike / Morten We were experiencing the same issue and found that if you go to the Settings > Access and then reselect the 'Minimum characters in password'. Once the settings are updated, you will be able to add users and reset passwords. Regards Pooben On Wed, Aug 30, 2017 at 4:15 AM, Morten

Re: [Dhis2-devs] Embed chart - 2.24

2017-08-29 Thread Pooben Dass
Hi Martin What error are you seeing in the browser console? can you try this ? DV.plugin.getChart({ url : base, el : 'chart1', type : 'bar', columns : [ {dimension : 'in',items : [ {id : '?? } ] } ], rows : [{dimension : 'ou',items : x } ], filters : [ {dimension : 'pe',items : [ {id : period}

Re: [Dhis2-devs] Embed chart - 2.24

2017-08-30 Thread Pooben Dass
o be the 2.22 file (http://dhis2-cdn.org/v222/ > plugin/chart.js) > > I also suppose I need to send a user password somewhere ? > > Your code looks like what is needed to generate a "new/custom" chart - I > just want to embed an existing one. > > Martin > &

[Dhis2-devs] Organisation unit distribution API

2017-09-12 Thread Pooben Dass
Hi Is there an API call to get the same data as per the 'Organisation unit distribution report' for OrgUnitType? Kind Regards Pooben -- *This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer

[Dhis2-devs] Error embedding a Pivot Table in a HTML standard Report

2017-09-22 Thread Pooben Dass
Hi Devs dhis2 version: 2.27 build date: 2017-08-22 06:25 I'm receiving this error when attempting to embed a pivot table in a HTML report (any ideas why):- jquery.min.js?_rev=305a73c:33 GET http://localhost:9090/dhis/*dhis-web-reporting/undefined/api/26/me.json 404 (Not Found)* send @ jquery.m

[Dhis2-devs] Fwd: Organisation unit distribution API

2017-09-26 Thread Pooben Dass
Hi Devs Any update on this? Is there such an api? Pooben -- Forwarded message -- From: Pooben Dass Date: Tue, Sep 12, 2017 at 1:59 PM Subject: Organisation unit distribution API To: dhis2-devs Hi Is there an API call to get the same data as per the 'Organisation

Re: [Dhis2-devs] Fwd: Organisation unit distribution API

2017-09-26 Thread Pooben Dass
> API: > > https://docs.dhis2.org/master/en/developer/html/webapi_sql_views.html > > On Tue, Sep 26, 2017 at 9:59 AM, Pooben Dass wrote: > >> Hi Devs >> >> Any update on this? Is there such an api? >> >> Pooben >> >> -- Forwarded messag

[Dhis2-devs] Error when calling SQLview via the api

2017-09-27 Thread Pooben Dass
Hi Devs I experiencing this error when trying to call a sqlview via the API. http://localhost:9090/dhis/api/sqlViews/UID/data.json?criteria=ou_uid:UID&criteria=period_iso:201511 409,"status":"ERROR","message":"Criteria params are invalid: [ou_uid, period_iso]"} the columns used for the criteri

Re: [Dhis2-devs] Error embedding a Pivot Table in a HTML standard Report

2017-10-12 Thread Pooben Dass
Hi Guys Any update on this issue? Regards Pooben On Fri, Sep 22, 2017 at 5:48 PM, Pooben Dass wrote: > Hi Devs > > dhis2 version: 2.27 > build date: 2017-08-22 06:25 > > I'm receiving this error when attempting to embed a pivot table in a HTML > report (any ideas

[Dhis2-devs] Custom form - retrieve comments

2017-10-25 Thread Pooben Dass
Hi Devs Is there a way to retrieve the comments for a dataelement onload of a custom form? Regards Pooben -- *This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer .

[Dhis2-devs] Unable to update organisation unit attributes by code

2018-02-17 Thread Pooben Dass
Hi Devs I'm trying to update an org unit attributes using it's code. url to update:- ../organisationUnits?orgUnitIdScheme=CODE&async=true&dryRun=false&importStrategy=UPDATE' Here is the Json:- {"organisationUnits": [{"code":"99","attributeValues":[ {"value":"ATTVALUE","attribute":{"id

[Dhis2-devs] Unable to install app

2018-05-15 Thread Pooben Dass
Hi Devs I get a NullPointerException when trying to install an app zip file. Has anyone seen this error before? Any idea what could cause this? java.lang.NullPointerException: entry at java.util.zip.ZipFile.getInputStream(ZipFile.java:346) at org.hisp.dhis.appmanager.DefaultAppMan

Re: [Dhis2-devs] Unable to install app

2018-05-16 Thread Pooben Dass
wrote: > Haven't seen that before, are you sure the zip file is OK (not damaged) ? > are you uploading through the UI? > > > -- > Morten Olav Hansen > Senior Engineer, DHIS 2 > University of Oslo > http://www.dhis2.org > > On Tue, May 15, 2018 at 6:31 PM, Poo

Re: [Dhis2-devs] dhis2-cdn.org script resource query

2018-05-29 Thread Pooben Dass
Hi Greg You could reference the library from the dhis2 instance you are running. Something like src="../dhis-web-visualizer/chart.js"> as the lib is in the visualizer app. Kind regards Pooben On Wed, May 30, 2018 at 7:26 AM, Greg Rowles wrote: > Hi Devs > > We've embedded a chart using v2.28

[Dhis2-devs] Posting ADX file as a zip

2018-08-24 Thread Pooben Dass
Hi Devs Is it possible to do a POST using a zip/gzip file via the API? Kind regards Pooben -- *This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer .  Please read the

[Dhis2-devs] Exception when importing metadata dataelements

2015-03-31 Thread Pooben Dass
Hi Devs I am receiving this exception:- Caused by: org.postgresql.util.PSQLException: ERROR: null value in column "active" violates not-null constraint Detail: Failing row contains (10248, X9TfdT6JLNJ, null, 2015-03-31 19:43:09.306, 2015-03-31 19:43:12.352, Sub-dermal implant inserted, S

Re: [Dhis2-devs] Exception when importing metadata dataelements

2015-03-31 Thread Pooben Dass
, 2015 9:42 PM To: Calle Hedberg Gmail Cc: dhis2-devs; Pooben Dass Subject: Re: [Dhis2-devs] Exception when importing metadata dataelements Are you sure you imported this file as data elements and not organization units? Regards, Jason On Mar 31, 2015 9:39 PM, "Calle Hedberg" wrot

Re: [Dhis2-devs] Exception when importing metadata dataelements

2015-03-31 Thread Pooben Dass
Jason Pickering [mailto:jason.p.picker...@gmail.com] Sent: Tuesday, March 31, 2015 9:42 PM To: Calle Hedberg Gmail Cc: dhis2-devs; Pooben Dass Subject: Re: [Dhis2-devs] Exception when importing metadata dataelements Are you sure you imported this file as data elements and not organization

Re: [Dhis2-devs] Exception when importing metadata dataelements

2015-04-01 Thread Pooben Dass
...@tohouri.com [mailto:rtoho...@gmail.com] Sent: Wednesday, April 1, 2015 5:43 PM To: Pooben Dass Cc: Jason Pickering; Calle Hedberg Gmail; dhis2-devs Subject: Re: [Dhis2-devs] Exception when importing metadata dataelements Hi Pooben, I know this problem! I’m sure you migrate your system recently

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

2015-05-18 Thread Pooben Dass
Hi Devs Anyone seen this Exception before, is there an upgrade script that I need to run? I'm upgrading the dhis2 instance to 2.18. * ERROR 2015-05-18 08:58:34,353 Error while executing action (ExceptionInterceptor.java [http-bio-80-exec-3]) org.hibernate.exception.SQLGrammarExcepti

[Dhis2-devs] Getting the OrgUnit id for a custom data Entry form

2015-02-24 Thread Pooben Dass
Hi Devs Is there a way to get the orgunitid when the custom entry form initially loads. The dhis2.ou.event.orgUnitSelected event only works when an item is selected in the tree and not on the initial form load I would like to get the selected org id when the custom form is initialy load. Curr

Re: [Dhis2-devs] Getting the OrgUnit id for a custom data Entry form

2015-02-24 Thread Pooben Dass
Hi Timothy Thanks for sharing this. It works like a bomb! Regards Pooben From: Timothy Harding [mailto:hardi...@gmail.com] Sent: Tuesday, February 24, 2015 6:26 PM To: Pooben Dass Cc: DHIS 2 Developers list Subject: Re: [Dhis2-devs] Getting the OrgUnit id for a custom data Entry form