View Attachments associated with related table
I have attachments for a related table of a point feature class. Basically this is so a user can permit a location then come back periodically to do an inspection (related table) and attach a photo to that inspection. I can then build reports based on the inspection as opposed to the location.
In HTML 2.4 I was able to view the attachments by changing the Mapping.js file in the Compiled folder from
e.prototype._resolveFeature=function(a){
[...]
if(a.layer&&a.layer.type != "Table)e = b.essentialsHtmlViewer.mapping.infrastructure.MapUtils.findFeatureInMap(e,this.app.site);
else return
[...]
}
to
e.prototype._resolveFeature=function(a){
[...]
if(a.layer&&a.layer.type != "Table)e = b.essentialsHtmlViewer.mapping.infrastructure.MapUtils.findFeatureInMap(e,this.app.site);
//else return
[...]
}
But now that I am trying to upgrade to 2.5, it is not allowing this simple change to allow related tables to see their attachments.
When the current feature selected is the point feature layer, I determined that the related table returned attachmentInfos, but when the related table is selected, no attachmentInfos can be found.
Any insight on what I might be able to do to allow this functionality?
0
-
I need to do this too. Please post a solution if you end up figuring it out :) 0 -
OK, I just found I have to add the related table as a feature layer (not working with add in as a map layer). After done that I can see the attachment in the related table!! 0 -
Nice work Jack! And thanks for the heads up. That solved viewing the attachments...now on to my next problem adding attachments to those related tables. 0 -
I tried this (Add as a feature layer) and still not able to view the photo attachments on the inspection related table. Any other solution to fix this? Thank you! 0 -
Not sure if anyone else has discovered this, but I found out by accident that if you use the Workflow Activity "SetLayerVisibility" on a table layer and set the visibility to "True", it enables the "Attach a file or Photo" command in the Context Menu of the Table Details Panel. This is an easy workaround. 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
5 Kommentare