Re: [Dhis2-devs] [Dhis2-users] Delete Validation Rules

2018-08-20 Thread Calle Hedberg
Hi I do NOT agree that it should be possible to delete data elements that have datavalue or tracker records - in such cases where there is real DATA, the user must assess and delete such DATA first or else leave the data element no longer in use (with its data) - we typically move such

Re: [Dhis2-devs] [Dhis2-users] Delete Validation Rules

2018-08-20 Thread Em Le Hong
Hi, I agree with Calle Hedberg that the system should automatically delete any dependent records related to validation rules. In DHIS2, this kind of issue is not only happen with Validation rules, but also with many other objects. For example to delete a data element, we need to delete its data

Re: [Dhis2-devs] [Dhis2-users] Delete Validation Rules

2018-08-08 Thread Calle Hedberg
Hi Agree with Morten that it's a bug - it should be obvious that if you delete a validation rule, any old validation rule results are no longer of interest (with the rule deleted, you would not even know which rule any remaining results were referring too). So the solution here is that when you

Re: [Dhis2-devs] [Dhis2-users] Delete Validation Rules

2018-08-07 Thread Morten Olav Hansen
Hi Em I'm not sure if there is any UI for deleting validation results, but you can do it yourself in the database. The validationresults are located in the table "validationresult", and it has a column called "validationruleid" which links to your validation rules. So you need to find that