|
POST
|
I tend to disagree. This is similar to other REST service I use in my JS scripts. This is not an export item issue. In version JS 3.x there is a sample in JS. I can't get it working in 4.x https://developers.arcgis.com/javascript/3/jsapi/extractdata-amd.html
... View more
06-23-2023
12:43 PM
|
0
|
0
|
1987
|
|
POST
|
Thanks but I was referring to this, extract. https://developers.arcgis.com/rest/analysis/api-reference/extract-data.htm and I use JS.
... View more
06-23-2023
10:30 AM
|
0
|
1
|
2006
|
|
POST
|
ArcGIS Server version 10.9.1 This is about the ExtractData service of the SpatialAnalysisTools in the system folder. In a standalone server, admin can allow the system folder in the ArcGIS server Manager to be accessible by everyone or select users. However, if the server is federated and then that option is not available. The only way to access the service is through tokens. That would make sense if the server is a public facing server. In my case. the server resides in an intranet environment behind a firewall. So, here is my first question. Why ESRI decides to make things complicated and not allow the option for the admin to set system folder open for everyone, if the server is not accessible by the pubic. I tried to use this but it fails without tokens since the url is on a federated service. Has anyone succeeded running the ExtractData service on a federated server? let url = "https://xxxxxx/rest/services/System/SpatialAnalysisTools/GPServer/ExtractData/submitJob"
var options = {
inputLayers:[{"url":layer.url, "filter":"1=1"}],
dataFormat:"SHAPEFILE",
outSR: 102100,
outputName: {
title: 'TEST'
}
}
esriRequest(
url, options).then ((response) =>{
console.log(response)
})
... View more
06-23-2023
09:46 AM
|
0
|
5
|
2028
|
|
POST
|
Thank you for the reply. I provided the above example just to demo my issue. Yes, I can convert it back to the date field as you suggested. However my actual case is an app where the user selects a layer from a dropdown. Then, I have to access the selected layer's REST service. In the REST service some of the fields are classified as DATE and some are others are numbers. So, if I loop through the fields of the selected layer, all the fields are returned as numbers and I wouldn't know which fields are actually dates and which are numbers. Is there a way to distinguish the fields which are dates and which are not? Some of the layers have a lot of fields with a variety of field types.
... View more
06-23-2023
09:18 AM
|
0
|
1
|
838
|
|
POST
|
I have feature layer with a date field. When I check the fields before the query the field "last_edit" was "esriFieldTypeDate" - line 46 After the query I checked the field and it was a number. - line 57, How do I keep the same field type? <html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<title>ArcGIS JavaScript Tutorials: Add your own custom button</title>
<style>
html, body, #viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<link rel="stylesheet" href="https://js.arcgis.com/4.16/esri/themes/light/main.css">
<script src="https://js.arcgis.com/4.16/"></script>
<script>
require([
"esri/Map",
"esri/views/MapView",
"esri/layers/FeatureLayer"
], function(Map, MapView, FeatureLayer) {
const layer = new FeatureLayer({
url: "https://gis.cnra.ca.gov/arcgis/rest/services/Boundaries/CCED_AccessType/MapServer/0"
});
var map = new Map({
basemap: "topo-vector",
layers: [layer]
});
var view = new MapView({
container: "viewDiv",
map: map,
center: [-120.679, 37.910],
zoom: 7
});
const btn =document.getElementById("test")
view.ui.add(btn, "top-right")
btn.addEventListener("click", querylayer);
function querylayer(evt) {
console.log(layer.fields)
let query = new Query();
query.where = "1=1";
query.outFields = ["*"];
layer.queryFeatures(query).then(function (results) {
console.log(results.features);
results.features.forEach(element => {
console.log(element.attributes)
Object.keys(element.attributes).forEach(key => {
console.log(key + " " + typeof(element.attributes[key]));
});
})
// exportToShapefile(results.features);
return;
});
}
});
</script>
</head>
<body>
<div id="viewDiv"></div>
<button id="test">Test</button>
</body>
</html>
... View more
06-23-2023
12:55 AM
|
0
|
3
|
865
|
|
POST
|
Did you check out this: https://developers.arcgis.com/javascript/latest/calculate-geometries/
... View more
06-13-2023
02:12 PM
|
0
|
0
|
1518
|
|
POST
|
This question is for the component page for tabs https://developers.arcgis.com/calcite-design-system/components/tabs/ I noticed that if you use Google Chrome for the codepen example, the click on tabs is not operational. It works on MS Edge. Anyone else, noticed it? @MNIT-Kitty-Hurley ? Chrome version: Version 114.0.5735.134
... View more
06-13-2023
11:34 AM
|
0
|
1
|
890
|
|
BLOG
|
Kudos for the great work by the ArcGIS JS team. The new features widget is an awesome tool and it will be great to display a feature's attributes on a side panel. @Noah-Sager @JuliePowell
... View more
06-12-2023
09:21 AM
|
1
|
0
|
1095
|
|
POST
|
Hello @Noah-Sager . I know this is an old posting but I thought it is relevant. I am trying to modify the print widget to print on a user defined bounding box. I am not using an app in the portal. Thanks.
... View more
06-08-2023
12:05 PM
|
0
|
2
|
3721
|
|
POST
|
Simple question here. I just need a fixed window to close when a user clicks on the OK button. I don't want the confirmation text or "Don't show this again" displayed. Just the ok button. I am using the ExB Enterprise portal version. Is it possible?
... View more
06-02-2023
03:22 PM
|
1
|
1
|
1182
|
|
POST
|
THanks. I guess things are completely different with API 3.x. I have another app with the elevation profile on JS API 3.x and it is working with streets basemap.
... View more
06-01-2023
09:20 PM
|
0
|
0
|
1776
|
|
POST
|
Here is a simple elevation profile app but it's not working. After you draw the line, no profile is plotted. https://codepen.io/lkoumis1/pen/LYgwVWP
... View more
06-01-2023
02:48 PM
|
0
|
2
|
1801
|
|
POST
|
According to the 1.4.0 documentation at https://developers.arcgis.com/calcite-design-system/releases/changelogs/latest/ the property detached is depreciated, however, on the components website https://developers.arcgis.com/calcite-design-system/components/shell-panel/#api-reference-properties-detached for the shell-panel there is no note for it.
... View more
05-31-2023
01:41 PM
|
0
|
2
|
1061
|
|
POST
|
I have this simple calcite combobox. I want to capture the selected display,not its value. It is simple to get the value. So, if I select the first option how do I capture "One", the text-label value? https://codepen.io/lkoumis1/pen/mdzvBKv?editors=1111 <link rel="stylesheet" href="https://unpkg.com/@esri/calcite-components/dist/calcite/calcite.css" />
<script src="https://unpkg.com/@esri/calcite-components/dist/calcite/calcite.esm.js" type="module"></script>
<calcite-combobox id="test">
<calcite-combobox-item value="1" text-label="One"></calcite-combobox-item>
<calcite-combobox-item selected value="2" text-label="Two"></calcite-combobox-item>
</calcite-combobox> document
.getElementById("test").addEventListener("calciteComboboxChange", function (event) {
console.log(document.getElementById("test").value)
})
... View more
05-23-2023
03:05 PM
|
0
|
1
|
1807
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-19-2025 10:13 PM | |
| 3 | 02-06-2026 10:44 AM | |
| 1 | 01-08-2026 12:50 PM | |
| 1 | 01-05-2026 01:35 PM | |
| 1 | 12-30-2025 10:18 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|