← Back to team overview

dhis2-users team mailing list archive

Re: Custom form designer creates error in data entry

 

I encountered a similar issue yesterday but did not think much about
it at the time, however I see it may now really be a bug.

I added a data element..

No. of HIV+ pregnant women newly intiated on ART for their own health
(New)	 with default category options

When I opened up the custom data entry form, I managed to dig this out
of the JavaScript console


c.defaultView.c.defaultView.getComputedStyle.bAjquery.min.js:4
f.extend.cssjquery.min.js:4
f.fn.extend.showjquery.min.js:4
f.fn.extend.showjquery-ui-1.8.12.custom.min.js:585
e.widget._create._renderAxisjquery-ui-1.8.12.custom.min.js:161
e.widget._createjquery-ui-1.8.12.custom.min.js:161
b.Widget._createWidgetjquery-ui-1.8.12.custom.min.js:30
b.widget.b.(anonymous function).(anonymous
function)jquery-ui-1.8.12.custom.min.js:28
b.widget.bridge.b.fn.(anonymous function)jquery-ui-1.8.12.custom.min.js:29
e.extend.eachjquery.min.js:2
e.fn.e.eachjquery.min.js:2
b.widget.bridge.b.fn.(anonymous function)jquery-ui-1.8.12.custom.min.js:29
c.widget._makeResizablejquery-ui-1.8.12.custom.min.js:387
c.widget._createjquery-ui-1.8.12.custom.min.js:380
b.Widget._createWidgetjquery-ui-1.8.12.custom.min.js:30
b.widget.b.(anonymous function).(anonymous
function)jquery-ui-1.8.12.custom.min.js:28
b.widget.bridge.b.fn.(anonymous function)jquery-ui-1.8.12.custom.min.js:29
e.extend.eachjquery.min.js:2
e.fn.e.eachjquery.min.js:2
b.widget.bridge.b.fn.(anonymous function)jquery-ui-1.8.12.custom.min.js:29
(anonymous function)viewDataEntryForm.js:11
f.Callbacks.njquery.min.js:2
f.Callbacks.o.fireWithjquery.min.js:2
e.extend.readyjquery.min.js:2
c.addEventListener.B

Not very helpful. When  I changed (New) to (Foo) it got the same
error, thinking that it might have something to do with the use of
(New). When I removed (New) it worked just fine. Maybe it is related
to the name of the DE?

I do not know what you data element is, but normally that error
happens when a data element exists in the custom form, which does not
exist in the database. You may need to clear your cache completely in
order for the new form to appear. Otherwise, the full stack trace
would be helpful for the devs.

Best regards,
Jason


On Thu, Apr 26, 2012 at 2:40 AM, Hiatt, Mr Tom (WPRO)
<hiattt@xxxxxxxxxxxx> wrote:
> DHIS 2.7 with Chrome
>
>
>
> I tried to create a custom data entry form and it looks like the form
> designer was missing things (I couldn’t find data elements to add for
> example).
>
>
>
> I saved the custom version anyway and then went to data entry which now had
> an exception. So I went back to the custom form screen, deleted it, but
> there is still an exception for data entry.
>
>
>
> Here’s the exception code:
>
>
>
> [+] Exception (org.hibernate.ObjectNotFoundException): No row with the given
> identifier exists:
> [org.hisp.dhis.dataelement.DataElementCategoryOptionCombo#61]
>
>
>
> Any idea how I can fix this and hopefully be able to add custom forms?
>
>
>
> Thanks,
>
> Tom
>
>
>
>
>
>
>
>
>
>
>
> ________________________________
>
> This message was scanned for viruses with Trend Micro ScanMail, GFI
> MailSecurity and GFI MailEssentials by the World Health Organization
> Regional Office for the Western Pacific. However, the recipient is advised
> to scan this e-mail and any attached files for viruses.
>
> Disclaimer:
>
> This e-mail, together with any attachments, is intended for the named
> recipients only and is confidential. It may also be privileged or otherwise
> protected by law.
>
> If you have received it in error, please notify the sender immediately by
> reply e-mail and delete it and any attachments from your system. You may not
> copy or disclose its contents to anyone.
>
>
> _______________________________________________
> 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
>


Follow ups

References