POST
|
Which application are you going to use (Experience Builder, Dashboards, etc.)? Depending on how you plan on showing the maps/data; it might make sense to keep it to one map and filtering specific data. The issue with heatmaps is overlapping hotspots which would confuse your target audience. If you want to have separate years showing, then you would need to create 4 separate maps. The benefit of that is (if using either Dashboards or Experience Builder) is you can lock the zoom or map navigation to equate to all different maps. Essentially when the user pans/zooms in one map then the other maps will pan/zoom also. To set up your scaling, you would simply have one layer with a set reference scale and the other layer to display up to the set reference scale.
... View more
05-23-2024
11:59 AM
|
0
|
6
|
691
|
POST
|
Hi @Sara_Fatimah., Have you tried publishing two separate layers so that one only shows dynamically and the other as constant? If you try that method, then you can set the constant layers visibility to stop at a certain scale and the other dynamic layer to continue dynamically at a lower scale.
... View more
05-23-2024
11:11 AM
|
0
|
8
|
702
|
POST
|
Can you please post your code so that the community can help you troubleshoot it? Otherwise, it would be nearly impossible to help you with your issue.
... View more
05-23-2024
04:32 AM
|
0
|
0
|
202
|
POST
|
They are only available with the latest portal update whenever you upgrade your portal to the compatible version of the functions. Release notes | ArcGIS Arcade | ArcGIS Developers
... View more
05-23-2024
04:30 AM
|
0
|
0
|
312
|
POST
|
Hi, I am trying to figure out a way to set up a countdown that automatically refreshes after opening a dashboard? The code below works fine but it isn't synced with the layer refresh. I am curious if anyone knows a way to have the countdown refresh the same time the layer refreshes. var setmin = 4-(Minute(Now())%5)
var setsec = Text(60-second(Now()))
if(count(setsec)==1){setsec='0'+setsec}
var timer = Text(setmin)+':'+Text(setsec) I know you can turn on the last updated option on any of the widgets, but I would like to have a larger indicator showing that.
... View more
05-21-2024
10:29 AM
|
0
|
0
|
260
|
POST
|
Hi, I am trying to figure out a way to set up a countdown that automatically refreshes after opening a dashboard? The code below works fine but it isn't synced with the layer refresh. I am curious if anyone knows a way to have the countdown refresh the same time the layer refreshes. var setmin = 4-(Minute(Now())%5)
var setsec = Text(60-second(Now()))
if(count(setsec)==1){setsec='0'+setsec}
var timer = Text(setmin)+':'+Text(setsec) I know you can turn on the last updated option on any of the widgets, but I would like to have a larger indicator showing that.
... View more
05-21-2024
10:23 AM
|
0
|
0
|
229
|
POST
|
Hi @jamierodriguez, You can specify the distance from a selected feature by either clicking on the feature in the map (if you want to interactively specify the feature/record) or in the select feature by location dialogue box you can specify the feature and modify the search distance from another feature.
... View more
05-21-2024
09:48 AM
|
0
|
0
|
274
|
POST
|
Yes. It has to be registered with the enterprise sde geodatabase.
... View more
05-13-2024
06:23 AM
|
0
|
0
|
504
|
POST
|
You do not need to use the datetime.strptime() function since python will automatically convert a datetime python object to a sql datetime object when you specify the actual datefield. from datetime import datetime
Sample = datetime.now().isoformat(timespec='seconds')
print( Sample )
#printed result = '2024-05-13T08:42:27' .
... View more
05-13-2024
05:44 AM
|
0
|
0
|
244
|
POST
|
Which language is this? I want to say python, but it is hard to tell from the looks of it. If it is python, then you would need to adjust your dates to be equivalent to the following: from datetime import datetime
FromDate = <FromDateField>.isoformat(timespec='seconds')
ToDate = <ToDateField>.isoformat(timespec='seconds')
time = f"closingdate >= {FromDate} AND closingdate <= {ToDate}"
# Query the feature layer
query_result = tankers.query(where=f"trip_name = {'MCC'} AND {time}")
... View more
05-09-2024
10:05 AM
|
0
|
3
|
303
|
POST
|
It turns out that in order for attribute rules to identify any view(s) the view(s) need to be registered with the enterprise sde database.
... View more
05-09-2024
06:44 AM
|
0
|
2
|
571
|
POST
|
ArcGIS Pro - 3.2+ Enterprise - 10.9.1 Arcade Expression Version - 1.0.0+ var Asset = $feature.assetnum
var Location = $feature.location
var Check = $feature.CheckWorkOrder
var Query = 'location = @Location OR asset = @Asset'
var WO = OrderBy( FeatureSetByName($datastore, "table.MaxWOs"), 'reportdate DESC' )
if ( Boolean( Filter( WO , Query ) ) ){
WO = Filter( WO , Query )
Console( First( WO ) )
} The view is created using a linked server so I wouldn't be able to post the definition for it here.
... View more
05-06-2024
11:25 AM
|
0
|
0
|
617
|
POST
|
Hi, I am not sure if anyone else has experienced this issue, but I have an issue with one of my attribute rules where my arcade expression validates but cannot be saved. I am using 10.9.1 for the sde database. I just wanted to know if this is a sde version issue or a general issue. I am still exploring other means to see if I can circumvent the issue or find another potential solution around it.
... View more
05-06-2024
10:33 AM
|
0
|
6
|
638
|
POST
|
Hi @SouthCoastGIS, You can use: import arcpy
from arcpy.da import Editor as Editing, UpdateCursor as Updating, InsertCursor as Inserting, SearchCursor as Searching
##with arcpy.da.Editor( Workspace/database ) as edit:
## with ( Searching( ), Inserting( ) , Updating( ) ) as cursor:
## for row in cursor:
## logic handeling
## cursor.updateRow/cursor.insertRow( row )
There is plenty of documentation on editor if you research into it.
... View more
04-30-2024
04:09 AM
|
0
|
0
|
401
|
POST
|
Hi @asmith_tssw., Depending on the method, either python or arcade, you can easily achieve this. You can do something like this: Python: Code Expression:
!Concatenation( FieldA , FieldB , FieldC, etc... )!
Code Block:
def Concatenation( FieldA , FieldB , FieldC, etc... ):
Values = [FieldA , FieldB , FieldC, etc...]
ConcatNonNullValues = ''.join([ x for x in Values if x is not None ])
return ConcatNonNullValues Arcade: var ValueList = [ $feature.FieldA , $feature.FieldB, $feature.FieldC, etc... ]
var ConcatValue = ''
for ( var index in ValueList ){
ListValue = ValueList[ index ]
if ( IsEmpty( ListValue ) == False ){ ConcatValue + ListValue }
}
return ConcatValue You can use several arcade functions to make the code above easier, but it depends on how you want to go about it. Feel free to play around with the code above. It should work for what you need or at least point you in the right direction.
... View more
04-24-2024
10:23 AM
|
1
|
0
|
741
|
Title | Kudos | Posted |
---|---|---|
2 | 09-13-2024 08:30 AM | |
1 | 09-13-2024 03:41 PM | |
2 | 08-12-2024 06:46 AM | |
1 | 08-06-2024 01:13 PM | |
1 | 08-06-2024 01:06 PM |