<?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: Assign javascript object to Feature attribute in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/assign-javascript-object-to-feature-attribute/m-p/1010815#M71135</link>
    <description>&lt;P&gt;I don't think I've used this, but your field definition is correct.&lt;/P&gt;&lt;P&gt;I was able to use it in &lt;A href="https://codepen.io/odoe/pen/rNMwazK?editors=100" target="_self"&gt;this sample&lt;/A&gt;. I don't think it would work with the FeatureTable though, but should work in other places.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Dec 2020 23:04:08 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2020-12-17T23:04:08Z</dc:date>
    <item>
      <title>Assign javascript object to Feature attribute</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/assign-javascript-object-to-feature-attribute/m-p/1010806#M71133</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it possible to assign a javascript object to a Feature's Attributes? How do I define the field in the layer schema in reference to this attribute?&amp;nbsp;&lt;/P&gt;&lt;P&gt;My javascript object looks something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;myObject = { 
    areaColor: "a8cfe1"
    areaId: "a152D000000RDV5QAO"
    areaName: "Territory 1"
    calcAttData: []
    config: {
        center: {
           type: "geographic", 
           attribute: "", 
           coordinates:[0.0, -60.0, 10.0], 
           fixed: false
        }
    }
}
&lt;/LI-CODE&gt;&lt;P&gt;I would like to declare the feature attribute like so:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    assignment: myObject
}&lt;/LI-CODE&gt;&lt;P&gt;and I think the field definition should look like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    name: 'assignment',
    type: 'blob'
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help/guidance is greatly appreciated&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 22:31:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/assign-javascript-object-to-feature-attribute/m-p/1010806#M71133</guid>
      <dc:creator>Namibian</dc:creator>
      <dc:date>2020-12-17T22:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Assign javascript object to Feature attribute</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/assign-javascript-object-to-feature-attribute/m-p/1010815#M71135</link>
      <description>&lt;P&gt;I don't think I've used this, but your field definition is correct.&lt;/P&gt;&lt;P&gt;I was able to use it in &lt;A href="https://codepen.io/odoe/pen/rNMwazK?editors=100" target="_self"&gt;this sample&lt;/A&gt;. I don't think it would work with the FeatureTable though, but should work in other places.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 23:04:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/assign-javascript-object-to-feature-attribute/m-p/1010815#M71135</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2020-12-17T23:04:08Z</dc:date>
    </item>
  </channel>
</rss>

