08-30-2012 01:18 AM
If im using the above what should my xml file look like to have this work. Below sample xml. What would my xml look like if i wanted any of the above to be selected after holding a finger on it, actual selecting and sending it.
<listitem title="Worlds Greatest" image="../images/photome.png" file="worldsgreatest.qml"/>
Solved! Go to Solution.
08-30-2012 09:07 AM - edited 08-30-2012 09:28 AM
Look at sample stampcollector.
(There's also cascadescookbook and weatherguesser)
The concept you need is this: the xml file contains the data. The list view is how you display and interact with the data. These are separate things. The xml file should not have any dependency on how the program interacts with the data.
The xml file in your case is the model.
the XmlDataModel is playing a role that is largely the controller in MVC parlance.
So controlling whether something is selectable is done by setting up your ListView.
There's lots of easy-to-read documentation under https://developer.blackberry.com/cascades/ with some great worked examples that should make it clear how everything fits together.
08-31-2012 08:59 AM