Console displays warning when Editing an Event Detail

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

This also happens when registering a new event.

···

On Thu, Apr 7, 2016 at 5:46 PM, Laura E. Lincks laura.lincks@icap.columbia.edu 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

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

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

···

On Thu, Apr 7, 2016 at 5:46 PM, Laura E. Lincks laura.lincks@icap.columbia.edu 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

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