attachmentId field not available for selection in image component

Trying to use the image component with an attachment, but I can’t select the AttachmentId__c field from the lookup relationship, even though the field is in the model:


Hi Matt, have you tried setting up a model on the object that’s directly related to the AttachmentId? 

Mark,

I have it working elsewhere with a more direct model. But shouldn’t it work this way, too?

I am honestly not sure if a relationship that spans several degrees should work or not. I suggested this because it seemed like a fairly easy alternative to test. I can say from our documentation that an image component that’s looking for an attachment only accepts Lookup Relationship Fields that have File as the Related Object. So, Skuid may be looking to see whether the object at the beginning of that string of references has a relation to the File object, and seeing that it doesn’t, and thus not offering that as a choice. 

Matt, this may be confusing, but you actually need to select the Image__c Reference field, NOT the Attachment Id field. The only fields available for selection will be Reference fields on the Image__c object. So basically, just go back a level and select the Image field and you should be good.

That said, we made some major changes and bug fixes to this behavior in Millau, in particular, deeply-nested Image__c fields didn’t work prior to Millau, so I recommend making sure you’re on the latest Millau.

Ah, thanks Zach. I’m still on 9.5.