Re: [Dhis2-users] [Dhis2-devs] Program rule does not seem to be working

2015-10-01 Thread Markus Bekken
Hi David! As you probably know, the program rules has their own chapter in the user documentation. https://www.dhis2.org/doc/snapshot/en/user/html/dhis2_user_manual_en_full.html#d5e7293 But you have probably also noticed that the doc is pretty thin still. There will be more doc added in next

Re: [Dhis2-users] [Dhis2-devs] Program rule does not seem to be working

2015-10-01 Thread David Muturi
Hi Markus and team, I am writing a program rule that evaluates a yes only value and hides another field I am wondering which response to use i.e. ==true or =='yes'. Is there anywhere these rules are documented for each of the data values? rgds David 2015-09-23 9:46 GMT+03:00 Markus Bekken

Re: [Dhis2-users] [Dhis2-devs] Removing Organization Units

2015-10-01 Thread gerald thomas
Dear Dapo, What is the command to remove those data from the database as per organisation unit? Please help me. Regards, Gerald On Oct 1, 2015 16:16, "Dapo Adejumo" wrote: > Hi Gerald, > What error are you getting? > If you have data associated with these org units, you

Re: [Dhis2-users] [Dhis2-devs] Removing Organization Units

2015-10-01 Thread Jason Pickering
Hi Gerald, Removal of orgunits with associated reports or charts is non trivial, due to the use of the "sort_order" in these resources. It will cause a null pointer exception if you just delete the orgunit. I have added two functions to the dhis2-utils repo, which handle the deletion and

Re: [Dhis2-users] [Dhis2-devs] Removing Organization Units

2015-10-01 Thread gerald thomas
Dear Jason, Thanks for help Regards, Gerald On Oct 1, 2015 5:07 PM, "Jason Pickering" wrote: > Hi Gerald, > > > Removal of orgunits with associated reports or charts is non trivial, due > to the use of the "sort_order" in these resources. It will cause a null >

Re: [Dhis2-users] [Dhis2-devs] Removing Organization Units

2015-10-01 Thread Dapo Adejumo
Hi Gerald, You can run this command in the db - DELETE FROM datavalue WHERE sourceid = 'X'; Replace X with the orgunit id. Hope that helps. ……… Regards, Dapo Adejumo +2348033683677 Skype : dapojorge - Original Message - From: "gerald thomas"

Re: [Dhis2-users] [Dhis2-devs] Removing Organization Units

2015-10-01 Thread Bob Jolliffe
Gerald you would need to do this with an sql delete command. Before you do you should be 100% sure that you do really want to delete the data - maybe make a backup first. You need to find the primary key (organisationunitid) of the orgunit you want to delete. Say it is 5677 Then: DELETE FROM

Re: [Dhis2-users] Removing Organization Units

2015-10-01 Thread gerald thomas
Dear All, The error message: "Object not deleted because it is associated by objects of type DataValue" On 10/1/15, gerald thomas wrote: > Dear All, > I am trying to remove Organisation Units from DHIS2 versions 2.18 and > 2.20 but i am getting error. > > But i had already

Re: [Dhis2-users] [Dhis2-devs] Removing Organization Units

2015-10-01 Thread Dapo Adejumo
Hi Gerald, What error are you getting? If you have data associated with these org units, you will not be able to remove them until you delete the data in the database (even if you have removed the datasets). ……… Regards, Dapo Adejumo +2348033683677 Skype : dapojorge -

Re: [Dhis2-users] [Dhis2-devs] Removing Organization Units

2015-10-01 Thread gerald thomas
Dear Bob, Thanks very much for your help. Will get back to you with feedback. Regards, Gerald On Oct 1, 2015 4:49 PM, "Bob Jolliffe" wrote: > Gerald you would need to do this with an sql delete command. Before > you do you should be 100% sure that you do really want to

[Dhis2-users] Removing Organization Units

2015-10-01 Thread gerald thomas
Dear All, I am trying to remove Organisation Units from DHIS2 versions 2.18 and 2.20 but i am getting error. But i had already removed the datasets associated with these Organisation Units but i still can't remove them. Please can someone help. -- Regards, Gerald

Re: [Dhis2-users] Web Portal with DHIS2

2015-10-01 Thread Lars Helge Øverland
Hi Guy, for starters I recommend that you start reading up on how to use the analytics plugins here: https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s23.html Using these you can embed pivots, charts and maps in web portals with live data from DHIS 2. You can also have a look at the

Re: [Dhis2-users] [Dhis2-devs] Program rule does not seem to be working

2015-10-01 Thread David Muturi
Hi Markus, Many thanks, yes I am well aware of the documentation but some of the questions raised is due to the fact one is unable to find the answers in the documentation. rgds David 2015-10-01 15:48 GMT+03:00 Markus Bekken : > Hi David! > As you probably know, the

[Dhis2-users] change value in Individual tracker

2015-10-01 Thread channara rin
Hi DHIS2 Friends, I have a question on individual tracker section. If i change some value of individual in attribute/dataelements in program stage and then i run manual aggregation, it is still aggregate the old value to data entry. so how can show new value in data entry section, after i changed