jason
(Jason Pickering)
5 November 2013 12:57
1
Hi Devs,
I get this error in Firefox when attempting to load data entry forms.
SyntaxError: JSON.parse: unexpected character
var metaData = JSON.parse( sessionStorage[KEY_METADATA] );
Version:2.12 Build revision:11201
Any idea how to find out what this might be?
Regards,
Jason
jason
(Jason Pickering)
5 November 2013 13:21
2
This seems to be related to the presence of a carriage return in an indicator formula.
I do not have a full procedure to reproduce this, but I think it should be as follows.
Create a custom data entry form with an indicator.
Be sure there is a carriage return in the indicator formula.
Assign the data entry form to an orgunit.
Go to Data Entry and no forms for any orgunit will load.
Regards,
Jason
···
On Tue, Nov 5, 2013 at 6:57 PM, Jason Pickering jason.p.pickering@gmail.com wrote:
Hi Devs,
I get this error in Firefox when attempting to load data entry forms.
SyntaxError: JSON.parse: unexpected character
var metaData = JSON.parse( sessionStorage[KEY_METADATA] );
Version:2.12 Build revision:11201
Any idea how to find out what this might be?
Regards,
Jason
Lars
(Lars Øverland)
2 December 2013 17:20
3
This is funny, I have seen this a few times but not been able to reproduce - on Ubuntu that is. What OS are you on? It might be the Windows line feed that causes it (\r\n vs \n). Can anyone else test this on Windows and confirm?
regards,
Lars
···
On Tue, Nov 5, 2013 at 2:21 PM, Jason Pickering jason.p.pickering@gmail.com wrote:
This seems to be related to the presence of a carriage return in an indicator formula.
I do not have a full procedure to reproduce this, but I think it should be as follows.
Create a custom data entry form with an indicator.
Be sure there is a carriage return in the indicator formula.
Assign the data entry form to an orgunit.
Go to Data Entry and no forms for any orgunit will load.
Regards,
Jason
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp
On Tue, Nov 5, 2013 at 6:57 PM, Jason Pickering jason.p.pickering@gmail.com wrote:
Hi Devs,
I get this error in Firefox when attempting to load data entry forms.
SyntaxError: JSON.parse: unexpected character
var metaData = JSON.parse( sessionStorage[KEY_METADATA] );
Version:2.12 Build revision:11201
Any idea how to find out what this might be?
Regards,
Jason