<?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: When editing, how can I fill out attributes programatically? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-editing-how-can-i-fill-out-attributes/m-p/526383#M49094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Close but not quite answered. &amp;nbsp;Perhaps this is not possible using this approach. &amp;nbsp;I want not to just format the Popup, but to supply a value. &amp;nbsp;I tried this but it didn't work. &amp;nbsp;There doesn't seem to be a 'value' &amp;nbsp;attribute of a fieldName.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var layerInfos = [{&lt;BR /&gt; 'featureLayer':featureLayer,&lt;BR /&gt; 'showAttachments':false,&lt;BR /&gt; 'showDeleteButton':true,&lt;BR /&gt; 'fieldInfos':[&lt;BR /&gt; {'fieldName':"issue_id", 'isEditable':true, 'label':'&amp;lt;b&amp;gt; IssueId:&amp;lt;/b&amp;gt;', 'value': "12313"},&lt;BR /&gt; {'fieldName': "issue_name", 'isEditable':true, 'label':'&amp;lt;b&amp;gt;IssueName:&amp;lt;/b&amp;gt;'}&lt;BR /&gt; ]&lt;BR /&gt; }];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Dec 2016 23:58:18 GMT</pubDate>
    <dc:creator>SFGISProgram</dc:creator>
    <dc:date>2016-12-12T23:58:18Z</dc:date>
    <item>
      <title>When editing, how can I fill out attributes programatically?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-editing-how-can-i-fill-out-attributes/m-p/526379#M49090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a use case where I would like the users to add points and lines to a map, but the attributes should be added via code. &amp;nbsp;I am using an editor widget based on this sample. &amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=ed_default_editingwidget" title="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=ed_default_editingwidget"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say I wanted to add a value 1234 &amp;nbsp;to the "issue_id" attribute when the user created a new feature for the operationsPointLayer in the sample code above? &amp;nbsp;Where in the code would I apply the attribute values? &amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 19:55:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-editing-how-can-i-fill-out-attributes/m-p/526379#M49090</guid>
      <dc:creator>SFGISProgram</dc:creator>
      <dc:date>2016-12-12T19:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: When editing, how can I fill out attributes programatically?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-editing-how-can-i-fill-out-attributes/m-p/526380#M49091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I am understanding you right, you want to disable the attributes editing on maps. Try something similar to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function initEditor(results) {
//only one layer
var featureLayer = results[0].layer;
/*
var templatePicker = new esri.dijit.editing.TemplatePicker({
featureLayers: [featureLayer],
rows: 'auto',
groupingEnabled:false,
columns: 1
},'editorDiv');
templatePicker.startup();
*/
var layerInfos = [{
'featureLayer':featureLayer,
'showAttachments':false,
'showDeleteButton':false,
'fieldInfos':[
{'fieldName':'Name', 'isEditable':false, 'label':'&lt;SPAN style="color: #e8bf6a;"&gt;&amp;lt;b&amp;gt; &lt;/SPAN&gt;Name:&lt;SPAN style="color: #e8bf6a;"&gt;&amp;lt;/b&amp;gt;&lt;/SPAN&gt;'},

{'fieldName': 'Facility_Type', 'isEditable':true, 'label':'&lt;SPAN style="color: #e8bf6a;"&gt;&amp;lt;b&amp;gt;&lt;/SPAN&gt;Facility Type:&lt;SPAN style="color: #e8bf6a;"&gt;&amp;lt;/b&amp;gt;&lt;/SPAN&gt;'}

]
}];

//define the editor settings
var settings = {
map: map,
/* templatePicker:templatePicker, */
layerInfos:layerInfos
};
var params = {settings: settings};
//Create the editor widget
var editorWidget = new esri.dijit.editing.Editor(params);
editorWidget.startup();
//resize the info window (attribute inspector)
map.infoWindow.resize(495,495);
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:56:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-editing-how-can-i-fill-out-attributes/m-p/526380#M49091</guid>
      <dc:creator>SarojThapa1</dc:creator>
      <dc:date>2021-12-11T22:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: When editing, how can I fill out attributes programatically?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-editing-how-can-i-fill-out-attributes/m-p/526381#M49092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is a great start. &amp;nbsp;My use case is a editable map integrated into an existing web application, so I would like the user to just edit the geography and in my code supply some of the attribute values from a parameter elsewhere on the page. &amp;nbsp; So if I wanted to set the value for an attribute called "issue_id" to "234234" &amp;nbsp;for example, would I do that in the&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'fieldInfos' : [ ( 'fieldName': "issue_id", value: "234234", 'isEditable' :false) ] &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; That way I would be setting the issue_id value and not allowing the user to edit it. &amp;nbsp;Thanks kindly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 22:41:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-editing-how-can-i-fill-out-attributes/m-p/526381#M49092</guid>
      <dc:creator>SFGISProgram</dc:creator>
      <dc:date>2016-12-12T22:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: When editing, how can I fill out attributes programatically?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-editing-how-can-i-fill-out-attributes/m-p/526382#M49093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jshelp/intro_popuptemplate.html" title="https://developers.arcgis.com/javascript/3/jshelp/intro_popuptemplate.html"&gt;Format Popup Content | Guide | ArcGIS API for JavaScript 3.18&lt;/A&gt;&amp;nbsp;. If your question is answered, please mark the right answer as Correct Answer. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 22:59:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-editing-how-can-i-fill-out-attributes/m-p/526382#M49093</guid>
      <dc:creator>SarojThapa1</dc:creator>
      <dc:date>2016-12-12T22:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: When editing, how can I fill out attributes programatically?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-editing-how-can-i-fill-out-attributes/m-p/526383#M49094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Close but not quite answered. &amp;nbsp;Perhaps this is not possible using this approach. &amp;nbsp;I want not to just format the Popup, but to supply a value. &amp;nbsp;I tried this but it didn't work. &amp;nbsp;There doesn't seem to be a 'value' &amp;nbsp;attribute of a fieldName.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var layerInfos = [{&lt;BR /&gt; 'featureLayer':featureLayer,&lt;BR /&gt; 'showAttachments':false,&lt;BR /&gt; 'showDeleteButton':true,&lt;BR /&gt; 'fieldInfos':[&lt;BR /&gt; {'fieldName':"issue_id", 'isEditable':true, 'label':'&amp;lt;b&amp;gt; IssueId:&amp;lt;/b&amp;gt;', 'value': "12313"},&lt;BR /&gt; {'fieldName': "issue_name", 'isEditable':true, 'label':'&amp;lt;b&amp;gt;IssueName:&amp;lt;/b&amp;gt;'}&lt;BR /&gt; ]&lt;BR /&gt; }];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 23:58:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-editing-how-can-i-fill-out-attributes/m-p/526383#M49094</guid>
      <dc:creator>SFGISProgram</dc:creator>
      <dc:date>2016-12-12T23:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: When editing, how can I fill out attributes programatically?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-editing-how-can-i-fill-out-attributes/m-p/526384#M49095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This thread should help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/176125"&gt;https://community.esri.com/thread/176125&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 01:28:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/when-editing-how-can-i-fill-out-attributes/m-p/526384#M49095</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-12-13T01:28:08Z</dc:date>
    </item>
  </channel>
</rss>

