← Back to team overview

dhis2-users team mailing list archive

Re: Error in loading data entry forms

 

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@xxxxxxxxx
> 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.
>
> 1) Create a custom data entry form with an indicator.
> 2) Be sure there is a carriage return in the indicator formula.
> 3) Assign the data entry form to an orgunit.
> 4) 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@xxxxxxxxx> 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
>>
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>

References