|
POST
|
True if you are just returning a result, but AR allows you to return a dictionary of keywords and update multiple attributes at once. Not real intuitive in my code as I add items to the attributes variable and return that as the 'attributes': keyword in the result dictionary. Take a look here, an easier example to see how to return values for multiple attributes from on rule. R_
... View more
05-29-2024
02:55 PM
|
1
|
4
|
2410
|
|
POST
|
If you don't already have it in your styles, you can save one of the symbols so it is in your style, then change symbology from Unique Values to single symbol and select the saved symbol. R_
... View more
05-28-2024
03:30 PM
|
2
|
2
|
3947
|
|
POST
|
It appears as if you can set that in the Symbology tab (which will also change it in the legend): R_
... View more
05-28-2024
01:41 PM
|
0
|
1
|
3010
|
|
POST
|
Have you ever seen the dashboard report issues while they are happening? Every time I have checked when they are 'down', it shows green across the board. Then, 10 or so days later, you may see the issues (in the past now) that were happening at the time. From what I can tell, the 'Current Status' page seems to act like a screenshot 🙂 R_
... View more
05-28-2024
12:05 PM
|
0
|
0
|
4538
|
|
POST
|
It appears as if Getuser has some issues with Field maps app and could be your issue. Take a look here and see if this helps. More here. R_
... View more
05-28-2024
11:56 AM
|
0
|
3
|
2225
|
|
POST
|
I don't currently have a test dataset that I can change the schema of but tested this with edits in Field Maps app. If I re-create the offline area (that was previously downloaded to iOS device), then on the iOS device, I choose sync, it will sync the local edits back to the HFS, then re-download the newly created Offline area with all updates/edits. I tested this by re-creating before syncing edits from the field device as well as after. Neither lost any data. As always, can be risky and normally test with a copy of the map/data, but to be safe, would also coordinate a sync with all users first just to be safe. R_
... View more
05-23-2024
08:36 AM
|
0
|
0
|
2362
|
|
POST
|
It's possible that the filter is saved in the layer. Item details, Visualization tab, check for filters on the layers, then if you remove them, make sure to save the changes. R_
... View more
05-22-2024
03:00 PM
|
1
|
0
|
2921
|
|
POST
|
Did you just update the offline areas in FM Designer, or did you re-create them? See here for similar, though not sure you update method is schema change or not. R_
... View more
05-22-2024
09:31 AM
|
0
|
4
|
2428
|
|
POST
|
@avonmoos With the help of @MikeMillerGIS I was able to come up with something along these lines. Set up for my Storm data, the 'endpoints' of a gravity main can be a Manhole, Inlet, Outlet, Cleanout, Discharge Point, Network Structure, or Fitting all of which are in their own featureclass. Though, have not tested it extensively, should be a good starting point as it is working as expected. function get_fs(cls_name){
return Decode(cls_name,
"sdInlet",FeatureSetByName($datastore, "sdInlet", fields, true),
"sdOutlet",FeatureSetByName($datastore, "sdOutlet", fields, true),
"sdCleanOut",FeatureSetByName($datastore, "sdCleanOut", fields, true),
"sdManhole",FeatureSetByName($datastore, "sdManhole", fields, true),
"sdDischargePoint",FeatureSetByName($datastore, "sdDischargePoint", fields, true),
"sdFitting",FeatureSetByName($datastore, "sdFitting", fields, true),
"sdNetworkStructure",FeatureSetByName($datastore, "sdNetworkStructure", fields, true),
null)
}
function IsEmptyButBetter(data) {
if (IsEmpty(data)) return true;
for (var x in data) return false;
return true;
}
var fields = ['FacilityID']
var fclist = ['sdManhole','sdInlet','sdOutlet','sdCleanOut', 'sdFitting', 'sdDischargePoint', 'sdNetworkStructure'];
var line_shape = Geometry($feature)
var spRef = line_shape['spatialReference']
// Get the origin and end points of the line
var orig_x = line_shape['paths'][0][0].x
var orig_y = line_shape['paths'][0][0].y
var orig_point = Point({x: orig_x, y: orig_y, spatialReference: spRef})
var end_x = line_shape['paths'][-1][-1].x
var end_y = line_shape['paths'][-1][-1].y
var end_point = Point({x: end_x, y: end_y, spatialReference: spRef})
var attributes = {}
var umh = 'NA'
var dmh = 'NA'
for (var p in fclist){
var point_fs = get_fs(fclist[p]);
//find point intersecting origin
var origIntx = first(Intersects(orig_point, point_fs));
//find point intersecting end
var endIntx = first(Intersects(end_point, point_fs));
if (!IsEmptyButBetter(origIntx)) {
attributes['UpMH'] = origIntx['FacilityID']
var umh = attributes['UpMH']
}
if (!IsEmptyButBetter(endIntx)) {
attributes['DownMH'] = endIntx['FacilityID']
var dmh = attributes['DownMH']
}
//add FacilityID to attribute results
if (!IsEmptyButBetter(attributes)) {
attributes['FacilityID'] = umh + "-" + dmh
}
var result = {}
if (!IsEmptyButBetter(attributes)) {
result['result'] = {
'attributes': attributes
}
}
}
return result This will find the FacilityID from the upstream and downstream points if exist, populate the UpMH and DownMH fields in the gravity main feature class as well as update the gravity main FacilityID to UpMH-DownMH regardless of which point FC it is in. R_
... View more
05-21-2024
10:19 AM
|
2
|
8
|
3958
|
|
POST
|
Thanks @MikeMillerGIS , exactly what I was looking for. Also, great use for the Decode function. R_
... View more
05-21-2024
09:49 AM
|
0
|
0
|
3527
|
|
POST
|
Is this still the case? I wonder as in the AR editor in Pro: var pfc = 'sdManhole'
var point_fs = FeatureSetByName($datastore, pfc , fields, true); Is working perfectly, returning the values it should, BUT, will not let me save the attribute rule. So, if FeatureSetByName needs a text literal (not template literal), then how is the above working as expected, just not able to save? Any other ideas how to iterate through a list of layers like so? var fclist = ['sdInlet','sdOutlet','sdCleanOut',"sdManhole"]
for (var p in fclist)
var point_fs = FeatureSetByName($datastore, `${fclist[p]}`, fields, true);
//Do stuff with it Thanks again, R_ @Jake_S
... View more
05-20-2024
04:47 PM
|
0
|
0
|
3557
|
|
POST
|
If you un-check the "Include No value option" in Field Maps designer, that will just keep "No value" from being one of the available options in the pick list (if checked, "No value" will show at the top of the pick list and let you choose it when you select that field). The "No Value" in your image just says that there is no value assigned to that field yet (no default value set for it). However, if you click on that field, "No value" should not be one of the options to choose from unless you check the box for that field. As far as the "Compliant" field being populated with "No", that normally means that "No" is the default value, otherwise, it should say "No value" like above. Just clear the default value for that field in the form should do it. R_
... View more
05-20-2024
04:13 PM
|
0
|
0
|
5512
|
|
POST
|
Never tried this, so just did a test. I shared a web style with 10 point symbols in it, then used one of them to update a layer in a web map using one of the new styles. Then, in Pro, I copy/pasted (added) a few new symbols in the style and re-shared as web style using same name. It warned me that it will be overwritten, I said OK. Then, in the same web map, I set the symbology again: and the new symbols added to the style are there, but, did not 'break' the symbology I had already used. So, yes, it appears as if you can easily overwrite an existing web style. R_
... View more
05-20-2024
01:57 PM
|
0
|
1
|
4026
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-14-2026 04:00 PM | |
| 1 | 09-14-2022 07:53 AM | |
| 1 | 09-14-2022 08:23 AM | |
| 1 | 05-21-2026 08:53 AM | |
| 1 | 05-14-2026 04:28 PM |
| Online Status |
Offline
|
| Date Last Visited |
Thursday
|