POST
|
Hey Xander, I am also having an issue in ArcGIS Pro with the dictionary type when saving this attribute rule expression that deletes the corresponding Tag ID in the master tag table: var aTable = $feature["AGLDESCRIPTION"]; var bTable = FeatureSetByName($datastore,"Tags"); var relate = "name = '" + $feature.AGLDESCRIPTION + "'"; var match = Filter(bTable, relate); var cnt = Count(match); if (count(match) == 0) return $feature.AGLDESCRIPTION; var matchfeature = first(match) return { //we want to just return the value of field `AGLDESCRIPTION` no change require "result": $feature.AGLDESCRIPTION, //this keyword indicates an edit that need to happen, its an array since we can make many edits "edit": [ { //the other class we want to edit "className" : "Tags", //the type of edit, in this case we want to delete so we say `deletes`, its an array since we can make many deletes "deletes" : [ { //what feature we need to delete? "globalID" : bTable.GlobalID } ] } ] }
... View more
11-25-2020
09:19 AM
|
0
|
0
|
4828
|
POST
|
Hi Xander, Hoping that you can help me with an Insert triggering event that deletes records in a matching table. I have a feature class, GasFittings, for which we assign TagIds. Once a tag is assigned to a gas fitting, I would like to delete the matching tag from a master table of available tags. I did try to somewhat follow the example here: https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/advanced-gdb-attribute-rules-editing-external-features-with-attribute-rules/, but I was not able to achieve what I wanted. Here is what I have so far and I am just getting started with Attribute Rules. Ant help is greatly appreciated. //The attribute rule is added to the TagID table on the Field "TagID", which executes a delete for records in Tag table with matching TagID in GasFit Layer //Get Gas Fit layer var gasfeature = $feature.AGLTAGID; var relate = "$feature.name = '" + $feature.AGLTAGID + "'"; //Get TagID Table var tagidtable = FeatureSetByName($datastore, "Tags"); var match = Filter(tagidtable, relate) //if we couldn't find it exit (someone might've deleted it) if (count(match) == 0) return $feature.name; //get the feature row (we should only have one ) var matchingFeature = first(match) return { //we want to just return the value of field `name` no change require "result": $feature.name, //this keyword indicates an edit that need to happen, its an array since we can make many edits "edit": [ { //the other class we want to edit "className" : "Tags", //the type of edit, in this case we want to delete so we say `deletes`, its an array since we can make many deletes "deletes" : [ { //what feature we need to delete? "name" : matchingFeature.name } ] }
... View more
11-24-2020
10:51 AM
|
0
|
0
|
1642
|
BLOG
|
Is there a way to get intersection information using geotrace for a polygon similar to what you accomplished in the Working with Web Service section with the geopoint?
... View more
09-11-2020
07:26 AM
|
1
|
0
|
48624
|
POST
|
Hi Xander, This is an excellent tool. However, I can not get it to work with a geodatabase or sde input. Is there something that I need to change? Any help would be greatly appreciated. Screenshot below:
... View more
02-14-2018
11:54 AM
|
1
|
1
|
1210
|
POST
|
Ok, let's start simple. The "dynamic" layer "Anno" is actually my parcel dimension annotation class. Basically, if I was to remove that annotation layer from my service. How do I get labeling to show on my feature layers? Do I need to change them all to dynamic? I have also been publishing from the mxd. Can you provide a simple code example?
... View more
09-12-2012
10:14 AM
|
0
|
0
|
302
|
POST
|
I just gave that a try. The anno layer is only turned on, with all of the other layers off. However, I still have missing symbology and labels. I still have to turn on my parcels under the grouped anno layer to see my parcel pins, for example. I would like it so that in the table of contents, checking a box next to a feature turns off the symbology, as well as the label. Can you provide me with any example? I am pretty new to flex. Thanks for the quick response.
... View more
09-12-2012
05:34 AM
|
0
|
0
|
979
|
POST
|
Hey Robert, I had this issue also in the past, but I still can not figure out how to resolve the issue with all of my labels and symbology connected to one layer in the table of contents. For example, I set my anno layer to dynamic, but all of the other layers are there too. I also have a few tools that have to work with feature service layers (search for example), similar to the web map that you posted the example for. I have attached my configuration file. Any quick help would be greatly appreciated. Thanks
... View more
09-11-2012
10:34 AM
|
0
|
0
|
979
|
Title | Kudos | Posted |
---|---|---|
1 | 09-11-2020 07:26 AM | |
1 | 02-14-2018 11:54 AM |
Online Status |
Offline
|
Date Last Visited |
10-28-2021
05:43 PM
|