|
POST
|
Simple enough. I am guessing that the parcel intersects multiple zoning layers and rather than getting the zone with the greatest area of intersect it returns the first record of whichever zone intersects. Here is one option that will work for your given situation. var other_layer = FeatureSetByName($map, "Zoning Layer", ["Zoning"])
var IntF = Intersects($Feature, other_layer)
var MI = Max( IntF, 'shapeareafield' )
var F = First(Filter(IntF,'shapeareafield = @M' ))
iif( TypeOf( F == 'Feature', F["Zoning"], $feature.Zoning )
/*
Option 2
var other_layer = FeatureSetByName($map, "Zoning Layer", ["Zoning"])
var F = First(Intersects(Centroid($Feature), other_layer))
iif( TypeOf( F == 'Feature', F["Zoning"], $feature.Zoning )
*/ Another would be to use the 'Centroid' function to turn your polygon to a point and get the intersecting value that way.
... View more
07-22-2025
06:56 AM
|
1
|
2
|
1091
|
|
POST
|
That makes it a lot easier to understand and work with. So there are a couple of ways to go about this but it is a bit in depth: Using Cards - This method is a bit more complicated but it is easier to manipulate. Add the column from the layout section. This will automatically organize your data into equally distributed and scrollable format. You can modify the cards to include any kind of button within the card or if you simply want buttons within the cards that can be done as well. *Note: You can duplicate each card by clicking on the duplicate in the upper left hand corner of the card. Add the section widget to the layout and add whatever maps/widgets/etc. you need to that section. *Sections are where views are situated if you were not aware of that. Clicking on the + adds additional views or the duplicate button to duplicate the same section once you have it built out. In your situation you can add cards within each view and have a query widget within each card. Ideally you want to build the initial layout of any section/card/etc. before duplicating. Once each view is created, adjust each view to whatever specifications. Adjust the different query widgets, map layers, etc. Set each card to navigate to the different views using and selecting the desired view. It should look and behave similar to the image below. Using Lists - List are automatically updated with information from a map which is easier but also more confined. Similar to the previous setup, rather than having a query of layers you can have a list showing information for the preset views. Within each view, replace the query widget with the list widget and connect to the view data. Update the text within each list item to connect to the view data do display different information. Each list item is set to automatically sort and filter data in the map. The only downside is each list item is constrained to one dataset at a time unlike the query widget. Using Buttons Add the column layout followed by the button widget to the layout Add the section next to the column pane in the window Add the map next to the section pane in the window Within each section add another column layout followed by the query widget, duplicating as needed. Configure each query to specific layers. These should get you some idea and perhaps close to your desired result but play around with it and see which one works best for both you and your end users. Ideally the easier to navigate the better.
... View more
07-22-2025
06:42 AM
|
0
|
1
|
1710
|
|
POST
|
Does this Spotfire Project have the ability to read APIs or is it strictly upload a dataset. Most people don't realize that feature services are technically called rest APIs which can be shared to different applications that, if they can be natively read, would basically work in that manner. Another thing is have you thought about creating a data view that has export capabilities so that she can download it whenever she needs to rather than running something constant. If you enable the feature service to allow others to export and then create a view of the data, then she can export it whenever needed. It can also be set to have limited sharing capabilities also.
... View more
07-21-2025
03:43 PM
|
0
|
0
|
1001
|
|
POST
|
Hi @rsnider43, So the issue with your code is that you are trying to access a featureset, not a feature. Just modify the code sto the following below. var fibercable = FeaturesetbyName($datastore, 'attributeruletest.sde.fibercable');
var ints = Intersects(fibercable, Geometry($feature));
iif(Count(ints) > 0, First(ints)['placement'], false);
// Option 2
var fibercable = FeaturesetbyName($datastore, 'attributeruletest.sde.fibercable')
var ints = First(Intersects(fibercable, Geometry($feature)))
iif(TypeOf(ints) == 'Feature', ints['placement'], false) When you use intersect function it returns a 'FeatureSet' which is multiple records whereas the 'First' function returns a single record, or 'Feature'.
... View more
07-21-2025
11:44 AM
|
0
|
0
|
711
|
|
POST
|
The options I indicated all accomplish the same thing. I gave several examples because some people don't realize how programming works in general and don't really understand that there are multiple avenues that can be implemented to arrive at the same result. It is all a matter of preference and readability at that point.
... View more
07-21-2025
09:42 AM
|
0
|
2
|
1656
|
|
POST
|
The options I indicated all accomplish the same thing. I gave several examples because some people don't realize how programming works in general and don't really understand that there are multiple avenues that can be implemented to arrive at the same result. It is all a matter of preference and readability at that point. Edits made in EXB are tied to whatever attribute rule/calculation are set. If you are using the survey function in EXB then that is tied to the survey, otherwise if you are using an attribute rule on a feature class/table then it will automatically execute whenever the edit conditions are met. If calculations on an edit do not exist in EXB then you do have the option to create an idea for the community but please note that because these edit capabilities exist elsewhere it may not be possible.
... View more
07-21-2025
09:37 AM
|
0
|
0
|
1656
|
|
POST
|
Hi @SimonCrutchley, Please let me know if the below description of the result you are trying to achieve is correct. You want a button that, when clicked, will give some information regarding a report You only want that button to be visible depending on where the end user navigates rather than having links in a specified popup. The end user uses a map to navigate to the different historical locations and has the ability to click anywhere within a map. I am not sure if I may have asked for all possible capabilities that you have or if there are additional capabilities. If the answer to the above questions is the direction you are trying to get to then the view/page option/cards might be your best bet. I forgot to mention that the cards can be used to link to different records within the data so long as you set them to connect to the data.
... View more
07-21-2025
09:07 AM
|
0
|
3
|
1751
|
|
POST
|
Yes. That would help a lot in terms of troubleshooting any issues and the end result you are trying to reach.
... View more
07-21-2025
08:11 AM
|
0
|
0
|
1758
|
|
POST
|
Sure thing. Here is a really basic rule that should give you some idea as to how that workflow would look like. /*
There are multiple ways to write the same kind of arcade code
but here are a few examples that ultimately return the same result
*/
/*
defintiions:
'<InsertCriteriaFieldname>': is the field name where you only that specific field determines the change
'SomeValue': is the value that the criteria field is set to trigger the change
'<InsertIncrementingFieldname>': the id field that has the incrementing id added
*/
// This gets the max value of the entire set of records in a featureclass/table
var M = Max( $featureset, '<InsertIncrementingFieldname>' )
// Option 1
var V = $feature.'<InsertIncrementingFieldname>'
IIF( $feature.'<InsertCriteriaFieldname>' == 'SomeValue', M+1, V )
// Option 2
IIF( $feature.'<InsertCriteriaFieldname>' == 'SomeValue', M+1, $feature.'<InsertIncrementingFieldname>' )
// Option 3
if( $feature.'<InsertCriteriaFieldname>' == 'SomeValue' ){ return M+1 }
else{ return } Something else that I just remembered is that Survey123 surveys can also be added, which if you did not know, also uses the arcade functionality. This is similar to attribute rules with the only difference being that it can work on both hosted services and feature services. If you are primarily using a hosted service then this might be the best workflow, otherwise a feature service with attribute rules is better suited. * Note: I have not played around too much with Survey123, but I have a lot of experience with arcade so this should hopefully get you in the right direction. Another helpful resource is the arcade playground and the arcade resources.
... View more
07-21-2025
07:28 AM
|
0
|
5
|
1667
|
|
POST
|
Hi @SimonCrutchley, Have you tried setting the button to navigate to a new page or view with preloaded content. Views are basically navigable windows within a frame and therefore will automatically load whatever information is in that view. View navigation. The pages are another method but if it is something that is fairly small then a view would make the most sense. If you need more details on how to set that up I can go into further detail.
... View more
07-21-2025
07:10 AM
|
0
|
2
|
1792
|
|
POST
|
Also, could you please explain in further detail what exactly it is you are trying to accomplish. A lot of times people ask questions regarding a specific workflow but, when they go into further detail, they actually find that there is another route that can be taken which would get them closer to their desired result. What I mean is if you are trying to, lets say update a table or several tables whenever an edit is made, there are workflows that use the arcade language that will automatically update those tables whenever an edit is made. If you are trying to run a script to update a report of sorts or send some kind of notification, then the python script or using Power Automate would make the most sense in that case.
... View more
07-21-2025
07:05 AM
|
1
|
4
|
2074
|
|
POST
|
HI @LisaCasey, So there isn't a button that can do this but there is a workflow that can be created using the arcgis arcade and either a calculation in Field Maps or Survey123, or creating an attribute rule in an sde feature class. We currently are using a similar capability to allow our field personnel to make changes to selected feature. Depending on which feature is selected and which attribute criteria is met; will a new id be generated for that feature. I can provide you a small arcade example if need be. Ideally an attribute rule would be the best fit given the scenario that your trying to accomplish.
... View more
07-19-2025
07:50 PM
|
0
|
7
|
1692
|
|
POST
|
Like the others have said, there isn't a way to automatically trigger a python script whenever certain edit criteria is met. However, with the release of power automate for arcgis there could be potential for some kind of automated trigger event to execute the script. I would need to dig in deeper to find if there is such a thing.
... View more
07-19-2025
07:45 AM
|
1
|
0
|
2115
|
|
POST
|
Hi @clt_cabq, If you're are having difficulties feel free to let me know and I'll write the code that will work, or at least get you close, to what you're trying to accomplish.
... View more
07-15-2025
07:10 PM
|
0
|
0
|
1515
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-07-2026 01:36 PM | |
| 1 | 02-10-2026 06:09 AM | |
| 1 | 03-04-2026 01:08 PM | |
| 1 | 02-24-2026 12:59 PM | |
| 3 | 03-03-2026 10:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
Monday
|