<?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: AttributeInspector: stringFieldOption has no effect in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attributeinspector-stringfieldoption-has-no-effect/m-p/679934#M63351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the 'textarea' tip.&amp;nbsp; That did the trick, so I must not be including something.&amp;nbsp; At least now I know where to look.&amp;nbsp; I'll see if I can figure out about the lengths.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe someone out there has had success changing the lengths and could provide info here...?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Mar 2011 00:45:08 GMT</pubDate>
    <dc:creator>S_Ector</dc:creator>
    <dc:date>2011-03-24T00:45:08Z</dc:date>
    <item>
      <title>AttributeInspector: stringFieldOption has no effect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attributeinspector-stringfieldoption-has-no-effect/m-p/679932#M63349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the attribute inspector in a tabbed container in a dijit.Dialog.&amp;nbsp; It works fine, but now I would like to make some of the fields have a text area instead of a textbox.&amp;nbsp; The only change I am making is to add 'stringFieldOption':esri.dijit.AttributeInspector.STRING_FIELD_OPTION_TEXTAREA to the fieldInfos field definition.&amp;nbsp; However, there is no change in the attributeInspector for the field to a text area.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var costFieldInfos = [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{'fieldName': 'cost_est_interval_num', 'isEditable':true,&amp;nbsp; 'label':'Cost Interval:'},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{'fieldName':'cost_est_interval_comments','isEditable':true, 'label':'Comments', 'stringFieldOption':esri.dijit.AttributeInspector.STRING_FIELD_OPTION_TEXTAREA}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var layerInfos = [{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'featureLayer': actionTableFL,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'showAttachments': false,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'isEditable': true,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'showDeleteButton': false,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'fieldInfos': costFieldInfos&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }]; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var attInspector = new esri.dijit.AttributeInspector({&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layerInfos: layerInfos&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, dojo.create("div"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there additional changes I need to do?&amp;nbsp; Also, is there a way to customize the width of the text input boxes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 23:55:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attributeinspector-stringfieldoption-has-no-effect/m-p/679932#M63349</guid>
      <dc:creator>S_Ector</dc:creator>
      <dc:date>2011-03-22T23:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeInspector: stringFieldOption has no effect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attributeinspector-stringfieldoption-has-no-effect/m-p/679933#M63350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't have much experience with the attribute inspector but I was able to modify &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/widget_attributeInspectorPane.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Attribute Inspector sample&lt;/A&gt;&lt;SPAN&gt; and get the desired behavior. Both of these produced a text area for me:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{'fieldName': 'station_id','tooltip': 'The station id.', 'label':'Station:','isEditable':false, 'stringFieldOption': 'textarea'}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
{'fieldName': 'station_id','tooltip': 'The station id.', 'label':'Station:','isEditable':true, 'stringFieldOption': esri.dijit.AttributeInspector.STRING_FIELD_OPTION_TEXTAREA}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for changing the width of dijit text boxes/text areas...I wish I had a better way but you should be able to do this via CSS. The tricky part is getting the right dom node. The &lt;/SPAN&gt;&lt;A href="http://docs.dojocampus.org/dijit/form/TextBox" rel="nofollow noopener noreferrer" target="_blank"&gt;dojo campus dijit text box page&lt;/A&gt;&lt;SPAN&gt; has an example that might help. Something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var box = dijit.byId("progBox");
dojo.style(box.domNode, "width", "5em"); &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is getting the dijit's ID since everything in the attribute inspector is built programmatically...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:38:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attributeinspector-stringfieldoption-has-no-effect/m-p/679933#M63350</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2021-12-12T04:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeInspector: stringFieldOption has no effect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attributeinspector-stringfieldoption-has-no-effect/m-p/679934#M63351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the 'textarea' tip.&amp;nbsp; That did the trick, so I must not be including something.&amp;nbsp; At least now I know where to look.&amp;nbsp; I'll see if I can figure out about the lengths.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe someone out there has had success changing the lengths and could provide info here...?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 00:45:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attributeinspector-stringfieldoption-has-no-effect/m-p/679934#M63351</guid>
      <dc:creator>S_Ector</dc:creator>
      <dc:date>2011-03-24T00:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeInspector: stringFieldOption has no effect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attributeinspector-stringfieldoption-has-no-effect/m-p/679935#M63352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This did the trick and widened all the fields including the text areas:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .esriAttributeInspector .dijitTextBox { width:20em;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 01:02:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/attributeinspector-stringfieldoption-has-no-effect/m-p/679935#M63352</guid>
      <dc:creator>S_Ector</dc:creator>
      <dc:date>2011-03-24T01:02:24Z</dc:date>
    </item>
  </channel>
</rss>

