1 (edited by boneill 27-11-2009 09:17:19)

Re: sref_and_system : form won't submit

Hi Guys,
I am currently taking a look at indicia for a project that I am scoping here in Ireland. I would very much like to use indicia for the job but I don't have a need for the maps. I have a quick query regarding a snag I have hit. When I comment out the map() method from the dataentry class in my custom data entry page and instead use sref_and_system which accoriding to thge api should do the same thing without the map, the form does not submit it just posts and refreshes without saving the data. I was wondering would anyone have any idea why it is doing this. I even tried removing all the options from the method call and allowing it to default to the options set in the dataentryhelper class but to no avail. The code is below. Any input is greatly appreciated.

//form posts fine like this and record is saved to warehouse
echo data_entry_helper::map();
//form posts like this but no record is saved and no error/success message is returned.
echo data_entry_helper::sref_and_system(array(
  'label'=>'Spatial Reference',
  'fieldname'=>'sample:entered_sref'
));

Regards,
Barry.

Barry O' Neill, Data &  ICT Manager
National Biodiversity Data Centre, WIT West Campus, Carraiganore, Waterford, Ireland
+353 (0) 51-306247 | boneill@biodiversityireland.ie | http://www.biodiversityireland.ie

2

Re: sref_and_system : form won't submit

Hi Barry

Thanks for the info - you have indeed found an issue in the handling of a record with a spatial reference but no geometry from the map which is supposed to work as you expected.

I have created an issue for this at http://code.google.com/p/indicia/issues/detail?id=169 and posted up a patch for you to download which fixes the issue. It was only a tiny change once I'd spotted where the logic was wrong.

Best Wishes

John van Breda
Biodiverse IT

3

Re: sref_and_system : form won't submit

Hi John,
Thanks a million for the quick reply and well done on the project, the source is very well designed and very easy to understand and integrate.
Regards

Barry O' Neill, Data &  ICT Manager
National Biodiversity Data Centre, WIT West Campus, Carraiganore, Waterford, Ireland
+353 (0) 51-306247 | boneill@biodiversityireland.ie | http://www.biodiversityireland.ie