Re: [Dhis2-devs] [Dhis2-users] HOW TO SHARE SCORECARD RESULTS ON DASHBOARD

2017-05-26 Thread Prosper BT
Dear Stanley,

I think scheduling a call would be great and go over this indicate your
availability and we can talk through it and share screens.

Regards

Prosper Behumbiize, MPH
DHIS2 Implementation| HISP Uganda
pros...@hispuganda.org  | pros...@dhis2.org | Skype:
prospertb

On Fri, May 26, 2017 at 9:43 AM, Stanley Kalyati  wrote:

> Can anyone help with my issue,
>
> Thank you
>
> Stanley
>
> On Wed, May 24, 2017 at 4:31 PM, Stanley Kalyati 
> wrote:
>
>> John and Colleagues,
>>
>> I have been able to find a way to have the scorecard on the dashboard.I
>> have practised with the Tanzania link on scorecard.However when i try with
>> my instance,the scorecard is failing to load on the dashboard.It keeps
>> saying the "Getting the scarecard ready" and this goes on and on.
>>
>> Should i uninstall and re-install or what must i do.
>>
>> I tried clearing the cache but nothing.
>>
>> However i am able to create the score cards without problems.
>>
>> Thank you all in advance.
>>
>> Regards
>>
>> Stanley
>>
>> On Wed, May 24, 2017 at 4:05 PM, Stanley Kalyati 
>> wrote:
>>
>>> John,
>>>
>>> I have managed to install the widget and yes i can access it through the
>>> dashboard.
>>>
>>> However,i have no clue as to how i should bring my scorecard on the
>>> dashboard because there is no where or button that talks about saving my
>>> work like we do with pivot tables or visualizer.
>>>
>>> How do i save my work and have it presented on the dashboard?
>>>
>>> Thank you
>>>
>>>
>>>
>>> On Wed, May 24, 2017 at 1:06 PM, John Mukulu 
>>> wrote:
>>>
 Hello Stanley,
 If you have already installed it on your machine, you need to search
 and add it from dashboard search, the same way you add other favorites.

 It may also be user role related, you can check how it appears in
 dashboard, here:
 https://scorecard-dev.dhis2.org/demo/dhis-web-dashboard-inte
 gration/index.action

 Let me know if you need further help.

 On Wed, May 24, 2017 at 10:08 AM, Stanley Kalyati 
 wrote:

> John and team,
>
> I downloaded the app as advised but I can't see the widget anywhere.
>
> Any step by step notes on this.?
>
> Thanks
>
> Stanley
>
>
>
> On May 23, 2017 6:50 PM, "John Mukulu" 
> wrote:
>
>> Hello Stanley,
>> Are you referring to HISP Tanzania interactive scorecard? If so, you
>> can get the dashboard widget for it from hisptz appstore.
>>
>> http://appstore.hisptanzania.org/
>>
>> On Tue, May 23, 2017 at 5:21 PM, Stanley Kalyati 
>> wrote:
>>
>>> How can i share the Scorecard results i have generated for all users
>>> to see on the dashboard?
>>>
>>> Assist.
>>>
>>> Stanley
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to : dhis2-us...@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>> John Francis Mukulu,
>> Lead Developer, HISPTZ,
>> University of Dar es salaam.
>> http://hisptanzania.org/
>>
>


 --
 John Francis Mukulu,
 Lead Developer, HISPTZ,
 University of Dar es salaam.
 http://hisptanzania.org/

>>>
>>>
>>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-us...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> 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] How to manually customize xml file for metadata import on DHIS2 v.2.23

2017-05-26 Thread vunda limbe
HI Everybody,

I want to import metadata from instance A to B. A has some dataelement,
categorycombo, option and dataset that I want to import to the B. I tried
to import some of them using csv model, some worked but other didn't work
and I'm getting error message during import process.
I want to customize a xml import model to put metadate that I want ot
import.
How can I do that?

Thanks.
___
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] How to manually customize xml file for metadata import on DHIS2 v.2.23

2017-05-26 Thread Knut Staring
Did you try the metadata export and import?

https://play.dhis2.org/demo/dhis-web-importexport/index.action

On Fri, May 26, 2017 at 1:39 PM, vunda limbe  wrote:

> HI Everybody,
>
> I want to import metadata from instance A to B. A has some dataelement,
> categorycombo, option and dataset that I want to import to the B. I tried
> to import some of them using csv model, some worked but other didn't work
> and I'm getting error message during import process.
> I want to customize a xml import model to put metadate that I want ot
> import.
> How can I do that?
>
> Thanks.
>
> ___
> 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
>
>


-- 
Knut Staring
Dept. of Informatics, University of Oslo
Norway: +4791880522
Skype: knutstar
http://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] How to manually customize xml file for metadata import on DHIS2 v.2.23

2017-05-26 Thread vunda limbe
Hi Knut,

Think you for your answer. I also tried. the problem is that I received a
customized metadata export from A instance that run DHIS2 v.2.25 and mine
run 2.23 and when I import using metadata import, I receive error message
and some category combos and option are missing. I checked in the
documentation, I saw the way to import with csv, but not a detail way on
wich default tag have to be in the xml file in order to make possible the
import.

is it a document or a comment that shows how to do?

thanks.

On Fri, May 26, 2017 at 12:48 PM, Knut Staring  wrote:

> Did you try the metadata export and import?
>
> https://play.dhis2.org/demo/dhis-web-importexport/index.action
>
> On Fri, May 26, 2017 at 1:39 PM, vunda limbe  wrote:
>
>> HI Everybody,
>>
>> I want to import metadata from instance A to B. A has some dataelement,
>> categorycombo, option and dataset that I want to import to the B. I tried
>> to import some of them using csv model, some worked but other didn't work
>> and I'm getting error message during import process.
>> I want to customize a xml import model to put metadate that I want ot
>> import.
>> How can I do that?
>>
>> Thanks.
>>
>> ___
>> 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
>>
>>
>
>
> --
> Knut Staring
> Dept. of Informatics, University of Oslo
> Norway: +4791880522 <+47%20918%2080%20522>
> Skype: knutstar
> http://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] How to manually customize xml file for metadata import on DHIS2 v.2.23

2017-05-26 Thread Knut Staring
I see, then you should upgrade to 2.24, and to 2.25.

For 2.25, there is an SQL script that should be run:
https://www.dhis2.org/225-upgrade

Knut

On Fri, May 26, 2017 at 2:06 PM, vunda limbe  wrote:

> Hi Knut,
>
> Think you for your answer. I also tried. the problem is that I received a
> customized metadata export from A instance that run DHIS2 v.2.25 and mine
> run 2.23 and when I import using metadata import, I receive error message
> and some category combos and option are missing. I checked in the
> documentation, I saw the way to import with csv, but not a detail way on
> wich default tag have to be in the xml file in order to make possible the
> import.
>
> is it a document or a comment that shows how to do?
>
> thanks.
>
> On Fri, May 26, 2017 at 12:48 PM, Knut Staring  wrote:
>
>> Did you try the metadata export and import?
>>
>> https://play.dhis2.org/demo/dhis-web-importexport/index.action
>>
>> On Fri, May 26, 2017 at 1:39 PM, vunda limbe  wrote:
>>
>>> HI Everybody,
>>>
>>> I want to import metadata from instance A to B. A has some dataelement,
>>> categorycombo, option and dataset that I want to import to the B. I tried
>>> to import some of them using csv model, some worked but other didn't work
>>> and I'm getting error message during import process.
>>> I want to customize a xml import model to put metadate that I want ot
>>> import.
>>> How can I do that?
>>>
>>> Thanks.
>>>
>>> ___
>>> 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
>>>
>>>
>>
>>
>> --
>> Knut Staring
>> Dept. of Informatics, University of Oslo
>> Norway: +4791880522 <+47%20918%2080%20522>
>> Skype: knutstar
>> http://dhis2.org
>>
>
>


-- 
Knut Staring
Dept. of Informatics, University of Oslo
Norway: +4791880522
Skype: knutstar
http://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] [Dhis2-users] HOW TO SHARE SCORECARD RESULTS ON DASHBOARD

2017-05-26 Thread Stanley Kalyati
Thats awesome Prosper,i truly appreciate.

Is monday at 8am ok with you?

Thank you

Stanley

On Fri, May 26, 2017 at 9:57 AM, Prosper BT  wrote:

> Dear Stanley,
>
> I think scheduling a call would be great and go over this indicate your
> availability and we can talk through it and share screens.
>
> Regards
>
> Prosper Behumbiize, MPH
> DHIS2 Implementation| HISP Uganda
> pros...@hispuganda.org  | pros...@dhis2.org | Skype:
> prospertb
>
> On Fri, May 26, 2017 at 9:43 AM, Stanley Kalyati 
> wrote:
>
>> Can anyone help with my issue,
>>
>> Thank you
>>
>> Stanley
>>
>> On Wed, May 24, 2017 at 4:31 PM, Stanley Kalyati 
>> wrote:
>>
>>> John and Colleagues,
>>>
>>> I have been able to find a way to have the scorecard on the dashboard.I
>>> have practised with the Tanzania link on scorecard.However when i try with
>>> my instance,the scorecard is failing to load on the dashboard.It keeps
>>> saying the "Getting the scarecard ready" and this goes on and on.
>>>
>>> Should i uninstall and re-install or what must i do.
>>>
>>> I tried clearing the cache but nothing.
>>>
>>> However i am able to create the score cards without problems.
>>>
>>> Thank you all in advance.
>>>
>>> Regards
>>>
>>> Stanley
>>>
>>> On Wed, May 24, 2017 at 4:05 PM, Stanley Kalyati 
>>> wrote:
>>>
 John,

 I have managed to install the widget and yes i can access it through
 the dashboard.

 However,i have no clue as to how i should bring my scorecard on the
 dashboard because there is no where or button that talks about saving my
 work like we do with pivot tables or visualizer.

 How do i save my work and have it presented on the dashboard?

 Thank you



 On Wed, May 24, 2017 at 1:06 PM, John Mukulu 
 wrote:

> Hello Stanley,
> If you have already installed it on your machine, you need to search
> and add it from dashboard search, the same way you add other favorites.
>
> It may also be user role related, you can check how it appears in
> dashboard, here:
> https://scorecard-dev.dhis2.org/demo/dhis-web-dashboard-inte
> gration/index.action
>
> Let me know if you need further help.
>
> On Wed, May 24, 2017 at 10:08 AM, Stanley Kalyati 
> wrote:
>
>> John and team,
>>
>> I downloaded the app as advised but I can't see the widget anywhere.
>>
>> Any step by step notes on this.?
>>
>> Thanks
>>
>> Stanley
>>
>>
>>
>> On May 23, 2017 6:50 PM, "John Mukulu" 
>> wrote:
>>
>>> Hello Stanley,
>>> Are you referring to HISP Tanzania interactive scorecard? If so, you
>>> can get the dashboard widget for it from hisptz appstore.
>>>
>>> http://appstore.hisptanzania.org/
>>>
>>> On Tue, May 23, 2017 at 5:21 PM, Stanley Kalyati >> > wrote:
>>>
 How can i share the Scorecard results i have generated for all
 users to see on the dashboard?

 Assist.

 Stanley

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


>>>
>>>
>>> --
>>> John Francis Mukulu,
>>> Lead Developer, HISPTZ,
>>> University of Dar es salaam.
>>> http://hisptanzania.org/
>>>
>>
>
>
> --
> John Francis Mukulu,
> Lead Developer, HISPTZ,
> University of Dar es salaam.
> http://hisptanzania.org/
>


>>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to : dhis2-us...@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> 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] Deletion of Program and all associated objects via API v 2.25

2017-05-26 Thread Lorill Crees
Hi,

We have been working on functionality to delete full Programs and all
associated data and metadata via the Web API using:

Version:
2.25
Build revision:
ee7e61b
Build date:
2017-05-19 12:47

The instance being used is assuming that attributes and data elements are
specific to a particular program/program stage and will not be reused
across programs.

I wanted to check to see if there are any other objects we need to worry
about for deletion that we may be missing.

This is our methodology in order of execution, all via the Web API:

   1. Delete Program and Program Stage Data
  1. delete all program stage events
  2. delete all tracked entity instances
   2. Delete Program and Program Stage Metadata
  1. delete all related program indicators
  2. delete all related program rules
  3. delete all related program rule variables (I'm not sure why these
  aren't deleted automatically via the program rule deletion)
  4. delete programDataElements (is it correct that these are generated
  by analytics?)
  5. delete all related indicators for programStage data elements
  6. delete underlying data elements
  7. delete related option sets and related options
  8. delete programTrackedEntityAttributes
  9. delete related trackedEntityAttributes
  10. delete related option sets and related options
   3. Delete Program and Program Stages
  1. delete program stages
  2. unassign program from all user roles (we note that the dataset
  deletion API call takes care of this step but the program
deletion API call
  doesn't and throws an error if we miss this step)
  3. delete program

I see some things in the program payload such as:

   - "notificationTemplates": [],
   - "translations": [],
   - "userGroupAccesses": [],
   - "attributeValues": [],
   - "validationCriterias": [],

Do any of these need to be explicitly deleted in order to delete a program
or will they cascade? Are there any other associated objects I haven't
mentioned that we need to delete? So far we've been implementing on a trial
and error basis.

Please let me know if there are any other considerations we should be
incorporating into our logic.

Thanks,

Lorill
-- 
Lorill Crees
Project Leader / Senior Developer
2Paths Solutions Ltd. 

lcr...@2paths.com
skype: lorill2paths
(604) 689-4123 x 15
___
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] Deletion of Data Set and all associated objects via API v 2.25

2017-05-26 Thread Lorill Crees
Hi,

Further to my other email thread regarding Program deletion, we have been
working on functionality to delete full Data Sets and all associated data
and metadata via the Web API using:

Version:
2.25
Build revision:
ee7e61b
Build date:
2017-05-19 12:47

The instance being used is assuming that data elements are specific to a
particular data set and will not be reused across data sets.

This is our methodology in order of execution, all via the Web API:

   1. Delete Data Set Data
  1. iterate through all associated data elements and use the
  /maintenance/dataPruning/dataElements functionality
   2. Delete Data Set Metadata
  1. delete all related indictors for data set data elements
  2. delete related data elements
  3. delete related category option combos / category combos
   3. Delete Data Set
  1. delete data set

I see some things in the data set payload such as:

   - "translations": [],
   - "userGroupAccesses": [],
   - "attributeValues": [],
   - "sections": [],
   - "compulsoryDataElementOperands": [],

Do any of these need to be explicitly deleted in order to delete a data set
or will they cascade? Are there any other associated objects I haven't
mentioned that we need to delete? So far we've been implementing on a trial
and error basis.

Please let me know if there are any other considerations we should be
incorporating into our logic.

Thanks,

Lorill

-- 
Lorill Crees
Project Leader / Senior Developer
2Paths Solutions Ltd. 

lcr...@2paths.com
skype: lorill2paths
(604) 689-4123 x 15
___
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