POST
|
You're checking if PT_STATIC and PT_RESIDU are empty, but not if PT_STATIC - PT_RESIDU = 0. If that's the case, x will have a value of Infinity
... View more
Tuesday
|
1
|
1
|
56
|
POST
|
Do you have a relationship set up between the FeatureSet and the related table? If so, you can use this syntax to get the related records var related = FeatureSetByRelationshipName($feature, "the relationship name"); If not, then you'll get the related records by filtering the table using the common field (relateField, in this example). var relTable = FeatureSetByName($map,'table', ['*'], false);
var attribute = $feature.relateField;
var related = Filter(relTable, "relaterField = @attribute"); From that, filter the related records for the ones that need maintenance. var records = Filter(related, "MaintenanceNeeded = 'True'");
if (Count(records) = 0) return "No maintenance needed";
var output = "Maintenance Needed: " + TextFormatting.NewLine;
for (var f in records) {
output += " " + f.MainenanceType + TextFormatting.NewLine;
}
return output;
... View more
a week ago
|
2
|
4
|
164
|
POST
|
Line 21 should be inside the for loop. for (var f in Hydrants) {
var f_CalcStaticPSI = Number(f['CalcStaticPSI'])
var f_MeasuredPSI = Number(f['MeasuredStaticPSI'])
var f_PSIDifference = Number(sum(f['CalcStaticPSI']- f['MeasuredStaticPSI']))
Push(out_dict['features'], {'attributes': {'CalculatedPSI':f_CalcStaticPSI,'MeasuredPSI': f_MeasuredPSI,'PSIDifference':f_PSIDifference}})
}
... View more
a week ago
|
0
|
1
|
82
|
POST
|
Esri has a Github page containing a number of different Arcade expressions. The Aggregate by Spatial Relationship example in the Dashboard section might be what you're looking for.
... View more
2 weeks ago
|
0
|
1
|
61
|
POST
|
I'm able to dissolve on a text field. Can you provide a little more information or screen shots on what's happening?
... View more
2 weeks ago
|
1
|
2
|
99
|
IDEA
|
@SSWoodwardI'm using ArcGIS Pro 3.2.2 and this is in the Configure Popup dialog. Click on the Arcade icon and edit icon on the element itself.
... View more
2 weeks ago
|
0
|
0
|
232
|
IDEA
|
I don't see this option available on the Arcade Element editor.
... View more
2 weeks ago
|
0
|
0
|
263
|
POST
|
Since your data is private, I can't test it. However, I was able to test using a public service and it worked as expected, returning two items in the table with the maximum value for each aggregationMethod var fs = FeatureSetByPortalItem(
Portal("https://www.arcgis.com"),
// portal item id
"7b1fb95ab77f40bf8aa09c8b59045449",
0, // layer id
["*"], // fields to include
false // include or exclude geometry
);
GroupBy(fs, 'aggregationMethod', {name: 'TOTPOP_CY', expression: 'TOTPOP_CY', statistic: "MAX"})
... View more
2 weeks ago
|
0
|
1
|
155
|
POST
|
When using variables, don't encase them in quotes. var maxvotes = GroupBy(fs, 'Precinct_Name', {name: 'Reg_voters', expression: 'Reg_Voters', statistic: "MAX"})
... View more
2 weeks ago
|
1
|
5
|
171
|
POST
|
You can use the Replace function to get rid of those strings, but you have to be careful. The Arcade interprets a backslash as part of an escape character, so you have to use it twice in Replace for it to work properly. This will replace either in a single line. var output = Replace(Replace($feature.Hyperlink,'\\\\mcenas01\\',''),'R:\\','');
... View more
2 weeks ago
|
1
|
0
|
92
|
POST
|
The first parameter of the GroupBy function is the FeatureSet that contains the data, which should be fs. The out_dict variable is just an empty FeatureSet you've created.
... View more
2 weeks ago
|
0
|
8
|
193
|
POST
|
You're using out_dict in the GroupBy, but you haven't assigned any records to it. Why aren't you using fs in the GroupBy?
... View more
2 weeks ago
|
0
|
10
|
204
|
IDEA
|
It would be even more helpful if when you hovered over the group icon, it would tell you what group it was. ArcGIS Assistant used to have this capability until the latest update removed it.
... View more
2 weeks ago
|
0
|
0
|
130
|
POST
|
You can do this by first creating a new Arcade expression that has the logic to add the title. Then in the Title configuration, click {}, then choose the expression. if (!IsEmpty($feature.Title) return `(${$feature.Title})` The pop's title would look like this: {name} {expression/expr0}. I'm not clear on how the 'Alternative Title' fits into this, though
... View more
2 weeks ago
|
1
|
0
|
170
|
IDEA
|
I agree, why was that functionality changed? It's annoying that you can't directly click on the title to open the item, but have to move the mouse to the View Detail button.
... View more
3 weeks ago
|
0
|
0
|
255
|
Title | Kudos | Posted |
---|---|---|
2 | Friday | |
1 | Friday | |
1 | Tuesday | |
1 | Tuesday | |
1 | 11-06-2023 09:43 AM |
Online Status |
Offline
|
Date Last Visited |
11 hours ago
|