<html w="urn:schemas-microsoft-com:office:word" v="urn:schemas-microsoft-com:vml" st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40" o="urn:schemas-microsoft-com:office:office">
<head>
<style type="text/css">
<!--
li.msoautosig { font-size: 12.0pt; margin-bottom: .0001pt; margin-left: 0in; font-family: Times New Roman; margin-top: 0in; margin-right: 0in }
li.msonormal { font-size: 12.0pt; margin-bottom: .0001pt; margin-left: 0in; font-family: Times New Roman; margin-top: 0in; margin-right: 0in }
span.emailstyle17 { font-family: Arial; color: navy }
a:visited { text-decoration: underline; color: blue }
p.msoautosig { font-size: 12.0pt; margin-bottom: .0001pt; margin-left: 0in; font-family: Times New Roman; margin-top: 0in; margin-right: 0in }
span.msohyperlink { text-decoration: underline; color: blue }
span.msohyperlinkfollowed { text-decoration: underline; color: blue }
p.msoplaintext { font-size: 10.0pt; margin-bottom: .0001pt; margin-left: 0in; font-family: Courier New; margin-top: 0in; margin-right: 0in }
p.msonormal { font-size: 12.0pt; margin-bottom: .0001pt; margin-left: 0in; font-family: Times New Roman; margin-top: 0in; margin-right: 0in }
a:link { text-decoration: underline; color: blue }
li.msoplaintext { font-size: 10.0pt; margin-bottom: .0001pt; margin-left: 0in; font-family: Courier New; margin-top: 0in; margin-right: 0in }
div.msoautosig { font-size: 12.0pt; margin-bottom: .0001pt; margin-left: 0in; font-family: Times New Roman; margin-top: 0in; margin-right: 0in }
div.msonormal { font-size: 12.0pt; margin-bottom: .0001pt; margin-left: 0in; font-family: Times New Roman; margin-top: 0in; margin-right: 0in }
div.msoplaintext { font-size: 10.0pt; margin-bottom: .0001pt; margin-left: 0in; font-family: Courier New; margin-top: 0in; margin-right: 0in }
-->
</style>
</head>
<body lang="EN-US" link="blue" vlink="blue" style="margin-bottom: 1px; margin-left: 4px; font-variant: normal; margin-top: 4px; margin-right: 4px; line-height: normal">
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Comic Sans MS">All,</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Comic Sans MS">Sounds like there is a FORM value not being cleared between edits. I'm not a JS programmer, but some sort of method upon submittal to set the fields all bank again needs to be executed when the form is submitted. Somehow the previous values are being pushed through to the next edit cycle.</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<font size="3" face="Comic Sans MS">bobb</font> </p>
<br>
<p style="margin-top: 0; margin-bottom: 0">
<br>
<br>
>>> "Gregory Roberts | Wendler" <groberts@wendlergs.com> wrote:<br> </p>
<table bgcolor="#f3f3f3" border="0" style="font-size: 1em; margin-bottom: 0; margin-left: 15px; margin-top: 0; margin-right: 0">
<tr>
<td>
<div style="border-left: solid 1px #050505; padding-left: 7px">
<div class="Section1">
<p style="margin-top: 0; margin-bottom: 0" class="MsoNormal">
<b><span style="color: navy; font-family: Arial; font-size: 10.0pt; font-weight: bold"><font color="navy" face="Arial" size="2">Hello all,<o style="font-weight: bold; font-size: 10.0pt; font-family: Arial; color: navy" p="#DEFAULT"></o style="font-weight: bold; font-size: 10.0pt; font-family: Arial; color: navy"></font></span></b> </p>
<p style="margin-top: 0; margin-bottom: 0" class="MsoNormal">
<b><span style="color: navy; font-family: Arial; font-size: 10.0pt; font-weight: bold"><font color="navy" face="Arial" size="2"><o style="font-weight: bold; font-size: 10.0pt; font-family: Arial; color: navy" p="#DEFAULT">
 </o style="font-weight: bold; font-size: 10.0pt; font-family: Arial; color: navy"></font></span></b> </p>
<p style="margin-top: 0; margin-bottom: 0" class="MsoNormal">
<b><span style="color: navy; font-family: Arial; font-size: 10.0pt; font-weight: bold"><font color="navy" face="Arial" size="2">I wanted to reply to this to see if anyone had come up with any other ways that this could be fixed. This is a problem that I have been dealing with for a while.<o style="font-weight: bold; font-size: 10.0pt; font-family: Arial; color: navy" p="#DEFAULT"></o style="font-weight: bold; font-size: 10.0pt; font-family: Arial; color: navy"></font></span></b> </p>
<p style="margin-top: 0; margin-bottom: 0" class="MsoNormal">
<b><span style="color: navy; font-family: Arial; font-size: 10.0pt; font-weight: bold"><font color="navy" face="Arial" size="2"><o style="font-weight: bold; font-size: 10.0pt; font-family: Arial; color: navy" p="#DEFAULT">
 </o style="font-weight: bold; font-size: 10.0pt; font-family: Arial; color: navy"></font></span></b> </p>
<p style="margin-top: 0; margin-bottom: 0" class="MsoNormal">
<b><span style="color: navy; font-family: Arial; font-size: 10.0pt; font-weight: bold"><font color="navy" face="Arial" size="2">Thanks,<o style="font-weight: bold; font-size: 10.0pt; font-family: Arial; color: navy" p="#DEFAULT"></o style="font-weight: bold; font-size: 10.0pt; font-family: Arial; color: navy"></font></span></b> </p>
<p style="margin-top: 0; margin-bottom: 0" class="MsoNormal">
<b><span style="color: navy; font-family: Arial; font-size: 10.0pt; font-weight: bold"><font color="navy" face="Arial" size="2"><o style="font-weight: bold; font-size: 10.0pt; font-family: Arial; color: navy" p="#DEFAULT">
 </o style="font-weight: bold; font-size: 10.0pt; font-family: Arial; color: navy"></font></span></b> </p>
<p style="margin-top: 0; margin-bottom: 0" class="MsoNormal">
<b><span style="color: navy; font-family: Arial; font-size: 10.0pt; font-weight: bold"><font color="navy" face="Arial" size="2">Gregory</font></span></b><font color="navy" face="Arial" size="2"><span style="color: navy; font-family: Arial; font-size: 10.0pt"><o style="font-size: 10.0pt; font-family: Arial; color: navy" p="#DEFAULT"></o style="font-size: 10.0pt; font-family: Arial; color: navy"></span></font> </p>
<div>
<div align="center" style="text-align: center" class="MsoNormal">
<p style="margin-top: 0; margin-bottom: 0">
<hr width="100%" tabindex="-1" align="center" size="2">
</p>
</div>
<p style="margin-top: 0; margin-bottom: 0" class="MsoNormal">
<b><span style="font-family: Tahoma; font-size: 10.0pt; font-weight: bold"><font size="2" face="Tahoma">From:</font></span></b><font size="2" face="Tahoma"><span style="font-family: Tahoma; font-size: 10.0pt"> Jeffrey Schmitz [mailto:jeffreykschmitz@gmail.com]<br style="font-family: Tahoma; font-size: 10.0pt"></span><b><span style="font-weight: bold">Sent:</span></b><span style="font-family: Tahoma; font-size: 10.0pt"> Monday, January 17, 2011 5:48 PM<br style="font-family: Tahoma; font-size: 10.0pt"></span><b><span style="font-weight: bold">To:</span></b><span style="font-family: Tahoma; font-size: 10.0pt"><st1 w="#DEFAULT" style="font-size: 10.0pt; font-family: Tahoma" st="on" personname="#DEFAULT">geomoose-users@lists.sourceforge.net</st1 style="font-size: 10.0pt; font-family: Tahoma"><br style="font-family: Tahoma; font-size: 10.0pt"></span><b><span style="font-weight: bold">Subject:</span></b><span style="font-family: Tahoma; font-size: 10.0pt"> [Geomoose-users] feature editing in geomoose</span></font><o p="#DEFAULT"></o> </p>
</div>
<p style="margin-top: 0; margin-bottom: 0" class="MsoNormal">
<font size="3" face="Times New Roman"><span style="font-size: 12.0pt"><o style="font-size: 12.0pt; font-family: Times New Roman" p="#DEFAULT">
 </o style="font-size: 12.0pt; font-family: Times New Roman"></span></font> </p>
<p style="margin-top: 0; margin-bottom: 0" class="MsoNormal">
<font size="3" face="Times New Roman"><span style="font-size: 12.0pt">Hey everyone,<br style="font-family: Times New Roman; font-size: 12.0pt"><br style="font-family: Times New Roman; font-size: 12.0pt">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 style="font-family: Times New Roman; font-size: 12.0pt"><br style="font-family: Times New Roman; font-size: 12.0pt">Feature 1:<br style="font-family: Times New Roman; font-size: 12.0pt">comments field: blah blah blah<br style="font-family: Times New Roman; font-size: 12.0pt"><br style="font-family: Times New Roman; font-size: 12.0pt">Feature 2:<br style="font-family: Times New Roman; font-size: 12.0pt">comments field:<br style="font-family: Times New Roman; font-size: 12.0pt"><br style="font-family: Times New Roman; font-size: 12.0pt">Feature 3:<br style="font-family: Times New Roman; font-size: 12.0pt">comments field: hahaha<br style="font-family: Times New Roman; font-size: 12.0pt"><br style="font-family: Times New Roman; font-size: 12.0pt">If you first edit feature 2, the comments field will be correctly left blank.<br style="font-family: Times New Roman; font-size: 12.0pt">If you edit feature 1 and then edit feature 2 the comments field will show up as blah blah blah<br style="font-family: Times New Roman; font-size: 12.0pt">If you edit feature 1 then 3  then 2 the comments field will show up as hahaha<br style="font-family: Times New Roman; font-size: 12.0pt"><br style="font-family: Times New Roman; font-size: 12.0pt">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 style="font-family: Times New Roman; font-size: 12.0pt"><br style="font-family: Times New Roman; font-size: 12.0pt">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 style="font-family: Times New Roman; font-size: 12.0pt"><br style="font-family: Times New Roman; font-size: 12.0pt">Like this:<br style="font-family: Times New Roman; font-size: 12.0pt">'feature:comments' : '[comments] '<br style="font-family: Times New Roman; font-size: 12.0pt"><br style="font-family: Times New Roman; font-size: 12.0pt">instead of this:<br style="font-family: Times New Roman; font-size: 12.0pt">'feature:comments' : '[comments]' <br style="font-family: Times New Roman; font-size: 12.0pt"><br style="font-family: Times New Roman; font-size: 12.0pt">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 style="font-family: Times New Roman; font-size: 12.0pt"><br style="font-family: Times New Roman; font-size: 12.0pt">Thanks!<br style="font-family: Times New Roman; font-size: 12.0pt">Jeff  <o style="font-size: 12.0pt; font-family: Times New Roman" p="#DEFAULT"></o style="font-size: 12.0pt; font-family: Times New Roman"></span></font>
</p>
</div>
</div>
</td>
</tr>
</table>
</body>
</html>