<?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: Subtype not getting set on new feature using makeFeature in Swift Maps SDK Questions</title>
    <link>https://community.esri.com/t5/swift-maps-sdk-questions/subtype-not-getting-set-on-new-feature-using/m-p/1273573#M48</link>
    <description>&lt;P&gt;What is the exact field type for `SubtypeCode`? &amp;nbsp;For example, is it int32 or int64?&lt;/P&gt;&lt;P&gt;If it is int32, you might need to do this:&lt;/P&gt;&lt;LI-CODE lang="swift"&gt;appData.markUpAttributes.updateValue(Int32(1), forKey: "SubtypeCode")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And if it is int64, this:&lt;/P&gt;&lt;LI-CODE lang="swift"&gt;appData.markUpAttributes.updateValue(Int64(1), forKey: "SubtypeCode")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The literal value of &amp;nbsp;`1` in Swift is an `Int` in your code. &amp;nbsp;Because features are strongly typed, we need to make sure we are passing the exact integer type to attributes.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2023 14:53:23 GMT</pubDate>
    <dc:creator>rolson_esri</dc:creator>
    <dc:date>2023-03-30T14:53:23Z</dc:date>
    <item>
      <title>Subtype not getting set on new feature using makeFeature</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/subtype-not-getting-set-on-new-feature-using/m-p/1273277#M41</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm creating a new feature using a dictionary of attributes. &amp;nbsp;However, the subtype doesn't appear to be getting set. &amp;nbsp;Am I doing this correctly?&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="swift"&gt;                // LOAD ATTRIBUTES
                appData.markUpAttributes.updateValue(1, forKey: "SubtypeCode")
                let servicePointNumber = appData.targetFeature.attributes["gs_service_number"] as? String ?? ""
                appData.markUpAttributes.updateValue("Move SP#\(servicePointNumber) to here.", forKey: "Comment")
                appData.markUpAttributes.updateValue(Date(), forKey: "DateDrawn")
                // ADD LINE
                appData.polylineBuilder.add(appData.targetFeature!.geometry as! Point)
                appData.polylineBuilder.add(mapPoint)
                let line = appData.polylineBuilder.toGeometry()
                let lineFeature = appData.mapLineTable.makeFeature(attributes: appData.markUpAttributes as [String : Any], geometry: line)
                try await self.AddFeatureToMapLineTable(newFeature: lineFeature)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 29 Mar 2023 20:42:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/subtype-not-getting-set-on-new-feature-using/m-p/1273277#M41</guid>
      <dc:creator>DuanePfeiffer</dc:creator>
      <dc:date>2023-03-29T20:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Subtype not getting set on new feature using makeFeature</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/subtype-not-getting-set-on-new-feature-using/m-p/1273573#M48</link>
      <description>&lt;P&gt;What is the exact field type for `SubtypeCode`? &amp;nbsp;For example, is it int32 or int64?&lt;/P&gt;&lt;P&gt;If it is int32, you might need to do this:&lt;/P&gt;&lt;LI-CODE lang="swift"&gt;appData.markUpAttributes.updateValue(Int32(1), forKey: "SubtypeCode")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And if it is int64, this:&lt;/P&gt;&lt;LI-CODE lang="swift"&gt;appData.markUpAttributes.updateValue(Int64(1), forKey: "SubtypeCode")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The literal value of &amp;nbsp;`1` in Swift is an `Int` in your code. &amp;nbsp;Because features are strongly typed, we need to make sure we are passing the exact integer type to attributes.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 14:53:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/subtype-not-getting-set-on-new-feature-using/m-p/1273573#M48</guid>
      <dc:creator>rolson_esri</dc:creator>
      <dc:date>2023-03-30T14:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Subtype not getting set on new feature using makeFeature</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/subtype-not-getting-set-on-new-feature-using/m-p/1274738#M50</link>
      <description>&lt;P&gt;Needed to add Int32(1). &amp;nbsp;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 15:50:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/subtype-not-getting-set-on-new-feature-using/m-p/1274738#M50</guid>
      <dc:creator>DuanePfeiffer</dc:creator>
      <dc:date>2023-04-03T15:50:20Z</dc:date>
    </item>
  </channel>
</rss>

