[AC-690] PhotoCollections not "relationable" with relations
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | In Progress |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | acs |
| Reporter | Manuel Conde Vendrell |
| Assignee | Shuo Liang |
| Created | 2014-11-20T10:55:36.000+0000 |
| Updated | 2016-02-29T07:19:01.000+0000 |
Description
When you try to associate any Custom object with a PhotoCollection, ACs throws an error. E.g.:
Cloud.Objects.create({
classname: 'Albums',
fields: {
// TODO: "Error: Invalid ACS Type: photocollection"
name: "myname",
"[ACS_PhotoCollection]photocollection_id": photocollection_id
}
}, function (e) {
//
});
I've tried with [ACS_PhotoCollection], [ACS_PhotoCollections], [ACS_Collection] and [ACS_Collections], all with error.
We need a way to link an object to a collection, so we can retrieve the cover picture and show it in a list of Albums, for example.
This problem seems to be old: https://developer.appcelerator.com/question/155074/acs-photocollection-search-show-and-relational-fields
Thanks Shuo. To workaround this by now, I'm saving a relation with the cover photo directly, instead with the collection, but if you later modify the collection cover image, you lose the link.