POST
|
I don't know "versionded SDE data" and "A and D table records". I am working with ArcGIS Online "Feature Layer (hosted)". Thank you for your answer, Michael.
... View more
07-13-2018
11:39 AM
|
0
|
0
|
850
|
POST
|
After doing different tests I guess that the Promise returned by adding a feature with applyEdits(), is set too early to the "OK" status. Is this a bug?
... View more
07-11-2018
08:51 AM
|
0
|
4
|
850
|
POST
|
Hello all, directly after creating and updating my hosted Featurelayer with applyEdits(), I would like to get the whole updated Featurelayer by a Query. My code below does this task chain almost correctly, but sometimes it doesn't get all changes. I guess the db update by applyEdits() was not ready yet before quering it. Why? I use then() between the functions, so I thougt one function is executed when the function before has done everything correctly? lyr.applyEdits({
addFeatures: createFeatArr
}).then(
lyr.applyEdits({
updateFeatures: updateFeatArr
})).then(getFeatureIds(lyr)); getFeatureIds(lyr): function getFeatureIds(lyr){
var query = new Query();
query.where = "1=1";
query.outFields = ["MYSQLID", "FID"];
var featuresArray = new Array();
var arr = new Array();
lyr.queryFeatures(query).then(function(results){
results.features.forEach(function(item){
featuresArray.push(item.attributes);
});
for (var prop in featuresArray) {
arr[featuresArray[prop].FID] = featuresArray[prop].MYSQLID.toString();
}
console.log("arr: " + arr);
});
} Someone can help me? Kind Regards Michael
... View more
06-10-2018
05:20 AM
|
0
|
8
|
1159
|
POST
|
As in the title. We are logging in our users with the .dotnet resource Proxy hosted on our server. But when trying to print secured services the user is prompted to log in anyway. As discussed in an older post, that's the intended behaviour. The resource proxy will not print a secured map service. This is by design. So it is possible to use the proxy in order to authenticate and display the secured service on the map, but when it comes to printing a secured service, the resource proxy will not handle this scenario as it will not pass the token in the Web_Map_as_JSON parameter. https://community.esri.com/message/647796-re-web-appbuilder-arcgis-online-layer-print-issue?commentID=647796#comment-647… I spoke with the Print widget guys at the UC in San Diego a few weeks ago (June/July 2016). They told me that in order for the print service to work, the proxy must be changed so that it will add a token on to a JSON output from the client side app. Currently, as stated above, the proxy will see the request from the print widget go through, but it will not attach a token to it. It is not the easiest solution, but it is the way to go. https://community.esri.com/thread/174867#comment-620278 NOTE: These would only work for the DotNet version of the Esri resource proxy. Get the "Web_Map_as_JSON" (WMAJ) parameter (and data it contains) from the the request. Using a library like Newtonsoft.Json, deserialize the WMAJ data from a JSON object into a DotNet Object Get the "Operational Layers" section of the WMAJ object and add each layer into an array. Compare the Layer URL's of the layers from the WMAJ object and the URL's that are defined in the proxy.config file. If a layer's URL matches a URL from the proxy config file, use the credential info to generate a token for it. Apply the token to the layer in the array of "Operational Layers" Serialize the DotNet WMAJ object (now with tokens for the secured layers) and send the request on its way. I include the print task URL in the app's config.json file and the proxy's proxy.config file. https://community.esri.com/thread/174867#comment-688539 The possible solution above seems to be really difficult. We can't create a custom print service, since we don't want to use arg gis server. So since some time passed since then, i wanted to ask if this is possible by now, or if someone already did these proxy modifications. Sincerely, Michael Lodes
... View more
04-17-2018
05:24 AM
|
1
|
8
|
3018
|
POST
|
btw: How can I debug such things... It's very difficult to notice the problems...
... View more
02-12-2018
08:42 AM
|
0
|
0
|
803
|
POST
|
Thank you Robert for your fast reply. They are all in the same spatial reference, so I think I don't need the query.outSpatialReference = map.spatialReference; I still get length: 0 as result in the console Is there something wrong with my layer? Its a "hosted feature layer" on ArcGis Online containing 59 features. It is also set as "Public (everyone)". var queryStatesTask = new QueryTask({
url: "https://services6.arcgis.com/zsStDqlI7B7GPAe2/arcgis/rest/services/Hundestation/FeatureServer"
});
var query = new Query();
query.where = "1=1";
query.outFields = ["*"];
queryStatesTask.execute(query).then(function(result){
console.log(result.features);
});
... View more
02-12-2018
08:40 AM
|
0
|
2
|
803
|
POST
|
Hi all, I'm working with JS 4.6. I want to query the table of a FeatureLayer to get all of its containing values and then push it into a JavaScript array? I can't find any sample code. My FeatureLayer ist hosted on ArcGis Online. This is my code but I get featureset "length: 0" in my console var queryStatesTask = new QueryTask({
url: "..."
});
var query = new Query();
queryStatesTask.execute(query).then(function(result){
console.log(result.features);
});
... View more
02-11-2018
08:00 AM
|
0
|
4
|
1052
|
POST
|
Got it working now. I'm not to sure what the problem was, but it was in the proxy.config file. Using the code below made it work. Config file: <?xml version="1.0" encoding="utf-8" ?>
<ProxyConfig allowedReferers="*"
mustMatch="false">
<serverUrls>
<serverUrl url="https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World"
clientId="***"
clientSecret="***"
matchAll="true"/>
</serverUrls>
</ProxyConfig> So i removed: <serverUrl url="http://services.arcgisonline.com" matchAll="true"/> And changed the url to "https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World ". I'm sure though that i tried this url before. Anyway it's working now and this thead can be closed. Thanks for the help.
... View more
01-18-2018
07:21 AM
|
0
|
0
|
703
|
POST
|
I think I'm going to batch the edits in one block if that implies better performance. So what would be the syntax then? Like this? var feature = new Graphic({
geometry: {
type: "point",
longitude: 10.784112,
latitude: 48.124298
},
attributes: {FID: 3}
});
var feature1 = new Graphic({
geometry: {
type: "point",
longitude: 11.784112,
latitude: 50.124298
},
attributes: {FID: 3}
});
var feature2.....
lyr.applyEdits({
updateFeatures: [feature, feature1, ...]
});
... View more
01-08-2018
08:46 AM
|
0
|
1
|
965
|
POST
|
I just want to push two coordinates into each dataset of an ArcGIS Online table ( = update each datasets' coordinates). If dataset with requested object id is not existing yet, a new dataset has to be created in that table. In most cases, datasets are updated and not have to be created newly
... View more
01-08-2018
06:43 AM
|
0
|
3
|
965
|
POST
|
Thank you very much, I work with JS API 4.6, but solved it anyway. Is this an efficient way to update thousands of features or do you know a faster way? var feature = new Graphic({
geometry: {
type: "point",
longitude: 10.784112,
latitude: 48.124298
},
attributes: {FID: 3}
});
lyr.applyEdits({
updateFeatures: [feature]
});
... View more
01-08-2018
06:20 AM
|
0
|
5
|
965
|
POST
|
Hi all, I am looking for a solution with which I can do fast coordinate updates of FeatureLayer objects hosted on ArcGIS Online. I guess with applyEdits() function I just can update "normal" attributes, but not the geometries/graphics information. A big amount of points has to be updated programmatically everytime. (Background: application provides a csv import with 5000-10000 datasets including new point coordinates). New points also have to be created, if dataset is not existing in hosted FeatureLayer yet. How could I do this with good performance? Best Regards, Michael
... View more
01-07-2018
07:38 AM
|
0
|
7
|
1239
|
Title | Kudos | Posted |
---|---|---|
1 | 03-29-2019 11:08 AM | |
1 | 04-26-2018 04:23 AM | |
1 | 04-17-2018 05:24 AM | |
1 | 07-18-2017 07:01 AM | |
2 | 07-14-2017 12:53 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|