AnsweredAssumed Answered

QML Javascript get Attachments

Question asked by James.Wallace2@ocpw.ocgov.com_OCPW on May 14, 2020
Latest reply on May 18, 2020 by James.Wallace2@ocpw.ocgov.com_OCPW

Hi Erwin,

 

I recently took the zoom class in appStudio. I was able to figure out quite a bit from the documentation, but I'm having a hard time with getting attachment information from the feature qml object.  I'm trying to select a feature qml object from a featureLayer qml object and get the attachment info.  After the Selection, whenever I do feature.attachments.count  it returns 0 and I know that there are attachments.  I know I can return the geometry of the feature and attributes, but having a hard time with attachments. It doesn't seem like the attachments QML List is asynchronous or that I need to do a fetch of any kind. I looked at the edit Attachment example on GitHub but for some reason I can't seem to replicate the example.  I feel like it's something easy I'm missing.  Thanks for any assistance.

 

James W.

Outcomes