I am branching off this thread:
https://community.esri.com/message/772784-re-collector-use-related-layer-to-symbolise-feature
I have a manhole inspections fc, related to a inspection history table, using the Parent's 'GlobalID' field (aka gid)/ and Child's 'Parent guid' field in a one to many relationship,
and the table has attachments using gid/Parent guid.
I am trying to symbolize the parent feature class based off fields from the child table.
So far, I've attempted two methods:
1.
I attempted the sql script from the FC in arcmap using this definition query:
SELECT * FROM ssManholeInspections WHERE:
GlobalID IN (SELECT ParentGUID from ssManholeInspectionsHistory)
In both cases, only the first matching record is returned, which is incorrect.
It seems that I can only display the latest record (kind of like a 1:1 join), so I would have to include in the definition query the ability to pick the latest inspection date (which is updated using the editor tracking create date field, named 'InsStart' with Data type of Date) per unique foreign key (Parent GUID).
I suppose the correct query should also yield 4292 records, but it should return the records with the latest inspection date per ParentGUID, instead of returning only the first matching record.
In order to verify the expected count, I used the summary statistics tool on max date, case field guid.
This gave me the 4292 records I needed.
Yet, this is static, and I would like to see these records in real time as the data is edited.
These threads also talk about my question, but I would like help to put it into context.
https://community.esri.com/thread/90206
https://community.esri.com/thread/194907-select-records-with-most-recent-date-for-groups-of-points
https://community.esri.com/thread/169714
Solved! Go to Solution.
vaya parece imposible que ESRI no solucione este problema el poder realizar simbologia basada en una tabla relacionada a nuestra shape... y que esta cambie conforme va cambiando los valores de la tabla... como una tabla dinámica, pues bien ESRI te comento que en MS Excel es posible y mucho muy sencillo, lo comento para ver si te da un poco de pena y puedes resolverlo para los que usamos ArcGis y no solo prestes atención a la versión Online necesitas resolverlo para los que usamos la versión de escritorio que también contamos... hasta aquí mi reporte.