|
POST
|
Robert, Can you share your code so that i can match and figure out where is i am making mistake. Thanks for your cooperation
... View more
05-23-2019
06:43 AM
|
0
|
7
|
1098
|
|
POST
|
Robert, i tried with both ways.But its not work. var graphic=validFeature weather this statment is right or wrong but not throwing any error
... View more
05-23-2019
05:59 AM
|
0
|
9
|
1098
|
|
POST
|
Dear Robert, i check validfeature is not null and i replace this staetment with var feature = new esri.Graphic(null, null, UpdateAttr); i also check feature is not null.
... View more
05-23-2019
05:39 AM
|
0
|
11
|
1098
|
|
POST
|
Dear Robert, i successfully update the record from arcgis webinterface.but still facing error updating from my code. var UpdateAttr = {OBJECTID_1:validFeature.attributes.OBJECTID_1,اسم_الشركة: "test_25"}; var UpdateValidLayer = new esri.layers.FeatureLayer(featureServiceExpiredURl); var feature =validFeature;// new esri.Graphic(null, null, UpdateAttr); //graphic.setAttributes({OBJECTID :validFeature.attributes.OBJECTID_1,Governorate: "Riyadh",Status_Code:"2"}); var updateFeatures = []; updateFeatures.push(feature); UpdateValidLayer.applyEdits(null, updateFeatures,null, function (addResults, updateResults, deleteResults) { //dynamicMapServiceLayer.refresh(); console.log("Apply Edits Successfully:", updateResults); alert("updated Successfully"); }, function (err) { alert(err.message+"_________"+err.code+"_________"+err.details+"_______"+err); console.log("Apply Edits Failed: ",err); }); this is my last code this is the error which i am facing "Cannot read property 'attributes' of undefined ".i dont understand which variable is udefined.pls help.
... View more
05-23-2019
05:09 AM
|
0
|
13
|
1813
|
|
POST
|
Dear Robert, I try to update from web interface of arcgis server it through the same error.you can check this with attached image.What can be the reason.I tried to insert the new record and its inserted successfully.I face this problem updation and deletion of record. pls help. Thanks
... View more
05-23-2019
03:19 AM
|
0
|
14
|
1813
|
|
POST
|
Dear Robert, This is my updated code.But it is throwing same error.Pls help. function updateValidFeature(validFeature,strHello,strHello1){ try{ var UpdateValidLayer = new esri.layers.FeatureLayer(featureServiceValidURl); var graphic = validFeature; graphic.setAttributes({Governorate: "Riyadh",Status_Code:"2"}); var updateFeatures = []; updateFeatures.push(graphic); UpdateValidLayer.applyEdits(null, updateFeatures, null, function (addResults, updateResults, deleteResults) { dynamicMapServiceLayer.refresh(); console.log("Apply Edits Successfully:"); alert("updated Successfully"); }, function (err) { alert(err.message+"___"+err.code+"_________"+err.details); console.log("Apply Edits Failed: ",err.message+err.code); }); } catch(Ex){ alert(Ex.message); } }
... View more
05-23-2019
12:20 AM
|
0
|
0
|
1813
|
|
POST
|
Dear Robert, i put try catch and it is throwing the fallowing error. Unable to complete operation.___400_________ObjectId field is missing. In my table OBJECTID_1 is the objectID column.this can be the reason. Thanks
... View more
05-22-2019
06:06 AM
|
0
|
0
|
1813
|
|
POST
|
Dear Robert, I update from web interface of arcgis server with the arabic name of field.Its updated successfully.But this is first time i am updating feature service having table name in arabic.the other thing i just want to upadate attribute vales of a feature not the geometry.i cant say this arabic name is the reason for throwing error. Thanks
... View more
05-22-2019
05:59 AM
|
0
|
18
|
1813
|
|
POST
|
dear Robert I change the remarks but it is still throwing same error. Thanks
... View more
05-22-2019
05:43 AM
|
0
|
20
|
1813
|
|
POST
|
Dear all, i am trying to update a feature using feature service.My geodatabase is versioned.below is my code var UpdateAttr = { اسم_الشركة: test_2, Mineral :validFeature.attributes.Mineral, Geologist : validFeature.attributes.Geologist, Duration : validFeature.attributes.Duration, End_Date : validFeature.attributes.End_Date,//"", Decision_Type :validFeature.attributes.Decision_Type,//"", Location : validFeature.attributes.Location,// Decision_Date : validFeature.attributes.Decision_Date,//"", Decision_No : validFeature.attributes.Decision_Date,//"", Visible_Code :validFeature.attributes.Visible_Code,//"", Emirat_Code : validFeature.attributes.Emirat_Code,// Mineral_Code : validFeature.attributes.Mineral_Code,//"", Complex_Code : validFeature.attributes.Complex_Code,//"", City_Code :validFeature.attributes.City_Code,//"", Status_Code :validFeature.attributes.Status_Code, Emirate : validFeature.attributes.Emirate,*/ Governorate : "ddd", }; var UpdateValidLayer = new esri.layers.FeatureLayer(featureServiceValidURl); var MyUpdateGraphic = new esri.Graphic(null, null, UpdateAttr); var updateFeatures = []; updateFeatures.push(MyUpdateGraphic); UpdateValidLayer.applyEdits(null, updateFeatures, null, function (addResults, updateResults, deleteResults) { dynamicMapServiceLayer.refresh(); console.log("Apply Edits Successfully:"); alert("updated Successfully"); }, function (err) { alert(err.message+"___"+err.code+"_________"+err.id); console.log("Apply Edits Failed: ",err.message+err.code); }); Always through error "Unabale to complete operation.Error Code is 400".i have this code many times in my other projects.But this time throwing error. i also try to update feature using arcgis server webinterface.it works from the webinterface.so Pls help.Thanks is advance.
... View more
05-22-2019
05:28 AM
|
0
|
22
|
3638
|
|
POST
|
Dear Robert, My feature class is updated by some desktop client.I want all the record should be visible in the rest service when i make the query to rest service.how it is possible. Thanks
... View more
05-15-2019
05:20 AM
|
0
|
1
|
1375
|
|
POST
|
Dear Robert, i have one solution.i want to discuss with you.if we add all the feature classes source and target on mxd and publish the service from arcgis server. Make our service setintentervalRefresh(1).the service will fetch all the records from the database after every minute and we will place our records from source tables to one target table.here there is one problem how i run the code to fetch data from source tables to target tables after one minute.Can i use times here.how to use this timer.pls your suggestions. thanks for your kind cooperation.
... View more
05-13-2019
11:55 PM
|
0
|
3
|
1375
|
|
POST
|
we can create the rest services on this data.but it is real time data.As soon the three tables get data it should be some method to know that data is inserted in the three tables and fetch that data to your table from which you have to display data. Thanks Robert
... View more
05-13-2019
05:52 AM
|
0
|
5
|
1375
|
|
POST
|
Dear All, i have a difficult scenario. I have two data set.in one data set one desktop application insert some data with attribute field status yes or no in three tables.i have to fetch that features from three tables that have status yes have to move features in one features class.the resultant feature class i have to display on the map with specific symbology.how i move features with arcgis jave script code.i have to used rest service for this.please give me some idea. Thanks in advance.
... View more
05-13-2019
05:22 AM
|
0
|
7
|
1443
|
|
POST
|
Dear Robert i understand your code.But in my code on each click i create one row of three objects.one radio group of two buttons,one combobox and one text box visibility is hidden.it will visible true and false on selection box options.can you help me how programatically i can create this row of three objects. Thanks in advance
... View more
02-12-2019
09:46 PM
|
0
|
1
|
2790
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-04-2020 12:17 PM |
| Online Status |
Offline
|
| Date Last Visited |
05-30-2023
10:23 PM
|