Re: [Dhis2-devs] Store array in Tracker Capture

2016-04-18 Thread Erling Fjelstad
Hi Apoorv,
I'm not sure I understand what your use case is. Feel free to extend
*EnrollmentDataEntryFragmentForm.java
*where you can set whatever data you retrieve from
*EnrollmentDataEntryFragmentFormQuery.java(which
querys the database). *You can retrieve the data from
EnrollmentDataEntryFragment in form.getMyArray();

Regards,
Erling

On Mon, Apr 18, 2016 at 9:35 PM, Apoorv Patel 
wrote:

> Hi,
>
> I am creating an Android app in which I am performing enrollments in the
> same way as Tracker Capture. I want to store an array while registering the
> enrollment. How can I create an attribute that will allow me to store an
> Array while enrollment?
>
> Thanks,
> Apoorv
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Store array in Tracker Capture

2016-04-18 Thread Apoorv Patel
Hi,

I am creating an Android app in which I am performing enrollments in the
same way as Tracker Capture. I want to store an array while registering the
enrollment. How can I create an attribute that will allow me to store an
Array while enrollment?

Thanks,
Apoorv
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Dataset level attributes under smartphone and Android Data Capture app

2016-04-18 Thread Araz Abishov
Hi Craig,

Support of category combinations for datasets is on roadmap for android data 
capture application. Unfortunately, we cannot tell you when exactly it will be 
implemented, because of large amount of work we have to do for event and 
tracker capture android apps.

Best Regards,

—
Araz Abishov,
Android developer, DHIS 2
University of Oslo
https://www.dhis2.org/

On April 18, 2016 at 2:52:18 PM, Craig Hollingsworth 
(craig.hollingswo...@nrc.no) wrote:

Hi,

 

Hope you’re well.

 

Hi, I wondered if there are any plans to implement dataset level attributes for 
aggregate reporting in any of the mobile options.  It seems at present this is 
not possible which somewhat limits their use for us.

 

I had a quick look through the launchpad blueprints but can’t seem to find 
anything on the subject.

 

 

Cheers

 

Craig

 

--

Craig Hollingsworth

Global M Data Pilots Project Manager

Tel: +57 320 208 4921  / +44 (0) 7570 138 151

Skype:  Craig.Hollingsworth

 



 

--

 

___  
Mailing list: https://launchpad.net/~dhis2-devs  
Post to : dhis2-devs@lists.launchpad.net  
Unsubscribe : https://launchpad.net/~dhis2-devs  
More help : https://help.launchpad.net/ListHelp  
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Dataset level attributes under smartphone and Android Data Capture app

2016-04-18 Thread Craig Hollingsworth
Hi,

Hope you're well.

Hi, I wondered if there are any plans to implement dataset level attributes for 
aggregate reporting in any of the mobile options.  It seems at present this is 
not possible which somewhat limits their use for us.

I had a quick look through the launchpad blueprints but can't seem to find 
anything on the subject.


Cheers

Craig

--
Craig Hollingsworth
Global M Data Pilots Project Manager
Tel: +57 320 208 4921  / +44 (0) 7570 138 151
Skype:  Craig.Hollingsworth

[NRC Logo spanish]

--

___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Issue with /api/reportTables api

2016-04-18 Thread Lars Helge Øverland
Okay now I see what you mean.

Fixed now in trunk and 2.22.

regards,

Lars









On Mon, Apr 18, 2016 at 1:36 PM, Aamer Mohammed 
wrote:

> Hi Lars,
>
> I checked on demo (Version 2.22, Revision 21999). The reportTable 'ANC
> Coverages Quarterly' has below data
> [image: Inline image 1]
>
>
> Whereas the api
> https://play.dhis2.org/demo/api/reportTables/C0rhAq1oklh/data.
> json
> is not giving the same data. Could you please check and confirm.
>
> Thanks
> Aamer.
>
>
> On Fri, Apr 15, 2016 at 8:20 PM, Lars Helge Øverland 
> wrote:
>
>> Hi Aamer,
>>
>> this seems to work as expected in 2.22 / on demo. Can you try to
>> reproduce there? If not, can you upgrade to 2.22?
>>
>> regards,
>>
>> Lars
>>
>>
>> On Tue, Apr 12, 2016 at 4:54 PM, Jan Henrik Øverland <
>> janhenrik.overl...@gmail.com> wrote:
>>
>>> Seems relative periods are rewinded by one period. "This quarter"
>>> returns Apr-Jun in the pivot table, but Jan-Mar in /data.html. Should be
>>> fixed.
>>>
>>> On 12 April 2016 at 11:06, Aamer Mohammed 
>>> wrote:
>>>

 I checked in play.dhis2.org also. I am seeing the same issue.
 For the reportTable, "ANC: Coverages Quarterly" last row data is not
 being retrieved by the api
 https://play.dhis2.org/demo/api/reportTables/C0rhAq1oklh/data.json

 Is it a known issue?


 On Tue, Apr 12, 2016 at 1:00 PM, Morten Olav Hansen 
 wrote:

> Hm, I take that back.. seems both are included.. seems strange
>
> --
> Morten
>
> On Tue, Apr 12, 2016 at 2:29 PM, Morten Olav Hansen 
> wrote:
>
>> Hm, seems March 2015 is included instead of March 2016... not sure if
>> it's a known issue or not, but seems like a bug, Lars will know better
>> (maybe it's fixed already)
>>
>> --
>> Morten
>>
>> On Tue, Apr 12, 2016 at 2:27 PM, Aamer Mohammed <
>> aam...@thoughtworks.com> wrote:
>>
>>> Hi Devs,
>>>
>>> We have seen the below issue when working with /api/reportTables
>>> api. We are using DHIS 2.21 build revision 21058.
>>> The reportTable as seen in DHIS app is as below.
>>>
>>> [image: Inline image 1]
>>>
>>> However when we try to fetch the data for the same report Table
>>> through /api/reportTables//data.html api we are not getting entire
>>> data. The data for last row is not retrieved through api (json response
>>> attached)
>>> Is anyone else facing this issue? Any observations please.
>>>
>>> Thanks
>>> Aamer.
>>>
>>>
>>>
>>>
>>
>

 ___
 Mailing list: https://launchpad.net/~dhis2-devs
 Post to : dhis2-devs@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-devs
 More help   : https://help.launchpad.net/ListHelp


>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>> Lars Helge Øverland
>> Lead developer, DHIS 2
>> University of Oslo
>> Skype: larshelgeoverland
>> http://www.dhis2.org 
>>
>>
>


-- 
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
http://www.dhis2.org 
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Issue with /api/reportTables api

2016-04-18 Thread Aamer Mohammed
Hi Lars,

I checked on demo (Version 2.22, Revision 21999). The reportTable 'ANC
Coverages Quarterly' has below data
[image: Inline image 1]


Whereas the api
https://play.dhis2.org/demo/api/reportTables/C0rhAq1oklh/data.
json
is not giving the same data. Could you please check and confirm.

Thanks
Aamer.


On Fri, Apr 15, 2016 at 8:20 PM, Lars Helge Øverland  wrote:

> Hi Aamer,
>
> this seems to work as expected in 2.22 / on demo. Can you try to reproduce
> there? If not, can you upgrade to 2.22?
>
> regards,
>
> Lars
>
>
> On Tue, Apr 12, 2016 at 4:54 PM, Jan Henrik Øverland <
> janhenrik.overl...@gmail.com> wrote:
>
>> Seems relative periods are rewinded by one period. "This quarter" returns
>> Apr-Jun in the pivot table, but Jan-Mar in /data.html. Should be fixed.
>>
>> On 12 April 2016 at 11:06, Aamer Mohammed 
>> wrote:
>>
>>>
>>> I checked in play.dhis2.org also. I am seeing the same issue.
>>> For the reportTable, "ANC: Coverages Quarterly" last row data is not
>>> being retrieved by the api
>>> https://play.dhis2.org/demo/api/reportTables/C0rhAq1oklh/data.json
>>>
>>> Is it a known issue?
>>>
>>>
>>> On Tue, Apr 12, 2016 at 1:00 PM, Morten Olav Hansen 
>>> wrote:
>>>
 Hm, I take that back.. seems both are included.. seems strange

 --
 Morten

 On Tue, Apr 12, 2016 at 2:29 PM, Morten Olav Hansen 
 wrote:

> Hm, seems March 2015 is included instead of March 2016... not sure if
> it's a known issue or not, but seems like a bug, Lars will know better
> (maybe it's fixed already)
>
> --
> Morten
>
> On Tue, Apr 12, 2016 at 2:27 PM, Aamer Mohammed <
> aam...@thoughtworks.com> wrote:
>
>> Hi Devs,
>>
>> We have seen the below issue when working with /api/reportTables api.
>> We are using DHIS 2.21 build revision 21058.
>> The reportTable as seen in DHIS app is as below.
>>
>> [image: Inline image 1]
>>
>> However when we try to fetch the data for the same report Table
>> through /api/reportTables//data.html api we are not getting entire
>> data. The data for last row is not retrieved through api (json response
>> attached)
>> Is anyone else facing this issue? Any observations please.
>>
>> Thanks
>> Aamer.
>>
>>
>>
>>
>

>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-devs@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-devs
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> http://www.dhis2.org 
>
>


api_data.json
Description: application/json
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Retrieve a dataValue With DHIS Plugins

2016-04-18 Thread Guy Ekani
Hello Team,
Please i will like to know if it's possible to retrieve a datavalue using DHIS 
Plugins to insert it on a web portal? If Yes How can i do that ?
Sincerely, = EKANI Guy 
 



___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Disable application level caching

2016-04-18 Thread Sultanahamar Mohammad
Hi Team,

These are the cases that we have come across so far.

Caching issues

Case 1:

A new program doesn’t show up on Event capture /tracker capture apps even
after assigning it to a user role & org. units

Case 2:

Admin edits a user by changing the user’s  org. unit.

Log out and log in with the new user

The org. Unit tree remains same / doesn’t reflect new changes

Case 3:

Modifying data set sections (esp. Assigning or removing data elements) does
not show up on the data entry form immediately.

Case 4:

Adding new category combinations to data elements does not show up on data
entry module

Case 4:

Adding custom data forms for data entry module/ event / tracker capture.

Case 5:

Customizing DHIS by applying custom CSS/JS files

Case 6:

Caching of dashboards & modification of charts present on dashboards

Case 7:

Right after importing metadata into an instance.

Case 8:

Loading the form name of a data element after editing it.

Case 9:

Assigning new authority or revoking any authority does not reflect
immediately.

Regards,
Sultan Ahamar

On Sat, Apr 16, 2016 at 9:28 PM, Morten Olav Hansen 
wrote:

> Are these modifications happening through the web-api? or one of our old
> apps? we don't clear cache for most endpoints, so depending on what you are
> doing.. you might end up with a bit of funky metadata (owning side will be
> correct, but inverse side might be out of date)
>
> --
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> University of Oslo
> http://www.dhis2.org
>
> On Sat, Apr 16, 2016 at 9:35 PM, Lars Helge Øverland 
> wrote:
>
>> Thanks, sounds good.
>> On Apr 16, 2016 6:28 AM, "Sultanahamar Mohammad" <
>> sult...@thoughtworks.com> wrote:
>>
>>> Hi Lars,
>>>
>>> we have seen good number of these caching issues, they might be some
>>> miss from our end. we will send you a doc soon.
>>>
>>> Thanks and Regards,
>>> Sultan Ahamar
>>>
>>> On Fri, Apr 15, 2016 at 6:44 PM, Lars Helge Øverland 
>>> wrote:
>>>
 Hi Sultan,

 you can disable second level hibernate caching in the system only by
 modifying the source code. However that is not recommendable as it will act
 differently in production.

 Can you try to reproduce when things are not being updated and tell us
 the exact steps? We will try to fix. It is not supposed to be that way
 since Hibernate should invalidate its caches when stale.

 regards,

 Lars




 On Thu, Apr 14, 2016 at 2:33 PM, Sultanahamar Mohammad <
 sult...@thoughtworks.com> wrote:

> Hi Team,
>
> We are assuming that there is some application level caching
> happening. Users permissions, upon change does not reflect right away in
> the app. It takes some time to reflect. Some other api calls also take 
> time
> to reflect.
>
> Is our assumption correct on application level caching. If it is then
> how do we disable it if we want to. Please let us know.
>
> Thanks and Regards,
> Sultan Ahamar.
>



 --
 Lars Helge Øverland
 Lead developer, DHIS 2
 University of Oslo
 Skype: larshelgeoverland
 http://www.dhis2.org 


>>>
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp