<?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: Use attributeInspector to create new entity in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-attributeinspector-to-create-new-entity/m-p/425560#M9948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Update :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried to add it to the InfoWindow :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var attr:AttributeInspector&amp;nbsp; = new AttributeInspector();
attr.featureLayers = [featLayer];
var g:Graphic = new Graphic();
var attributes:Object = {};
attributes["OBJECTID"] = "";
g.attributes = attributes;
attr.showFeature(g, featLayer);
map.infoWindow.visible = true;
map.infoWindow.anchorX = 15;
map.infoWindow.anchorY = 200;
map.infoWindow.content = attr;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but the infoWindow is displayed empty.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 19:10:36 GMT</pubDate>
    <dc:creator>MathieuVILLEMONT1</dc:creator>
    <dc:date>2021-12-11T19:10:36Z</dc:date>
    <item>
      <title>Use attributeInspector to create new entity</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-attributeinspector-to-create-new-entity/m-p/425559#M9947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to use the &lt;/SPAN&gt;&lt;STRONG&gt;attributeInspector&lt;/STRONG&gt;&lt;SPAN&gt; to create a new entity in a layer/table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This attributeInspector would be placed in a pop-up or outside the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far I was thinking to do something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var attrInspector:AttributeInspector&amp;nbsp; = new AttributeInspector(); ... attrInspector.featureLayers = [featLayer]; var g:Graphic = new Graphic(); attrInspector.showFeature(g, featLayer);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it a good approach ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 15:02:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-attributeinspector-to-create-new-entity/m-p/425559#M9947</guid>
      <dc:creator>MathieuVILLEMONT1</dc:creator>
      <dc:date>2014-03-12T15:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Use attributeInspector to create new entity</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-attributeinspector-to-create-new-entity/m-p/425560#M9948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Update :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried to add it to the InfoWindow :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var attr:AttributeInspector&amp;nbsp; = new AttributeInspector();
attr.featureLayers = [featLayer];
var g:Graphic = new Graphic();
var attributes:Object = {};
attributes["OBJECTID"] = "";
g.attributes = attributes;
attr.showFeature(g, featLayer);
map.infoWindow.visible = true;
map.infoWindow.anchorX = 15;
map.infoWindow.anchorY = 200;
map.infoWindow.content = attr;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but the infoWindow is displayed empty.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:10:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-attributeinspector-to-create-new-entity/m-p/425560#M9948</guid>
      <dc:creator>MathieuVILLEMONT1</dc:creator>
      <dc:date>2021-12-11T19:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Use attributeInspector to create new entity</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-attributeinspector-to-create-new-entity/m-p/425561#M9949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Update :&lt;BR /&gt;&lt;BR /&gt;I have tried to add it to the InfoWindow :&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var attr:AttributeInspector&amp;nbsp; = new AttributeInspector(); attr.featureLayers = [featLayer]; var g:Graphic = new Graphic(); var attributes:Object = {}; attributes["OBJECTID"] = ""; g.attributes = attributes; attr.showFeature(g, featLayer); map.infoWindow.visible = true; map.infoWindow.anchorX = 15; map.infoWindow.anchorY = 200; map.infoWindow.content = attr;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;but the infoWindow is displayed empty.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem with this was that the &lt;/SPAN&gt;&lt;STRONG&gt;layer was not loaded&lt;/STRONG&gt;&lt;SPAN&gt; and therefore did not have any &lt;/SPAN&gt;&lt;STRONG&gt;featureDetails&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the solution on &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/29092-How-do-you-populate-Feature.layerDetails" rel="nofollow" target="_blank"&gt;this thread&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you Robert and Walt!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 11:18:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-attributeinspector-to-create-new-entity/m-p/425561#M9949</guid>
      <dc:creator>MathieuVILLEMONT1</dc:creator>
      <dc:date>2014-03-14T11:18:30Z</dc:date>
    </item>
  </channel>
</rss>

