Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Alloy Collections- Two sets for same model

$
0
0

I am using alloy and loaded collection from my model as below.

var mycollections = Alloy.createCollection('mycollection');
mycollections.fetch({query: some_custom_query_with_few_columns_from_model});
This load perfectly and my collections gets automatically rendered in my tableView. Each row in table view need to show limited info and hence I have using custom_query.

Now on clicking the row, I need to load the all the columns for that record so that I can show them in detail view. If I load as below

mycollections.fetch({query: query_with_on_row_id_and_all_columns});
This will trigger to sync up the tableview and show only one record in it. I want to load collection but don't want to sync it up with tableview.

If I create two instances of same collection, one for all rows (limited columns) and other for one row (all columns) I get the error for second instance. We can't have two collections for same model.

Please suggest.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>