seeing undefined instead of concepts for a coded question in XForms

0 views
Skip to first unread message

Joaquín Blaya

unread,
Jun 7, 2012, 5:25:24 PM6/7/12
to implem...@openmrs.org
In a coded question, instead of seeing the answers in the pulldown menu, all of the choices are undefined and one is jr:itext('ninguna') where ninguna is the concept name of the response.  I believe this happened after I changed the type from purcforms to javarosa, though I'm not 100% sure.  However, now if I place the global property back to purcforms, nothing changes.  Any ideas what could be happening?

Joaquín
___________________________________________________________________
Gerente de Desarrollo, eHealth Systems
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org

Daniel Kayiwa

unread,
Jun 8, 2012, 2:59:44 AM6/8/12
to implem...@openmrs.org
Hi Joaquin,

Can you do a File Save As and then send me the saved file?




--
The greatest want of the world is the want of men—men who will not be bought or sold, men who in their inmost souls are true and honest, men who do not fear to call sin by its right name, men whose conscience is as true to duty as the needle to the pole, men who will stand for the right though the heavens fall. 

Joaquín Blaya

unread,
Jun 8, 2012, 2:41:07 PM6/8/12
to implem...@openmrs.org
Hi Daniel,
I'm attaching it here.


Joaquín
___________________________________________________________________
Gerente de Desarrollo, eHealth Systems
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org


Indicación-de-anticonceptivos-hormonales-o-DIU.xml

Daniel Kayiwa

unread,
Jun 11, 2012, 3:51:05 AM6/11/12
to implem...@openmrs.org

Thanks Joaquin,

Do you see this while in the form designer, or when trying to enter (fill) a form?
What do you have as your selected locale?
If we keep uppermost in our minds the unkind and unjust acts of others, we shall find it impossible to love them as Christ has loved us; but if our thoughts dwell upon the wondrous love and pity of Christ for us, the same spirit will flow out to others.

Joaquín Blaya

unread,
Jun 11, 2012, 9:46:18 AM6/11/12
to implem...@openmrs.org
Hi Daniel,
I see the undefined both in the Preview pane in the Form Designer and in the actual form when I go to a patient and click on Form Entry.   I also tried to being in different locales es_CL, es, and en_UK, and the same thing happened in both locales.  Finally, I tried it in Chrome and Firefox and same thing.

Joaquín
___________________________________________________________________
Gerente de Desarrollo, eHealth Systems
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org


Daniel Kayiwa

unread,
Jun 11, 2012, 4:21:45 PM6/11/12
to implem...@openmrs.org

Joaquin,

Could you create a ticket for this and also attach the form?

Joaquín Blaya

unread,
Jun 11, 2012, 4:35:05 PM6/11/12
to implem...@openmrs.org
Ok, I will. 
Do you see any quick work around for this? Because I would like to get this form working in the next couple of days.

Or is the only thing we can do is to create the form again from scratch?


Joaquín
___________________________________________________________________
Gerente de Desarrollo, eHealth Systems
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org


Daniel Kayiwa

unread,
Jun 11, 2012, 4:38:56 PM6/11/12
to implem...@openmrs.org

There should be a workaround.
Do you have some time to come on IRC (even now is fine by me) and we try out some things?

Daniel Kayiwa

unread,
Jun 11, 2012, 5:05:13 PM6/11/12
to implem...@openmrs.org
Open the form in the form designer
Then select Languages from the Tools menu
Click the Add New button and enter the language name and key. eg Name=Espanol, Key=es   (You can pick the keys from the "locale.allowed.list" global property)
Click the Save button to close that dialog box
Select the new language from the top right hand most Language drop down list
Then select Save from the file menu.

Now try again to fill a form for a patient and tell us if it makes any difference.

Joaquín Blaya

unread,
Jun 11, 2012, 6:05:02 PM6/11/12
to implem...@openmrs.org
Here were the instructions that Daniel gave me which worked because I already had the language Espanol es.
In the form designer, select languages from the tools menu
Delete the language espanol, es
hit save
go to the xforms xml tab and delete the entire <translation lang="es_CL" tag, all the way to </translation> (it if still exists, in one of my forms it got deleted automatically)
 Click Open in the file menu
Then save in the file menu
Then go to languages from the tools menu and create the language Espanol es
save

and it worked.

___________________________________________________________________
Gerente de Desarrollo, eHealth Systems
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org


Reply all
Reply to author
Forward
0 new messages