Hello Vara,
I have tried this and the same error NAN occurred. Do i have to do something on service side or server side to get this functionality on?
More Over when i used firebug i can see an error as "no element found". when I tried Chrome Debugger I Got The following error. May be it helps you in getting the error.
Thanks And regards
Saurabh
No, we need not do anything on service side or server side.
Did you update the objectids mentioned in arrays for Deletes for in both json objects for the two layers of feature service?
Could you please expand the results for the request "applyEdits" and send me another screenshot.
Thanks & Regards,
Vara Prasad.
Hi Vara
Yes i did update the objectid
var objdata =
[
{
"id": 0,
"adds": [
],
"updates": [
],
"deletes": [
4
]
}
]
Where objectID 4 already exist. Can u please explain a bit what kind of expanded result ur looking for. If u want i can provide u the link of my service on ur mail id.
Thanks And regards
Saurabh
Hi Saurabh,
I am sending a screen capture by highlighting the expanded results of the request ("applyEdits"). If you can please send me url, i will have a look at it.
Thanks & Regards,
Vara Prasad.
Hi vara
Sorry By mistake i removed the mail id too . I have it with me in my mail. Please let me know where I am going wrong in this issue
Thanks and Regards
Saurabh
Hi Saurabh,
I have done few tests in REST page of applyEdits operation (Apply Edits: jsontest.sde.CrossingFDCjason (ID: 0) ), by taking geometries available through service. I have created 3 geometries and got 401, 402, 403 as object id. Also tried deleting feature with object id 402. It got deleted successfully, also could update attributes of feature with objectid 401
Below are the values i have given for "adds", "updates" and "deletes"
=================================================================================
For Adds:
[
{
"geometry": {
"rings": [
[
[
858258.6026999997,
2689861.4839999992
],
[
858917.3973000003,
2690348.4316000007
],
[
859243.65890000015,
2689514.8526000008
],
[
858709.21710000001,
2689235.8118999992
],
[
858258.6026999997,
2689861.4839999992
]
]
]
},
"attributes": {
"crossingtype": "Road",
"crossingname": "al ain dubai truck road",
"completiondays": null,
"alignmentsheetno": "",
"partynamenoc1": "",
"issuedatenoc1": null,
"expirydatenoc1": null,
"partynamenoc2": "",
"issuedatenoc2": null,
"expirydatenoc2": null,
"chainagefrom": null,
"chainageto": null,
"consturctionmethod": null,
"exacavationreportno": "",
"exacavationdate": null,
"exacavationlength": null,
"hddreportno": "",
"hdddate": null,
"hddlength": null,
"boringreportno": "",
"boringdate": null,
"boringlength": null,
"casingpipepipeno": "",
"casingpipeheatno": "",
"insulationdate": null,
"insulationstatus": null,
"markertype": "",
"markerdate": null,
"completioncertifcateno": "",
"completioncertifcatedate": null,
"crossingstatus": "under construction",
"isverified": "No",
"easting": null,
"northing": null
}
}
]
=================================================================================
For Updates:
[
{
"attributes": {
"objectid": 401,
"crossingtype": "TestRoad",
"crossingname": "al ain dubai truck road",
"completiondays": null,
"alignmentsheetno": "",
"partynamenoc1": "",
"issuedatenoc1": null,
"expirydatenoc1": null,
"partynamenoc2": "",
"issuedatenoc2": null,
"expirydatenoc2": null,
"chainagefrom": null,
"chainageto": null,
"consturctionmethod": null,
"exacavationreportno": "",
"exacavationdate": null,
"exacavationlength": null,
"hddreportno": "",
"hdddate": null,
"hddlength": null,
"boringreportno": "",
"boringdate": null,
"boringlength": null,
"casingpipepipeno": "",
"casingpipeheatno": "",
"insulationdate": null,
"insulationstatus": null,
"markertype": "",
"markerdate": null,
"completioncertifcateno": "",
"completioncertifcatedate": null,
"crossingstatus": "under construction",
"isverified": "No",
"easting": null,
"northing": null,
"globalid": "{81FD3A20-6EC3-4FF4-8696-EFA71D4C8EB1}"
}
}
]
=====================================================================================
For Deletes: (It requires just an array of objectids.)
402
Please let me know if i am not clear anywhere.
Thanks & Regards,
Vara Prasad.
Hi Vara
That i was able to replicate. But when firing the same thing from an HTML page from backend , Its not working .
As i have to automate this process for some purpose. I was just wondering do i have to pass geometry for updation of feature attribute. Does applyedits takes only Graphic feature as an attribute?
Regards and Thanks
Saurabh
Saurabh,
Ok. I am testing with your code. I will get back to you ASAP.
Hi Vara,
Thanks ..I am looking forward for it.
Thanks and regards
Saurabh
Hi Vara,
I was also trying to use applyedits as u mentioned in ur first reply to this post( using javascript for Arcgis) but i am not able to get it working. If possible can u provide me the code for the same.?
Thanks and regards
Saurabh Gupta