Select to view content in your preferred language

JS/layerInfo/fieldName - How to set value of fieldName?

601
1
07-15-2014 03:44 PM
Ravichandran_M_Kaushika
Occasional Contributor

dear Readers,

using the js samples https://developers.arcgis.com/javascript/jssamples/ed_simpletoolbar.html - we were able to have an app, create records directly in sde/ sql server using feature service.

we are capturing the user information in the .aspx page using custom security to used in usda.

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

tried 'value' : 'our test value' - no luck.

regards

ravi.

0 Kudos
1 Reply
Ravichandran_M_Kaushika
Occasional Contributor

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.

I used the following syntax

var pageUserNameFromEauth = eauthpassedfromaspxpage;

var myLayerInfo = [{

...

....

'fieldInfos' : [

{....},

{....}

{'fieldName': 'User_id', 'isEditable': true, 'tooltip': 'User name from eauth', 'label': 'User Name:'}

I want a way to say

{'fieldName':...... 'UserName', 'value': pageUserNameFromEauth}

and I am not able to assign the value.

regards

ravi.

0 Kudos