Titanium JIRA Archive
Appcelerator Community (AC)

[AC-690] PhotoCollections not "relationable" with relations

GitHub Issuen/a
TypeBug
Priorityn/a
StatusIn Progress
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsacs
ReporterManuel Conde Vendrell
AssigneeShuo Liang
Created2014-11-20T10:55:36.000+0000
Updated2016-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

Comments

  1. Shuo Liang 2014-11-21

  2. Manuel Conde Vendrell 2014-11-21

    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.

JSON Source