← Back to team overview

dhis2-users team mailing list archive

Re: [Dhis2-devs] Console displays warning when Editing an Event Detail

 

Hi Laura!
The error means that you have a variable named #{DatacheckCD4} that will be populated with data. The problem with the variable is that when you created it you configured it to get its value from data element X, but it seems that data element X is no longer part of the program. Did you expect the #{DatacheckCD4} to get data from a data element that is still in your form?

Unfortunately the UI for handling variables is not full feature yet. I think the thing to do is to delete the variable, and then based on wether you are actually using it or not you can add it again, connecting it to the correct source data element. You can delete the variable through the API, or with this sql statement:
delete from programrulevariable where name = 'DatacheckCD4';

Hope this helps!

Markus

> 7. apr. 2016 kl. 22.48 skrev Laura E. Lincks <laura.lincks@xxxxxxxxxxxxxxxxx>:
> 
> This also happens when registering a new event.
> 
> Laura E. Lincks <>
> Database Manager/Developer
> ICAP - Columbia University
> Mailman School of Public Health
> 60 Haven Ave, Floor B1
> New York, NY 10032
> Tel: 212 304 7132
> 
> 
> On Thu, Apr 7, 2016 at 5:46 PM, Laura E. Lincks <laura.lincks@xxxxxxxxxxxxxxxxx <mailto:laura.lincks@xxxxxxxxxxxxxxxxx>> wrote:
> Version:
> 2.22
> Build revision:
> 21973
> 
> We're getting warning messages messages in the DevTools console when we bring up an Event Detail in edit mode:
> 
> Variable #{DatacheckCD4} is linked to a dataelement that is not part of the program
> angular.js:102
> 
> 
> 
> (Edit in grid does not produce the warning.)
> 
> We can bring up the event details but are concerned that the message may indicate an underlying problem, specifically, that we cannot bring up an Event Program in the Event Capture app on a tablet.
> 
> 
> 
> We're going to remove program rules in a test copy and see if that helps.
> 
> 
> 
> Any suggestions on what we should look for? 
> 
>  
> Laura E. Lincks <>
> Database Manager/Developer
> ICAP - Columbia University
> Mailman School of Public Health
> 60 Haven Ave, Floor B1
> New York, NY 10032
> Tel: 212 304 7132 <tel:212%20304%207132>
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp


References