IDEA
|
"Will Esri leave these poor souls hanging by not migrating ALL such widgets to EB (which should have been done BEFORE EB was ever rolled out)?" Yes. I'm stunned that EB still has no edit/add related data as part of the edit widget, yet WAB does. But WAB is being deprecated, and edit/add related data isn't even on the roadmap for EB.
... View more
05-18-2023
01:17 PM
|
0
|
0
|
632
|
POST
|
It seems like Experience Builder shouldn't be released until it has the same functionality as WAB? What is the incentive to switch to EB if there's no functionality?
... View more
05-18-2023
12:41 PM
|
14
|
4
|
3500
|
POST
|
Has this functionality been included yet, or is Experience Builder yet another ESRI initiative that has gone thru no testing and is yet another application that is starting from scratch?
... View more
05-18-2023
12:36 PM
|
0
|
0
|
845
|
POST
|
And for future folks with this question, this is what worked for my case with actual FC and field name, performance is fine with 2k records. var vals = FeatureSetByName($datastore,"COR_HYDROPOWER_PROJECT_POINTS",['HYDRO_PROJECT_ID'],false)
var numarray = []
for (var n in vals){
var nn = Number(n.HYDRO_PROJECT_ID)
Push(numarray, nn)
}
var maxnum = Max(numarray)
var newnum = maxnum + 1
return newnum
... View more
05-18-2023
12:13 PM
|
0
|
0
|
407
|
POST
|
GitHub - AlexArcPy/registrant: Python package used for generating HTML reports about the contents of Esri geodatabases.
... View more
05-08-2023
10:49 AM
|
0
|
0
|
1022
|
POST
|
GitHub - AlexArcPy/registrant: Python package used for generating HTML reports about the contents of Esri geodatabases. provides the closest functionality, in fact, a little better IMHO.
... View more
05-08-2023
10:30 AM
|
1
|
0
|
872
|
IDEA
|
Saleforce, PowerBI all do this. ESRI Webmaps, WebAppBuilder, and Now Experience Builder have been out for how many years, and this basic functionality still doesn't exist?
... View more
04-27-2023
04:49 PM
|
0
|
0
|
1439
|
POST
|
I have Solved: Attribute Rule Expressions: calculate max value fr... - Esri Community successfully working in the fgdb environment. What I'm looking to do is replicate in a "new" web map viewer "Form" to autopopulate an unique ID field that IS NOT the objectID nor the GlobalID. Thing is, the data contains many existing records, with this ID ranging from 1-15000, with many values in between missing due to past deletions. What I want is to look at the max value in this field, and have (Arcade?) auto populate the next highest value when the user creates a new point, based on this form. But I don't see how this is possible as AGOL (still!) does not support GDB attribute rules and Create Database Sequence (Data Management)—ArcGIS Pro | Documentation
... View more
04-27-2023
07:48 AM
|
0
|
2
|
525
|
POST
|
That worked perfectly! Sadly, performance is....lacking. Eg. I have a line with 36 features that passed thru 3 states. The result (pop up) takes 2-3 minutes to execute, on a very fast computer and very fast internet. Is this just a hard limitation of Arcade that can't be worked around?
... View more
04-21-2023
03:11 PM
|
0
|
1
|
485
|
POST
|
In an AGOL webmap, I have an Attribute Expression (that I sourced from here😞 // get the states layer
var portal = Portal('https://arcgis.com')
var states = FeatureSetByPortalItem(
portal,
'a454cf97c4264cd2b77f27175e01d3ba',
3,
['ABBRV']
)
// intersect feature with States
var xs = Intersects(
$feature,
states
)
// create array of intersected state names
var c_array = []
for (var c in xs){
Push(c_array, c['ABBRV'])
}
// remove duplicates
var unique_states = Distinct(c_array)
// concatenate array, return string
return Concatenate(unique_states, ', ') That works as expected: user clicks on a line, pop-up returns a list of state(s) that the selected line intersects. Here's the problem: the line is multiple parts (features? Sections?). CHunked up by numerous attributes (state, county, district, etc....). So if the user clicks on a line segment, they get the state(s) that the segment intersects. But what I want is: Every single state the ENTIRE line intersects, based on the name of the line. So if the NAME attribute of the line they click on is "BIGFOOT", some sort of magical arcade thing that FIRST selects every single line segment (which could be dozens) with NAME = "BIGFOOT", then do the intersect and return every state intersected by every line segment where NAME = "BIGFOOT".
... View more
04-21-2023
01:27 PM
|
0
|
3
|
506
|
POST
|
I'm trying to build a list from a feature class that is a lot of polylines, something like this: Trail 1, State 1, District 1 Trail 1, State 1, District 1 Trail 1, State 1, District 2 Trail 2, State 2, District 3 Trail 2, State 2, District 4 Trail 3, State 3, District 5 Trail 3, State 4, District 6 Trail 3, State 5, District 7 Trail 3, State 6, District 8 Trail 3, State 7, District 9 What I want the list to show is: Trail 1, 1 State(s), 2 District(s) Trail 2, 1 State(s), 2 District(s) Trail 3, 5 State(s), 5 District(s) What I've got so far is: var fs = FeatureSetByPortalItem(Portal('https://arcgis.com/'), 'a454cf97c4264cd2b77f27175e01d3ba', 0, ['TRLNAME','STATE','CONG_DIST'], false);
return GroupBy(fs, ['TRLNAME'],
[{name: 'total_states', expression: 'STATE', statistic: 'COUNT' },
{name: 'total_districts', expression: 'CONG_DIST', statistic: 'Count' }]); Which gives me Which is giving me unique trails, but very clearly not the unique state, district for each trail. How do I narrow down the expression to return unique states,districts for each trail? Not a programmer.....
... View more
04-20-2023
09:24 AM
|
0
|
2
|
423
|
POST
|
I'm trying to build a dashboard list from a feature class that is a lot of polylines, something like this: Trail 1, State 1, District 1 Trail 1, State 1, District 1 Trail 1, State 1, District 2 Trail 2, State 2, District 3 Trail 2, State 2, District 4 Trail 3, State 3, District 5 Trail 3, State 4, District 6 Trail 3, State 5, District 7 Trail 3, State 6, District 8 Trail 3, State 7, District 9 What I want the list to show is: Trail 1, 1 State(s), 2 District(s) Trail 2, 1 State(s), 2 District(s) Trail 3, 5 State(s), 5 District(s) What I've got so far is: var fs = FeatureSetByPortalItem(Portal('https://arcgis.com/'), 'a454cf97c4264cd2b77f27175e01d3ba', 0, ['TRLNAME','STATE','CONG_DIST'], false);
return GroupBy(fs, ['TRLNAME'],
[{name: 'total_states', expression: 'STATE', statistic: 'COUNT' },
{name: 'total_districts', expression: 'CONG_DIST', statistic: 'Count' }]); Which gives me Which is giving me unique trails, but very clearly not the unique state, district for each trail. How do I narrow down the expression to return unique states,districts for each trail? Not a programmer.....
... View more
04-20-2023
09:22 AM
|
0
|
0
|
297
|
POST
|
Looking for a python-way to check the existence of the following as part of a QA script: If the correct default is assigned to a field; If the field is nullable If the field is required
... View more
03-14-2023
08:21 AM
|
0
|
2
|
393
|
POST
|
With the following I am evaluating: Does the field exist and correct length. Print message Does the field exist and incorrect length. Print message Does the field not exist. Create field. Print Message #Create required TRLNAME Field
try:
in_Field = "TRLNAME"
if len(arcpy.ListFields(in_Table,in_Field))>0 and len(in_Field) == 254:
arcpy.AddWarning(in_Field+" exists and is the correct length. Yay!")
elif len(arcpy.ListFields(in_Table,in_Field))>0 and len(in_Field) != 254:
arcpy.AddWarning(in_Field+" exists but is not the correct string length (254).")
else:
arcpy.AddField_management(in_Table, in_Field, "TEXT", "", "", 254, in_Field, "NON_NULLABLE", "REQUIRED", "")
arcpy.AddMessage ("Created the "+in_Field+" field.")
except arcpy.ExecuteError:
msgs = arcpy.GetMessages(2)
arcpy.AddError(msgs)
except:
tb = sys.exc_info()[2]
tbinfo = traceback.format_tb(tb)[0]
pymsg = "PYTHON ERRORS:\nTraceback info:\n" + tbinfo + "\nError Info:\n" + str(sys.exc_info()[1])
msgs = "ArcPy ERRORS:\n" + arcpy.GetMessages(2) + "\n"
arcpy.AddError(pymsg)
arcpy.AddError(msgs) If the field does not exist, it correctly creates it. However, if the field exists, regardless of if it's the correct length (254 or any other string length), it always defaults to the "elif" in the block and reports that the field is not the correct length. Feel like this is a simple syntax error but I've been at it for hours and not seeing it. Help?
... View more
03-13-2023
11:49 AM
|
0
|
4
|
628
|
Title | Kudos | Posted |
---|---|---|
1 | 08-02-2023 10:46 AM | |
1 | 07-27-2023 07:06 AM | |
1 | 05-08-2023 10:30 AM | |
14 | 05-18-2023 12:41 PM | |
4 | 05-18-2023 01:22 PM |
Online Status |
Offline
|
Date Last Visited |
2 weeks ago
|