XLSForm for Windows compiled for fields longer than 255 characters. Who wants it?

Hi All,

I have edited the code of pyxform and rebuilt XLSForm with the proper xml header to allow for fields longer than 255 characters.

Basically this is just changing the survey.py in the pyxform\pyxform directory replacing the last entry of the current nsmap array from

u"xmlns:orx": u"http://openrosa.org/xforms"

to

u"xmlns:odk": u"http://www.opendatakit.org/xforms"

Now I don't have to go manually changing headers for my fields that are longer than 255 characters as long as I have a column labeled "bind::odk:length" with the number of characters I want for that field.

Since this was an edit to the pyxform code I wasn't sure where to commit the change since it is not part of the XLSForm-windows code. I have the compiled zip that I would be happy to share as version 1.4.8. if anyone would like it to post on the ODK website.

-John

2 Likes

Hi @John_Ellis! I think the best place to do this is to send in a PR to https://github.com/XLSForm/pyxform. This would make sure the change works across all the tools and not just XLSForm for Windows.

And speaking of XLSForm for Windows, I've built a new version of XLSForm Offline which is cross-platform, validates the form, and would deprecate XLSForm-Windows. Would you be up for trying it?

That would be great! Thanks. I have fairly complex forms that are generally over 400 rows in excel so I would be happy to test it out.

I will do that for the XLSForm/pyxform too. I just got tired of having to go in manually everytime. :slight_smile:

1 Like

I'll be on #xlsform-code channel on http://slack.opendatakit.org getting the release prepped today. Come say hi!

I did the pull request but the check said it failed but when I investigated it failed for changes I didn't make. looks like openrosa.org is a different site now... :-/