|
POST
|
What are the possible values of the three fields? Could you go into more detail about what types of returns you'd expect besides "Y" and "Unknown"?
... View more
11-07-2024
06:08 AM
|
0
|
0
|
4592
|
|
POST
|
The second DomainName appears to be incorrect. You have double quote before L but no closing double quote, no value, an extra 'n/a', and an extra parenthesis. Should that be like this? if (DomainName($feature, "systemBasisOfClassification1", "A) Records Review", "n/a") == "A) Records Review" &&
DomainName($feature, "systeminstallationDateRange", "L) 1991-2000", "n/a") == "L) 1991-2000") {
return DomainName($feature, "serviceLineClassification", "Non-Lead", "n/a");
}
... View more
11-06-2024
09:34 AM
|
1
|
0
|
740
|
|
POST
|
One issue is the When function doesn't have a default value. When I remove that from my test, I get the "Unable to execute" message function returnColorS(value){
When(
value == "Minor", "#dedede",
value == "Significant", "#C1C1C1",
value == "Major", "#D18E8E",
value == "Severe", "#D17578",
"#f00000"
);
}
... View more
11-05-2024
08:24 AM
|
2
|
0
|
1394
|
|
POST
|
That's controlled by the Display Field when the service was published. I can't see a way to change that in AGOL, but you can change that in ArcGIS Pro. Open up the Layer Properties dialog and select the Display tab. For example, this is how one of my services was set up in ArcGIS Pro and this is what the Rest service shows When I edit it, all the points show the Habitat field
... View more
11-04-2024
08:48 AM
|
0
|
0
|
3477
|
|
POST
|
It's frustrating that Arcade won't give you all the symbology for the possibilities in your code without scanning all the records. I have to use dummy values at the beginning of the data to get the legend to build properly. That being said, you can simplify your code this way function status(input) {
Decode(input, 1, "Lead", 2, "Non-Lead", 3, "Galvanized", 0, "Unknown", "NA")
}
var LeftSide = status($feature.custstatus)
var RightSide = status($feature.utilstatus)
if (LeftSide == "NA" || RightSide == "NA") return "Other" //returns "Other" if either are "NA"
return `${LeftSide} | ${RightSide}`
... View more
11-01-2024
09:35 AM
|
2
|
1
|
2587
|
|
POST
|
The way you have the Filter written in this line, it's expecting the valve layer to have a SHEET field. var valvesInQuad = Filter(valves, "SHEET = @sheetID"); Do you have a field in the valve layer that contains that related sheetID values from the quad layer? Or do you need to use the Contains function to select the valves within the quad?
... View more
10-31-2024
05:57 AM
|
0
|
1
|
1918
|
|
POST
|
Sorry, I used the incorrect variable. This should work var containingQuad = First(Intersects(quad, $feature)); You don't need to get the Geometry of the feature, in addition.
... View more
10-30-2024
11:46 AM
|
0
|
3
|
1959
|
|
POST
|
You don't need the Filter function in line 9. var containingQuad = First(Intersects(valveGeometry, Geometry($feature))); In lines 12 and 17, you use the variable currentQuad. Shouldn't that be containingQuad? Consider moving the if statement in line 26 to line 21, since you can evaluate whether there are any values found before trying to get the max value.
... View more
10-30-2024
11:13 AM
|
0
|
5
|
1971
|
|
POST
|
Glad to help. One other thing. You should determine what happens when the var_end is equal to current_end, since that isn't covered and would result in "Needs Review"
... View more
10-28-2024
12:22 PM
|
0
|
0
|
1367
|
|
POST
|
The DomainName function requires the feature and the field, so you're making the variables Approved and Denied incorrectly. See if this works // Applicant's requested start date and end date
var var_begin = $feature.start_date;
var var_end = $feature.end_date;
// Today and 21 days from today because permits last 21 days
var current_date = Today();
var current_end = DateAdd(Today(), 21, "days");
// Identifying when Approved vs Denied
var approval = DomainName($feature, "approval_status");
// Approved and ending in the next 21 days means In Progress
// Approved and hasn't started yet means Future
// Approved and ended before today means Expired
// Denied means denied, regardless of date
// Pending, null, and anything else should fall under Needs Review
When(
approval == "Approved" && var_begin <= current_date && var_end <= current_end, "Approved, In Progress",
approval == "Approved" && var_end > current_end, "Approved, Future",
approval == "Approved" && var_end < current_date, "Approved, Expired",
approval == "Denied", "Denied",
"Needs Review"
);
... View more
10-28-2024
10:40 AM
|
0
|
2
|
1387
|
|
POST
|
When I use the OAuth login, I have to wrap the code that requires the authenticated data in the checkSignInStatus method. const portalUrl = 'my portal url';
const info = new OAuthInfo({
appId: "myAppId", //*** Your Client ID value goes here ***//
popup: false // inline redirects don't require any additional app configuration
});
identityManager.registerOAuthInfos([info]);
identityManager.getCredential(portalUrl);
identityManager.checkSignInStatus(portalUrl).then(function () {
layer = new FeatureLayer({
portalItem: {
id: "myPortalItem"
},
outFields: ["*"]
});
map = new Map({
basemap: 'oceans',
layers: [layer]
});
view = new MapView({
container: "viewDiv",
map: map,
center: [-153, 63],
zoom: 4,
popup: {
autoOpenEnabled: false
}
});
//etc.
});
... View more
10-28-2024
10:30 AM
|
0
|
0
|
1000
|
|
POST
|
I had a case when the popup with Arcade customization would show up in Map Viewer Classic but not Map Viewer. I added the layer to a map using the layer URL. It turned out to be a bug (BUG-000168557) caused by publishing the service with Time setting enabled. Stand-alone ArcGIS Server 11.1 map services published from layers using the 'Filter using time' option fail to display pop-ups in ArcGIS Online. The current workaround is Disable the time setting either before or during publishing. Alternatively, consume the layer as a service instead of using the layer URL.
... View more
10-25-2024
03:16 PM
|
0
|
1
|
876
|
|
POST
|
I believe what you're trying to do would be like this var fs = FeatureSetByPortalItem(
portal,
id,
0,
fields,
False
)
var combinedFeatures = [];
for (var f in fs) {
Push(
combinedFeatures,
{ attributes: { Variety: f["variety1"], Area: f["var1_perc"] } }
);
Push(
combinedFeatures,
{ attributes: { Variety: f["variety2"], Area: f["var2_perc"] } }
);
Push(
combinedFeatures,
{ attributes: { Variety: f["variety3"], Area: f["var3_perc"] } }
);
}
var combinedDict = {
fields: [
{ name: "Variety", type: "esriFieldTypeString" },
{ name: "Area", type: "esriFieldTypeInteger" }
],
geometryType: "",
features: combinedFeatures
};
var d = Dictionary(combinedDict);
Console(d);
return FeatureSet(d);
... View more
10-25-2024
10:44 AM
|
0
|
0
|
1080
|
|
POST
|
Are you seeing them like the one for RobertoRossi? I'm noticing others like this too
... View more
10-23-2024
07:08 AM
|
0
|
0
|
3801
|
| 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 |
a month ago
|