<?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 failed to show attribute window when add new feature by selecting from another layer in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684672#M17593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have two polygon layers and create new feature for one layer by selecting polygon&amp;nbsp; from another layer. the selected polygon is highlighted without problem. I have a FeatureDataForm which is ESRI in house control as attribute data entry for the new feature, and need to show it right after the polygon is highlighted for user input for the new feature. the problem is that the FeatureDataForm apprears as blank popup window without attribute texbox. I need help of expertise here. the piece code is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer myFeatureLayer = MyMap.Layers["dpcpoly"] as FeatureLayer; MyFeatureDataForm.FeatureLayer = myFeatureLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MyFeatureDataForm.GraphicSource = copyGraphic; //copyGraphic is selected polygon from another layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureDataFormBorder.Visibility = Visibility.Visible;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Oct 2010 13:30:04 GMT</pubDate>
    <dc:creator>XiujuZhou</dc:creator>
    <dc:date>2010-10-25T13:30:04Z</dc:date>
    <item>
      <title>failed to show attribute window when add new feature by selecting from another layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684672#M17593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have two polygon layers and create new feature for one layer by selecting polygon&amp;nbsp; from another layer. the selected polygon is highlighted without problem. I have a FeatureDataForm which is ESRI in house control as attribute data entry for the new feature, and need to show it right after the polygon is highlighted for user input for the new feature. the problem is that the FeatureDataForm apprears as blank popup window without attribute texbox. I need help of expertise here. the piece code is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer myFeatureLayer = MyMap.Layers["dpcpoly"] as FeatureLayer; MyFeatureDataForm.FeatureLayer = myFeatureLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MyFeatureDataForm.GraphicSource = copyGraphic; //copyGraphic is selected polygon from another layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureDataFormBorder.Visibility = Visibility.Visible;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 13:30:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684672#M17593</guid>
      <dc:creator>XiujuZhou</dc:creator>
      <dc:date>2010-10-25T13:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: failed to show attribute window when add new feature by selecting from another la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684673#M17594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does your FeatureLayer have OutFields?&amp;nbsp; The FeatureDataForm determines what fields to show based on this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 14:11:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684673#M17594</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-10-25T14:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: failed to show attribute window when add new feature by selecting from another la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684674#M17595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yes the featureLayer&amp;nbsp; has OutFileds(*), and attribute window apprears without problem when create new feature by dwawing polygon using EditorWidet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Does your FeatureLayer have OutFields?&amp;nbsp; The FeatureDataForm determines what fields to show based on this.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 14:20:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684674#M17595</guid>
      <dc:creator>XiujuZhou</dc:creator>
      <dc:date>2010-10-25T14:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: failed to show attribute window when add new feature by selecting from another la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684675#M17596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to check for the following in order to identify the problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- What is the type of your target layer (e.g. FeatureLayer,...)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the target layer is a FeatureLayer then:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Does it have the same attribute (field) collection?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Are you setting OutFields property of the target layer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, how are you populating the "copyGraphic" in your source code? Is it a cloned graphic object or it still belongs to your first layer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 16:48:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684675#M17596</guid>
      <dc:creator>AliMirzabeigi</dc:creator>
      <dc:date>2010-10-25T16:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: failed to show attribute window when add new feature by selecting from another la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684676#M17597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the target layer is FeatureLayer and OutFiels is set like the OutFields(*). the source is ArcGISDynamicMapServiceLayer. the two layers have totaly different attribute fields. So the attributes window is for the target layer. copyGraphic belongs to first layer and is created by code below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; private void IdentifyTask_ExecuteCompleted(object sender, IdentifyEventArgs args)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Graphic feature = args.IdentifyResults[0].Feature;//IdentifyResults is from source layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; copyGraphic = new Graphic()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Symbol = searchFillSymbol,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Geometry = feature.Geometry&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hilightGraphicsLayer.Graphics.Add(copyGraphic);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureLayer myFeatureLayer = MyMap.Layers["dpcpoly"] as FeatureLayer;//dpcpoly is the target layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyFeatureDataForm.FeatureLayer = myFeatureLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyFeatureDataForm.GraphicSource = copyGraphic;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureDataFormBorder.Visibility = Visibility.Visible;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You need to check for the following in order to identify the problem:&lt;BR /&gt;- What is the type of your target layer (e.g. FeatureLayer,...)?&lt;BR /&gt;If the target layer is a FeatureLayer then:&lt;BR /&gt;- Does it have the same attribute (field) collection?&lt;BR /&gt;- Are you setting OutFields property of the target layer?&lt;BR /&gt; &lt;BR /&gt;Also, how are you populating the "copyGraphic" in your source code? Is it a cloned graphic object or it still belongs to your first layer?&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 17:11:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684676#M17597</guid>
      <dc:creator>XiujuZhou</dc:creator>
      <dc:date>2010-10-25T17:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: failed to show attribute window when add new feature by selecting from another la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684677#M17598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From what I see in your code the "copyGraphic" doesn't have any attributes defined (just the Geometry and the Symbol). You need to use Attributes.Add() method of the Graphic object to define and populate corresponding attributes and their values.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 17:45:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684677#M17598</guid>
      <dc:creator>AliMirzabeigi</dc:creator>
      <dc:date>2010-10-25T17:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: failed to show attribute window when add new feature by selecting from another la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684678#M17599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;copyGraphic is from source and dosn't need attribute window from source. since FeatureLayer of FeatureDataForm is set like this: MyFeatureDataForm.FeatureLayer = myFeatureLayer. I thought FeatureDataForm is going to have attribute fields shows for myFeatureLayer which is target layer. It is correct? if not, I need Attributes.Add() for graphic like you suggest. I add attributes like below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer myFeatureLayer = MyMap.Layers["dpcpoly"] as FeatureLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // copyGraphic.Attributes.Add(myFeatureLayer.OutFields[0].ToString(),3111);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; copyGraphic.Attributes.Add("DPC_ID", null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; copyGraphic.Attributes.Add("SUBDIVISION", null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; copyGraphic.Attributes.Add("KEYMAP", null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyFeatureDataForm.FeatureLayer = myFeatureLayer;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyFeatureDataForm.GraphicSource = copyGraphic;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FeatureDataFormBorder.Visibility = Visibility.Visible;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;however there is still no field appears in the attribute form. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also how to make the attribute window show like the attribute form defined in the FeatureLayer of target, such as dropdown box of subtype field, calendar from date type field, data validations etc.?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;From what I see in your code the "copyGraphic" doesn't have any attributes defined (just the Geometry and the Symbol). You need to use Attributes.Add() method of the Graphic object to define and populate corresponding attributes and their values.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 18:08:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684678#M17599</guid>
      <dc:creator>XiujuZhou</dc:creator>
      <dc:date>2010-10-25T18:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: failed to show attribute window when add new feature by selecting from another la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684679#M17600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does "myFeatureLayer" in your code have "DPC_ID", "SUBDIVISION", and "KEYMAP" attributes? The reason I'm asking is that FeatureDataForm gets attribute definitions from its associated "FeatureLayer" property and if "myFeatureLayer" doesn't have the above properties in it nothing will show up regardless of your attribute definitions in your "copyGraphic".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 19:23:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684679#M17600</guid>
      <dc:creator>AliMirzabeigi</dc:creator>
      <dc:date>2010-10-25T19:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: failed to show attribute window when add new feature by selecting from another la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684680#M17601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes "myFeatureLayer" has the attributes. But I do not want save attribute by code. I still need attribute window for user's input and need the window to be exactly like the attribute form defined in Feature Service such data validation, calender for date, dropdown box for subtype etc. in another word, I still want to use the attribute window like the one in EditorWiget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Does "myFeatureLayer" in your code have "DPC_ID", "SUBDIVISION", and "KEYMAP" attributes? The reason I'm asking is that FeatureDataForm gets attribute definitions from its associated "FeatureLayer" property and if "myFeatureLayer" doesn't have the above properties in it nothing will show up regardless of your attribute definitions in your "copyGraphic".&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 19:37:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684680#M17601</guid>
      <dc:creator>XiujuZhou</dc:creator>
      <dc:date>2010-10-25T19:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: failed to show attribute window when add new feature by selecting from another la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684681#M17602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Before adding the graphic to your target layer. You do need to add attributes to your graphic as Ali suggested. &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
FeatureLayer target = this.MyMap.Layers["TargetLayer"] as FeatureLayer;
Graphic graphic = new Graphic() { Geometry =&amp;nbsp; feature.Geometry };&amp;nbsp; 
foreach (var field in target.LayerInfo.Fields)
 graphic.Attributes.Add(field.Name, null);
target.Graphics.Add(graphic);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was using this as my target layer: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/2" rel="nofollow noopener noreferrer" target="_blank"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/2&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Notice, that the FeatureDataForm uses the proper control depending on the field type and the same validation check applies.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:48:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684681#M17602</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-12T04:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: failed to show attribute window when add new feature by selecting from another la</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684682#M17603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your great help! Jennifer. It works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was using this as my target layer: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/2"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/operations/FeatureServer/2&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Notice, that the FeatureDataForm uses the proper control depending on the field type and the same validation check applies.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 12:55:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/failed-to-show-attribute-window-when-add-new/m-p/684682#M17603</guid>
      <dc:creator>XiujuZhou</dc:creator>
      <dc:date>2010-10-26T12:55:18Z</dc:date>
    </item>
  </channel>
</rss>

