|
POST
|
Wait, now I'm getting inconsistencies? It wasn't zooming on the second map... then it did all of a sudden. Now it's not zooming again. Also my geopoint is not pulling the data to the second text field all of a sudden, but if you submit the survey it did in fact record the location?
... View more
01-07-2021
01:21 PM
|
0
|
0
|
2418
|
|
POST
|
Josh, Thanks, that put the point on the second map! But, I start at a county scale and the second map stays at the county scale after the point is added. I'm wondering if there's a way to have it zoom to the point as it does when you search an address?
... View more
01-07-2021
12:34 PM
|
0
|
1
|
2422
|
|
POST
|
I'm using a null value to have two geopoints on the web version of the survey. When you choose your address in the first geopoint, is there a way to have both maps simultaneously zoom? It would be helpful. Because in my case the end-user will be locating where a public nuisance has taken place, and this is generally near where he/she lives. If the second map zooms to the location used as their address it will save effort. You have to assume the end-user can't navigate maps well.
... View more
01-07-2021
09:29 AM
|
2
|
5
|
2439
|
|
POST
|
Thanks for the reply. Is there a link to this article?
... View more
12-30-2020
12:30 PM
|
1
|
1
|
10252
|
|
POST
|
There are a lot of questions related to getting the address of a geopoint to populate a text field. Here are four of them: https://community.esri.com/t5/arcgis-survey123-questions/how-to-get-address-from-geopoint-field/m-p/816173 https://community.esri.com/t5/arcgis-survey123-questions/autofill-address-in-textbox-when-marker-is-selected-in-geopoint/m-p/876661 https://community.esri.com/t5/arcgis-survey123-questions/using-survey123-geopoint-to-automatically-fill-a-text-survey/m-p/840191 https://community.esri.com/t5/arcgis-survey123-questions/pulldata-quot-geopoint-quot-location-quot-reversegeocode-other/m-p/818224 But, they all seem to be referring to working with the field app. Even the main reverse geocoding blog everybody refers to is apparently working with the app. "Reverse geocoding can be performed in the field app by..." This technical article very briefly mentions the pulldata based on an address method: https://support.esri.com/en/technical-article/000019081 I'm working with an ArcGIS Survey 123 online form, and I can't seem to find direct reference to it and reverse geocoding. When I try pulldata("@geopoint",${location},"reversegeocode") in the calculation field all it does in the map is drop the list of geocoders down from the search bar. My goal is for the end-user to fill out an address in the text field and have the point appear on the map. It's to save a bit of frustration.
... View more
12-20-2020
07:34 AM
|
0
|
8
|
10319
|
|
POST
|
I get this error when clicking the attribute table of a hosted feature layer in AGOL. When I first published this hosted feature layer from Survey 123 Connect everything was fine. If I retrace my steps, here's what I come up with: 1. Original publish of Complaints Survey 2. Submitted 5 surveys so as to have some example points in Complaints feature layer. 3. Created a webmap (from the Classic Map Viewer, not Beta) and added the Points feature layer. All 5 points are on the map. 4. Created a view 5. Added two new fields to the Complaints table. I did this because Survey 123 requires underscores instead of spaces in the name field values of a multiple choice survey question in the xlsx. The underscores are still there in the published feature layer field values, which I think looks sloppy. 6. My solution is to remove these underscores with a script and put the updated field value in one of the newly added fields. So, I ran the script. 7. I think this is when I noticed the points missing from the webmap with the Complaints feature layer. I tried these solutions from this help doc even though it references ArcMap and not Pro. No success. And there are a couple similar threads to my problem in GeoNet, but they didn't help. https://support.esri.com/en/technical-article/000016280 The things I did were: 1. remove the special character (i.e. &) I had in one field 2. create a new webmap and added the Complaints feature layer 3. deleted the original 5 features 4. added two new features 5. Where there was <Null> in a field I added a value even though this wasn't a problem before. 6. found you do not get the error when viewing the table of a hosted feature layer view 7. found you can see the features in the My Content of the Feature layer 8. you can also see the features in a Dashboard and in Pro So, basically I can see the features in the table everywhere besides in the feature layer itself when viewing from the Map Viewer.
... View more
12-16-2020
11:43 AM
|
0
|
0
|
820
|
|
POST
|
That's what I did. I right clicked within the catalog window.
... View more
12-04-2020
01:19 PM
|
0
|
0
|
10371
|
|
POST
|
Well, my memory is getting a little muddled now. But, a short time ago I was getting this same UNC path error, so an ESRI tech I made a case with suggested I completely wipe AGP from my machine (which was then running 2.6.0). So, I did that and then reinstalled AGP 2.6 anew from a .exe file we keep stored on in network folder. After that reinstall, I'm pretty sure I was able to create a new Notebook. But, now it somehow relapsed back to not letting me create a new Notebook.
... View more
11-30-2020
07:37 AM
|
1
|
0
|
10405
|
|
POST
|
No, I don't think so. I'm not even sure what that is, and it's not installed on my machine(s).
... View more
11-30-2020
06:31 AM
|
1
|
2
|
10409
|
|
POST
|
@Robert_LeClair I'm using Pro 2.6.0 and this problem still exists. In the catalog, when I attempt to add a New Notebook I get the same error. It does get created, but it won't load. Just giving you a heads-up. I ended up creating a Notebook from Folders in the catalog. I have a connection to a folder in my C drive.
... View more
11-23-2020
01:44 PM
|
1
|
6
|
10473
|
|
POST
|
https://community.esri.com/thread/231617-string-or-binary-data-would-be-truncated-error I looked up the error. I guess the field length in my case was too short (255 length). I tried this same expression on a field with a length of 1600 and it was successful.
... View more
11-10-2020
08:17 AM
|
1
|
0
|
29027
|
|
POST
|
I'm using ArcGIS Pro 2.6. I want to add some text to an existing field. The following verifies as valid but throws an error:
... View more
11-10-2020
07:49 AM
|
0
|
1
|
29027
|
|
POST
|
I'm having trouble with queries in my app. If you look at this page you'll notice the 'Search by Item' drop-down is blank and the 'Search by Category' displays 'Select one' by default. And when you select a Category with only one Item, such as 'Bicycle Reuse-Donation', the 'Search by Item' drop-down sets itself to that one item. How do I replicate this? I've been messing around in this section for hours. I can't figure it out? Here's the app on Code Pen. // Add the unique values to the recycle type
// select element. This will allow the user
// to filter categories by type.
function addToSelect(values) {
var dOpt = document.createElement("option");
dOpt.value = "";
dOpt.selected = true;
dOpt.text = "Select one";
catTypeSelect.add(dOpt);
values.uCatVals.sort();
values.uCatVals.forEach(function (value) {
var option = document.createElement("option");
option.text = value;
catTypeSelect.add(option);
});
var dOpt2 = document.createElement("option");
dOpt2.value = "";
dOpt2.disabled = true;
dOpt2.selected = true;
dOpt2.text = "Select one";
keyTypeSelect.add(dOpt2);
values.uKeyVals.sort();
values.uKeyVals.forEach(function (value) {
var option = document.createElement("option");
option.text = value;
keyTypeSelect.add(option);
});
return setDefinitionExpression();
}
// re-query the layer based on the selected Category and re-populate the keyword select
function addToSelect2(values) {
while (keyTypeSelect.options.length > 0) {
keyTypeSelect.remove(0)
}
var dOpt2 = document.createElement("option");
dOpt2.value = "";
dOpt2.disabled = true;
dOpt2.selected = true;
dOpt2.text = "Select one";
keyTypeSelect.add(dOpt2);
values.sort();
values.forEach(function (value)
{
var option = document.createElement("option");
option.text = value;
keyTypeSelect.add(option);
});
return true;
}
... View more
11-04-2020
07:07 AM
|
0
|
1
|
1496
|
|
POST
|
// query all features from the recycle layer
view
.when(function () {
return recycleLayer.when(function () {
var query = recycleLayer.createQuery();
return recycleLayer.queryFeatures(query);
});
})
.then(getValues)
.then(getUniqueValues)
.then(addToSelect);
// re-query the layer based on the selected Category and re-populate the keyword select
catTypeSelect.addEventListener("change", function () {
var sqlExp = "";
if (catTypeSelect.selectedIndex > 0) {
sqlExp +=
"Category LIKE '%" +
catTypeSelect.options[catTypeSelect.selectedIndex].value +
"%'";
}
var query = recycleLayer.createQuery();
query.where = sqlExp;
domClass.add('loadingDiv', 'visible'); //add loadingDiv
recycleLayer
.queryFeatures(query)
.then(getValues2)
.then(getUniqueValues2)
.then(addToSelect2);
setDefinitionExpression();
});
keyTypeSelect.addEventListener("change", setDefinitionExpression);
// return an array of all the values in the
// Category and item_keyword fields of the Recycle layer
function getValues(response) {
var features = response.features;
var values = features.map(function (feature) {
return {
Category: feature.attributes.Category,
item_keyword: feature.attributes.item_keyword
};
});
return values;
}
// re-query the layer based on the selected item_keyword and re-populate the keyword select
function getValues2(response) {
var features = response.features;
var values = features.map(function (feature) {
return feature.attributes.item_keyword;
});
return values;
}
// return an array of unique values in
// the item_keyword and Category fields of the Recycle layer
function getUniqueValues(values) {
var uniqueKeyValues = [];
var uniqueCatValues = [];
values.forEach(function (item, i) {
var keyVal = item.item_keyword.split(";");
var catVal = item.Category.split(";");
catVal.map(function (val1) {
if (
(uniqueCatValues.length < 1 ||
uniqueCatValues.indexOf(val1) === -1) &&
val1 !== ""
) {
uniqueCatValues.push(val1);
}
});
keyVal.map(function (val2) {
if (
(uniqueKeyValues.length < 1 ||
uniqueKeyValues.indexOf(val2) === -1) &&
val2 !== ""
) {
uniqueKeyValues.push(val2);
}
});
});
return {
uKeyVals: uniqueKeyValues,
uCatVals: uniqueCatValues
};
}
// re-query the layer based on the selected Category and re-populate the keyword select
function getUniqueValues2(values) {
var uniqueKeyValues = [];
values.forEach(function (item, i) {
var keyVal = item.split(";");
keyVal.map(function (val2) {
if (
(uniqueKeyValues.length < 1 ||
uniqueKeyValues.indexOf(val2) === -1) &&
val2 !== ""
) {
uniqueKeyValues.push(val2);
}
});
});
return uniqueKeyValues;
}
// Add the unique values to the recycle type
// select element. This will allow the user
// to filter categories by type.
function addToSelect(values) {
var dOpt = document.createElement("option");
dOpt.value = "";
dOpt.selected = true;
dOpt.text = "Select one";
catTypeSelect.add(dOpt);
values.uCatVals.sort();
values.uCatVals.forEach(function (value) {
var option = document.createElement("option");
option.text = value;
catTypeSelect.add(option);
});
var dOpt2 = document.createElement("option");
dOpt2.value = "";
dOpt2.selected = true;
dOpt2.text = "Select one";
keyTypeSelect.add(dOpt2);
values.uKeyVals.sort();
values.uKeyVals.forEach(function (value) {
var option = document.createElement("option");
option.text = value;
keyTypeSelect.add(option);
});
return setDefinitionExpression();
}
// re-query the layer based on the selected Category and re-populate the keyword select
function addToSelect2(values) {
while (keyTypeSelect.options.length > 0) {
keyTypeSelect.remove(0);
}
domClass.remove('loadingDiv', 'visible'); //remove loadingDiv
var dOpt2 = document.createElement("option");
dOpt2.value = "";
dOpt2.disabled = true;
dOpt2.selected = true;
dOpt2.text = "Select one";
keyTypeSelect.add(dOpt2);
values.sort();
values.forEach(function (value)
{
var option = document.createElement("option");
option.text = value;
keyTypeSelect.add(option);
});
return true;
}
// set the definition expression on the recycle
// layer to reflect the selection of the user
function setDefinitionExpression() {
var sqlExp = "";
if (catTypeSelect.selectedIndex > 0) {
sqlExp +=
"Category LIKE '%" +
catTypeSelect.options[catTypeSelect.selectedIndex].value +
"%'";
}
if (keyTypeSelect.selectedIndex > 0) {
if (sqlExp === "") {
sqlExp +=
"item_keyword LIKE '%" +
keyTypeSelect.options[keyTypeSelect.selectedIndex].value +
"%'";
} else {
sqlExp +=
" AND item_keyword LIKE '%" +
keyTypeSelect.options[keyTypeSelect.selectedIndex].value +
"%'";
}
}
if (resRb.checked) {
if (sqlExp !== "") {
sqlExp += " AND USER_IsRes = 'TRUE'";
}
} else {
if (sqlExp !== "") {
sqlExp += " AND USER_IsBus = 'TRUE'";
}
}
console.info(sqlExp);
recycleLayer.definitionExpression = sqlExp;
if (!recycleLayer.visible) {
recycleLayer.visible = true;
}
return queryForGeometries();
}
// Get all the geometries of the recycle layer
// the createQuery() method creates a query
// object that respects the definitionExpression
// of the layer
function queryForGeometries() {
console.log("Running query");
var rQuery = recycleLayer.createQuery();
return recycleLayer.queryFeatures(rQuery).then(function (response) {
rGeometries = response.features.map(function (feature) {
return feature.geometry;
});
return rGeometries;
});
}
filterButton.addEventListener("click", function () {
setDefinitionExpression();
});
});
... View more
11-03-2020
07:44 AM
|
0
|
2
|
4693
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a month ago | |
| 1 | 05-04-2026 08:45 AM | |
| 1 | 04-20-2026 01:20 PM | |
| 1 | 07-24-2025 01:27 PM | |
| 1 | 11-13-2025 08:22 AM |
| Online Status |
Offline
|
| Date Last Visited |
Friday
|