|
POST
|
My addin shows the generic Esri icon in the File Manager and the utility. Those are tied to the ESRI AddIn File type, just like all Word files use the same icon.
... View more
04-05-2024
02:25 PM
|
1
|
0
|
3089
|
|
IDEA
|
Until that gets added to the List, you can use the methodology in @JenniferAcunto's blog "Dashboards That Pop: Unique Lists" that uses a table masquerading as a list.
... View more
04-05-2024
11:12 AM
|
0
|
0
|
1665
|
|
POST
|
Do you have that image in your Images directory? This is how my project is set up
... View more
04-05-2024
11:05 AM
|
0
|
1
|
3182
|
|
POST
|
It uses the relationship name that's set up in ArcGIS Pro
... View more
04-04-2024
11:39 AM
|
0
|
0
|
5442
|
|
POST
|
You have the syntax incorrect for the Distinct function. You have to include the FeatureSet. And you should also include the Location field, since you might have two different locations with the same values. var fs = FeatureSetByPortalItem(
Portal("https://www.arcgis.com/"),
"384158f2ebe34f8ba8b0b39dfe5f5af5",
0,
['Location', 'target_goal'],
false
);
return Distinct(fs, ['Location', 'target_goal'])
... View more
04-04-2024
08:31 AM
|
1
|
4
|
2520
|
|
POST
|
You would set the MapView's popupEnabled property to false.
... View more
04-03-2024
10:07 AM
|
1
|
1
|
2144
|
|
POST
|
If this is your full code, then you don't need to declare the variables breed_status and originalStatus. The code in my reply utilizes an implicit return, since it's a single-line expression.
... View more
04-03-2024
09:21 AM
|
0
|
0
|
1869
|
|
POST
|
You're not accounting for leap days. Four years has 1461 days, 12 years has 4383 days, and 40 years has 14610 days.
... View more
04-03-2024
06:18 AM
|
1
|
1
|
1542
|
|
POST
|
Arcade uses the Decode function instead of switch/case. Decode($feature.Doing,
'Singing', 'Possible Breeder',
'Pair in suitable nesting habitat', 'Probable Breeder',
'Observed in suitable nesting habitats', 'Probable Breeder',
//rest of cases
'Unknown'
);
... View more
04-03-2024
05:55 AM
|
1
|
0
|
1890
|
|
POST
|
This should give you the correct output var arrField = Split($feature['Page:Grid'],",");
var dict = {}
for (var i in arrField) {
var input = Split(arrField[i], ": ");
var key = input[0];
if (HasKey(dict, key)) {
var value = Concatenate([dict[key], input[1]], ", ")
dict[key] = value;
} else {
dict[key] = input[1]
}
}
var output = [];
for (var k in dict) {
Push(output, Concatenate([k, dict[k]], ': '))
}
return Concatenate(output, ' | ') For example, this would return "20: E5 | 21: A5 | 22: A1 | 26: D1, E1" for row 8
... View more
03-27-2024
12:04 PM
|
0
|
1
|
1398
|
|
IDEA
|
There are two sample dataset that are accessible from the Suggestions tab. "Feature from a portal item" show a single feature from a dataset about population. "FeatureSet from a portal item" shows many features from another dataset about buildings.
... View more
03-26-2024
06:10 AM
|
0
|
0
|
1419
|
|
POST
|
The other way to do that is like this, returning null if the PROG_BEGIN is null. It also uses template literals var status = DomainName($feature, 'CURR_PHASE')
console($feature.CURR_PHASE)
if ($feature.PROJ_BEGIN == null) return;
var phrase = When (status == 'Construction', `Project began in the ${$feature.PROJ_BEGIN} of ${$feature.BEGIN_YEAR} and is anticipated to be completed in the ${$feature.PROJ_END} of ${$feature.END_YEAR}`,
status == 'Design', `Project is anticipated to begin in the ${$feature.PROJ_BEGIN} of ${$feature.BEGIN_YEAR} and expected to be completed in the ${$feature.PROJ_END} of ${$feature.END_YEAR}`,
status == 'Completed', `Project began in the ${$feature.PROJ_BEGIN} of ${$feature.BEGIN_YEAR} and was completed in the ${$feature.PROJ_END} of ${$feature.END_YEAR}`,
status == 'Closeout', `Project began in the ${$feature.PROJ_BEGIN} of ${$feature.BEGIN_YEAR} and was completed in the "${$feature.PROJ_END} of ${$feature.END_YEAR}`,
status == 'Study', "No projected start date at this time",
"N/A")
return phrase;
... View more
03-21-2024
06:00 AM
|
1
|
0
|
1857
|
|
POST
|
One way to do that is to get the Schema of your FeatureSet, which gets you a list of all the fields. You can loop through the FeatureSet and check the value for each field to see if it has a null. If you have a smaller list of fields, you can use that instead. If one of the values is null, the counter increases by one, the inner loop breaks, and the outer loop goes to the next record. This is the data expression for the indicator var incompleteRows = 0;
var fs = FeatureSetByPortalItem(
Portal("your portal"),
// portal item id
"your item",
0, // layer id
);
//use this if you have specific fields to check
Expects(fs, 'field1', 'field2', 'field3')
var fields = ['field1', 'field2', 'field3']
for (var feat in fs) {
for (var field in fields) {
if (IsEmpty(feat[fields[field]])) {
incompleteRows++;
break;
}
}
}
//use this if you want to check all fields
Expects(fs, '*')
var theSchema = Schema(fs)
for (var feat in fs) {
for (var field in theSchema.fields) {
if (IsEmpty(feat[theSchema.fields[field].name])) {
incompleteRows++;
break;
}
}
}
//return the FeatureSet for the indicator
var Dict = {
'fields': [
{'name': 'IncompleteRows','type': 'esriFieldTypeInteger'}],
'geometryType': '',
'features': [{
'attributes': {
'IncompleteRows': incompleteRows
}
}]};
return FeatureSet(Dict);
... View more
03-20-2024
11:30 AM
|
0
|
0
|
2388
|
|
IDEA
|
@Laura_BI'm not seeing the group information when I hover the mouse over the icon
... View more
03-19-2024
07:17 AM
|
0
|
0
|
1612
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-04-2025 06:39 AM | |
| 1 | 05-01-2026 08:26 AM | |
| 1 | 04-10-2026 12:01 PM | |
| 1 | 04-13-2026 09:11 AM | |
| 1 | 10-11-2023 06:18 AM |
| Online Status |
Offline
|
| Date Last Visited |
12 hours ago
|