POST
|
@JohannesLindner that is what i was looking for thank you for your help
... View more
05-10-2022
07:15 AM
|
0
|
0
|
403
|
POST
|
@JohannesLindner I spoke a bit too early on this. what you gave me works but it is in the wrong direction form what I am looking for. the set up is the FeatureClass has the relationship class on it. When an inspection is done it is being put into the table using that GlobalID = LocationGlobalID. From here now that the Table has a new record in it I need to use that Relationship Class ID (LocationGlobalID) and grab the GdBOrderNumber field from the FeatureClass and apply it to the Table. I am putting the Attribute Rule on the Table because that is where the Insert is taking place. I tried to change the code you gave me but it keeps giving me errors or just does nothing. I tried to use the LocationGlobalID field in the dictionary like you said but it is telling me I need to use the GlobalID field, but when I do that it does not do anything. Here is what I have: var f_gid = $feature.LocationGlobalID; var related_records = FeatureSetByName($datastore, "Database.DBO.[FeatureClass]", ["*"], false); var Join = Filter(related_records, "GlobalID = @f_gid"); // create and fill the update array var updates = [] for(var record in Join) { // updates is an array of dictionaries // the dictionaries are built like this: // {"globalID": "GID of the edited feature", "attributes": {"Field": value}} var update = {"LocationGlobalID": record.GlobalID, "attributes": {"GdBOrderNumber": record.GdBOrderNumber}} Push(updates, update) } // apply the edits return { "edit": [ { "className": "Database.DBO.[Table]", "updates": updates } ] }
... View more
05-05-2022
10:54 AM
|
0
|
2
|
428
|
POST
|
That is what i was looking for and thank you for the link that will help a lot
... View more
05-03-2022
08:24 AM
|
0
|
3
|
449
|
POST
|
Hello, I am trying to populate a field based on where a joining ID is between two tables. I have a relationship class set up between two tables but I want to bring over another value than just a GlobalID. So I was trying to use an attribute class to do this but it is not working for me. Can someone help? My joining field is LocationGlobalID = GlobalID The field I want populated from one table to the other is GdBOrderNumber = GdBOrderNumber var f_gid = $feature.LocationGlobalID; var Project = FeatureSetByName($datastore, "Database.DBO.[Other Table]", ["*"], true); var Join = Filter(Project, "GlobalID = @f_gid"); return { 'result': $feature.GdBOrderNumber, 'edit': [ {"GdBOrderNumber": $feature.GdBOrderNumber } ] };
... View more
05-03-2022
06:40 AM
|
0
|
5
|
490
|
POST
|
Sadly I have not found a way to Edit an SQL Native Database in ArcGIS Pro. Pro requires all of the A, D, I, etc. tables for each item. There is not a way for Pro to understand What everything is when you want to edit. You can view the data in Pro but editing is not an option. You will need to copy that data into an enterprise database. You can us the import tool to bring it into an enterprise database but what you are looking to do it not possible at this time.
... View more
04-21-2022
02:33 PM
|
1
|
1
|
1450
|
POST
|
Hello, I am doing something a bit confusing to explain. I am creating my own Historical Table for when an inspection is done. I am doing this with the Code below. This is working exactly as planned when someone fills out the inspection in Table1 it populates my historical table (Table2). What the problem I am running into is when they fill out the inspection they are taking 12 - 16 photos each time they fill out an inspection. There is an _ATTACH table associated with BOTH tables. I want to be able to populate the _ATTACH table for Table 2 after the new record is pulled from Table1, but the GloablID (In Table2 and Table2_ATTACH) field is regenerated and then I am getting stuck on what to do next. What I need - An attribute Rule that will, when a new Photo is taken in Table1, Will move it to Table2 and Change the REL_GloablID field to the new GloablID that was Created in Table2. (I have a Link between Table1 and Table2 in a new GUID field called DuneGloablID in Table2) I feel like there should be a way use this field to do what I am looking for. return { //we want to just return the value of field `Field` no change require "result": $feature.InspectionDate, //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" : "DATABASE.DBO.TABLE2", //the type of edit, in this case we want to add so we say `adds`, its an array since we can make many inserts "adds" : [ { //the attribute of the feature we want to add "attributes": { "DuneGlobalID": $feature.globalid, "InspectionDate": $feature.InspectionDate, "Profile_Number": $feature.Profile_Number, "Jurisdiction": $feature.Jurisdiction, "Contract": $feature.Contract, "Inspection_Type": $feature.Inspection_Type, "InspectionDateOther": $feature.InspectionDateOther, "Dune_Berm_Condition": $feature.Dune_Berm_Condition, "Inspected_By1": $feature.Inspected_By1, "Inspected_By2": $feature.Inspected_By2, "Unusual_Settlement": $feature.Unusual_Settlement, "Unusual_Settlement_Comment": $feature.Unusual_Settlement_Comment, "Sloughing": $feature.Sloughing, "Sloughing_Comment": $feature.Sloughing_Comment, "Erosion_Cross_Section": $feature.Erosion_Cross_Section, "Erosion_Cross_Section_Comment": $feature.Erosion_Cross_Section_Comment, "Scarping": $feature.Scarping, "Scarping_Comment": $feature.Scarping_Comment, "Unauthorized_Excav_Vand": $feature.Unauthorized_Excav_Vand, "Unauthorized_Excav_Vand_Comme": $feature.Unauthorized_Excav_Vand_Comme, "Overtopping_During_High_Wat": $feature.Overtopping_During_High_Wat, "Overtopping_During_High_Wat_C": $feature.Overtopping_During_High_Wat_C, "Accumulation_of_D": $feature.Accumulation_of_D, "Accumulation_of_D_Comment": $feature.Accumulation_of_D_Comment, "Excessive_Growth_G_or_W": $feature.Excessive_Growth_G_or_W, "Excessive_Growth_G_or_W_Comme": $feature.Excessive_Growth_G_or_W_Comme, "Localized_Wind_Erosion": $feature.Localized_Wind_Erosion, "Localized_Wind_Erosion_Commen": $feature.Localized_Wind_Erosion_Commen, "Encroachment_on_Dune": $feature.Encroachment_on_Dune, "Encroachment_on_Dune_Comment": $feature.Encroachment_on_Dune_Comment, "Sand_Fence_Condition": $feature.Sand_Fence_Condition, "Sand_Fence_Condition_Comment": $feature.Sand_Fence_Condition_Comment, "Sand_Accumulation": $feature.Sand_Accumulation, "Sand_Accumulation_Comment": $feature.Sand_Accumulation_Comment, "Exccessive_Accumulation": $feature.Exccessive_Accumulation, "Exccessive_Accumulation_Comme": $feature.Exccessive_Accumulation_Comme, "Required_Maintance": $feature.Required_Maintance, "General_Condition": $feature.General_Condition, "Remarks": $feature.Remarks } } ] } ] } Thank You in advance. If you have any questions feel free to reach out.
... View more
04-21-2022
01:24 PM
|
0
|
0
|
246
|
POST
|
@JohannesLindner You are amazing thank you so much for taking the time to explain that to me
... View more
03-30-2022
10:13 AM
|
0
|
0
|
524
|
POST
|
@JohannesLindner Can this be used to do a point to a line feature instead of a line feature to itself? would there be a big difference if I wanted to do this?
... View more
03-29-2022
08:52 PM
|
0
|
2
|
532
|
POST
|
That did not seem to work for me. all i had to do was paste the code as is correct? because that gave me an error saying invalid expression.
... View more
03-29-2022
08:43 PM
|
0
|
0
|
1097
|
POST
|
You also can add in the field (if that is why you are getting the error) right into ArcGIS Online. It is failing to add the new field. add it right into the data table and it will have no issue publishing after that.
... View more
02-03-2022
07:15 AM
|
1
|
0
|
2116
|
POST
|
Would you be willing to share the code you used to make this layer to KML tool. i am struggling to make this myself.
... View more
01-20-2022
02:00 PM
|
0
|
0
|
499
|
Title | Kudos | Posted |
---|---|---|
1 | 02-03-2022 07:15 AM | |
1 | 04-21-2022 02:33 PM |
Online Status |
Offline
|
Date Last Visited |
03-19-2024
10:37 PM
|