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

Is it possible to specify a model via a passed argument?

$
0
0

Hello all, I'm developing an application which will allow the user to view a series of checklists. Each checklist is stored in a separate database table and will be shown in a TableView, one per window. What I want to know is if there's a way I can pass arguments to a controller and use those to tell the program which model I want. Is there a way to specify an arg to set a TableView's dataCollection, or to specify which Alloy.Collection I want to fetch()? Or is my only option to create many nearly identical views and controllers, changing only the model references?

Any answers about this would be great. I can provide examples of things I want or things I've tried if it's needed.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



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