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.
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.