<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Update Cursor to enter name string in attribute field in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/update-cursor-to-enter-name-string-in-attribute/m-p/424681#M33340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Matt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was telling the script to enter the string "inputName".&amp;nbsp; It would "inputName" into the attribute field, instead of the name entered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jul 2013 12:09:32 GMT</pubDate>
    <dc:creator>JacobDrvar</dc:creator>
    <dc:date>2013-07-25T12:09:32Z</dc:date>
    <item>
      <title>Update Cursor to enter name string in attribute field</title>
      <link>https://community.esri.com/t5/python-questions/update-cursor-to-enter-name-string-in-attribute/m-p/424679#M33338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to modify my script to have the user's name entered into the MAPPER attribute field.&amp;nbsp; Currently, the script enters inputName into the attribute field.&amp;nbsp; I have a Parameter setup to Enter YOUR name as a string, but the script overwrites the name entered.&amp;nbsp; I want the Enter YOUR Name string the value to be entered into the attribute table, not the inputName.&amp;nbsp; My script is shown below.&amp;nbsp; inputName is listed as the 2nd string, since this is only part of my script.&amp;nbsp; I have another string set to 0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;#Import import arcpy&amp;nbsp; #Name Variable inputName = arcpy.GetParameterAsText(1)&amp;nbsp; #Permits the user to enter their name into the MAPPER field try:&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor = arcpy.da.UpdateCursor("Parcels", ["MAPPER"])&amp;nbsp; for row in cursor: &amp;nbsp; cursor.updateRow(["inputName"])&amp;nbsp; arcpy.AddMessage("name entered")&amp;nbsp; del row&amp;nbsp; del cursor&amp;nbsp; except:&amp;nbsp; print arcpy.GetMessages()&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 11:43:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/update-cursor-to-enter-name-string-in-attribute/m-p/424679#M33338</guid>
      <dc:creator>JacobDrvar</dc:creator>
      <dc:date>2013-07-25T11:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Update Cursor to enter name string in attribute field</title>
      <link>https://community.esri.com/t5/python-questions/update-cursor-to-enter-name-string-in-attribute/m-p/424680#M33339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Replace your entire loop with this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[0] = inputName &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.updateRow(row)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully you see where your code went wrong.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 11:59:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/update-cursor-to-enter-name-string-in-attribute/m-p/424680#M33339</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2013-07-25T11:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Update Cursor to enter name string in attribute field</title>
      <link>https://community.esri.com/t5/python-questions/update-cursor-to-enter-name-string-in-attribute/m-p/424681#M33340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Matt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was telling the script to enter the string "inputName".&amp;nbsp; It would "inputName" into the attribute field, instead of the name entered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 12:09:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/update-cursor-to-enter-name-string-in-attribute/m-p/424681#M33340</guid>
      <dc:creator>JacobDrvar</dc:creator>
      <dc:date>2013-07-25T12:09:32Z</dc:date>
    </item>
  </channel>
</rss>

