Hey everyone,<br><br>We followed the feature editing guide <a href="http://www.geomoose.org/docs/feature_editor.html">http://www.geomoose.org/docs/feature_editor.html</a> and were able get features successfully added, edited and deleted from our database. The issue we are having is editing when new features are added with (or edited to have) blank fields. When you click to edit a field which has had a comments section left blank (for example), the field will be populated with the most recent comments field that was not blank and was edited. I realize this sounds a bit confusing, so here is an example:<br>
<br>Feature 1:<br>comments field: blah blah blah <br><br>Feature 2:<br>comments field:<br><br>Feature 3:<br>comments field: hahaha<br><br>If you first edit feature 2, the comments field will be correctly left blank.<br>If you edit feature 1 and then edit feature 2 the comments field will show up as blah blah blah<br>
If you edit feature 1 then 3 then 2 the comments field will show up as hahaha<br><br>I'm guessing this is due to the fact that geomoose sees the comments field as null with a blank comment and thus, the most recent entry in the field persists (instead of filling it as blank). <br>
<br>To fix this, I have edited the identify.html file mentioned in the guide so that the edit link contains a space instead of nothing for any texts fields that are blank.<br><br>Like this:<br>'feature:comments' : '[comments] '<br>
<br>instead of this:<br>'feature:comments' : '[comments]' <br><br>This seams like a hackish way to fix the issue to me, and I was wondering if anyone else has come across the issue. If so, how did you solve it? I assume this has something to do with how geomoose generates it's service input fields, and how it handles null values. I just can't figure out where this would be in the geomoose code.<br>
<br>Thanks!<br>Jeff <br>