<?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: JS/layerInfo/fieldName - How to set value of fieldName? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-layerinfo-fieldname-how-to-set-value-of/m-p/535487#M49914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to explain it better: there is a field called user_id in the layer table - the users will be authenticated using a USDA wide e-auth credentials and that would supply the user name and related information. that information will be available to the javascript page from .aspx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the following syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var pageUserNameFromEauth = eauthpassedfromaspxpage;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var myLayerInfo = [{&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;'fieldInfos' : [&lt;/P&gt;&lt;P&gt;{....},&lt;/P&gt;&lt;P&gt;{....}&lt;/P&gt;&lt;P&gt;{'fieldName': 'User_id', 'isEditable': true, 'tooltip': 'User name from eauth', 'label': 'User Name:'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a way to say&lt;/P&gt;&lt;P&gt;{'fieldName':...... 'UserName', 'value': pageUserNameFromEauth}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I am not able to assign the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jul 2014 19:05:51 GMT</pubDate>
    <dc:creator>Ravichandran_M_Kaushika</dc:creator>
    <dc:date>2014-07-16T19:05:51Z</dc:date>
    <item>
      <title>JS/layerInfo/fieldName - How to set value of fieldName?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-layerinfo-fieldname-how-to-set-value-of/m-p/535486#M49913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; dear Readers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using the js samples &lt;A href="https://developers.arcgis.com/javascript/jssamples/ed_simpletoolbar.html"&gt;https://developers.arcgis.com/javascript/jssamples/ed_simpletoolbar.html&lt;/A&gt; - we were able to have an app, create records directly in sde/ sql server using feature service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are capturing the user information in the .aspx page using custom security to used in usda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have figured out a way to transport those values to the js page - but we are trying to populate user id, date n other information that can be programmatically obtained&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tried 'value' : 'our test value' - no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 22:44:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-layerinfo-fieldname-how-to-set-value-of/m-p/535486#M49913</guid>
      <dc:creator>Ravichandran_M_Kaushika</dc:creator>
      <dc:date>2014-07-15T22:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: JS/layerInfo/fieldName - How to set value of fieldName?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-layerinfo-fieldname-how-to-set-value-of/m-p/535487#M49914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to explain it better: there is a field called user_id in the layer table - the users will be authenticated using a USDA wide e-auth credentials and that would supply the user name and related information. that information will be available to the javascript page from .aspx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the following syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var pageUserNameFromEauth = eauthpassedfromaspxpage;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var myLayerInfo = [{&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;'fieldInfos' : [&lt;/P&gt;&lt;P&gt;{....},&lt;/P&gt;&lt;P&gt;{....}&lt;/P&gt;&lt;P&gt;{'fieldName': 'User_id', 'isEditable': true, 'tooltip': 'User name from eauth', 'label': 'User Name:'}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a way to say&lt;/P&gt;&lt;P&gt;{'fieldName':...... 'UserName', 'value': pageUserNameFromEauth}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I am not able to assign the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 19:05:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-layerinfo-fieldname-how-to-set-value-of/m-p/535487#M49914</guid>
      <dc:creator>Ravichandran_M_Kaushika</dc:creator>
      <dc:date>2014-07-16T19:05:51Z</dc:date>
    </item>
  </channel>
</rss>

