POST
|
Grouping by date in a chart won't give you nice categories like that, so you'd need some other way to get the categories. A Data Expression could do it, but why not just have a couple of Indicators? You can use the widget's built-in filtering to set a specific "before April 1st" date to get your "to be inspected" count, and filter for "on or after April 1" to get your "completed" count.
... View more
2 weeks ago
|
0
|
0
|
94
|
POST
|
The phrase "at least one" sounds like the function Any. Put your conditions in an array, then use Any to return a true/false value if anything comes back. Any([
DomainName($feature,"Field1") != "Value1",
DomainName($feature,"Field1") != "Value2",
DomainName($feature,"Field1") != "Value3" && DomainName($feature,"Field2") != "Value1"
])
... View more
2 weeks ago
|
3
|
6
|
143
|
POST
|
Oof. It's been a minute since I worked with layouts through ArcPy. Creating a complex map series, or anything with multiple pages in it, can be an absolute pain in the neck. Personally? I just use QGIS for those kinds of things. I still don't really know the arcpy.mp module well enough to give you good guidance here, other than just avoid it unless you absolutely have to use it.
... View more
2 weeks ago
|
0
|
0
|
235
|
BLOG
|
If you want your icon centered in a table column, or you want multiple colors, etc., you can actually just pipe in raw SVG into the displayText.
... View more
3 weeks ago
|
0
|
0
|
132
|
POST
|
Can you place a filter in the chart's settings to exclude rows with 0s in those fields?
... View more
3 weeks ago
|
0
|
0
|
116
|
IDEA
|
Pretty hard to do in a list, but the table widget implements row striping and a "row index" global. Would be nice if there were something like "list index" that could be used similarly.
... View more
3 weeks ago
|
0
|
0
|
211
|
POST
|
I think Arcade is the route to take on this. I don't think we can make it dynamic, if that matters. Arcade has a function built in for standard deviation, but requires your values to be in an array, not a FeatureSet. To make things easier on your dashboard, we can calculate all 4 things in one go. var fs = FeatureSetByPortalItem( Portal('your portal URL'), 'itemid of layer', 0, // layer index ['fields', 'you', 'need'], false ) // value array var numbers = [] for (var f in fs) { Push(numbers, f['field_you_are_calculating_stdev_for']) } // get standard deviation var sdev = Stdev(numbers) // mean var mean = Average(numbers) // output dict for indicators var out_dict = { fields: [ {name: 'stat', type: 'esriFieldTypeString'}, {name: 'value', type: 'esriFieldTypeDouble'} ], geometryType: '', features: [ {attributes: {stat: 'pos_one_stdev', value: mean + sdev}}, {attributes: {stat: 'pos_two_stdev', value: mean + (sdev * 2)}}, {attributes: {stat: 'neg_one_stdev', value: mean - sdev}}, {attributes: {stat: 'neg_two_stdev', value: mean - (sdev * 2)}} ] } return FeatureSet(Text(out_dict)) Once you've got that, you'll end up with a four-row FeatureSet with your values. Just set those indicators to Feature and filter each so that the relevant statistic is shown. Apologies for the lack of formatting in the post. The site keeps insisting that there is invalid HTML in my post.
... View more
3 weeks ago
|
0
|
1
|
121
|
POST
|
You'll want to use an Arcade popup element for this, where you can include HTML. Also, when you're series of if/else/then statements are nice and simple like this, you can replace them with a When statement. "When(condition1, response1, ... conditionN, responseN, fallback_response)" However, when your conditions all use the same field, you can also just replace it with Decode. "Decode(field, value1, response1... valueN, responseN, fallback_response)" var maintainer = Decode(
$feature.MAINTENANCE,
'CITY', '<a href="link to city URL">The City of Annapolis</a>',
'STATE', '<a href="link to state URL">State Highway Administration</a>',
'PRIVATE', 'A Private Entity', // no link on this one!
'NAVAL ACADEMY', '<a href="link to academy URL">United States Naval Academy</a>',
'COUNTY', '<a href="link to county URL">Anne Arundel County</a>',
'FUTURE (CITY)', 'Private but future City',
'UNKNOWN'
)
return {
type: 'text',
text: maintainer
}
... View more
3 weeks ago
|
1
|
1
|
79
|
POST
|
Yeah, Esri's vector tiles aren't really made with this sort of thing in mind. You can absolutely get popups off of vector tiles, but only if you're willing to make your map from scratch. Here's an example in OpenLayers: https://openlayers.org/en/latest/examples/vector-tile-info.html
... View more
3 weeks ago
|
0
|
0
|
89
|
IDEA
|
Closest I've ever gotten was using Union in a loop, but it performs terribly with large numbers of features.
... View more
3 weeks ago
|
0
|
0
|
96
|
POST
|
Survey123 has the option to cache answers for future forms. For each question, the web designer provides an option to cache the answer. In the web app, after submitting a survey record, the answer to the question will be cached in the browser and preloaded into the next submission made for this survey on that device. Caching an answer can be set for all question types except Audio, Image, File upload, and Signature. There should also be a way to select an item from the app's Sent folder and copy it to a new survey, where you'd only need to adjust the point.
... View more
3 weeks ago
|
1
|
0
|
116
|
POST
|
Personally, I get an extract from GeoFabrik (https://download.geofabrik.de/) and use osm2pgsql to get it into a PostGIS database, which I can then connect to directly in Pro and use as needed. GeoFabrik updates their extracts every day, and you can easily schedule the osm2pgsql process to run on 24 hour intervals. There are more advanced ways of continually pulling in and applying changes from OSM to keep your data to within a few minutes of the main dataset. But for us, < 24 hours is good enough, so it hasn't been worth digging into. I don't do any routing at my work, so I don't have any guidance on Network Analyst, sorry.
... View more
3 weeks ago
|
2
|
1
|
192
|
POST
|
Ah yeah, Pro doesn't like the $map object. That's for web maps only, I guess. No updates to the software, but what about the data? I can't imagine the expression working at all with shapefiles in a folder. Were they downloaded from a web service, or copied from a database?
... View more
3 weeks ago
|
0
|
1
|
194
|
POST
|
So, referencing the $datastore assumes the other layer is coming from the same data source. Are these layers published in the same service, or if offline, coming from the same database? Try referencing $map instead of the datastore.
... View more
3 weeks ago
|
0
|
3
|
197
|
Title | Kudos | Posted |
---|---|---|
1 | Thursday | |
1 | yesterday | |
1 | yesterday | |
1 | yesterday | |
1 | Thursday |
Online Status |
Offline
|
Date Last Visited |
yesterday
|