I am trying to work up a mobile app similar to your sushi demo. I've attached a stripped version of what I'm working on. I'm having a problem getting the data I want to edit to display. For my data I am using a temporary webapi app to feed the mobile app data. I'm getting data just fine and retrieve the record object I want, but can't set the values I need to edit. The function below is where I get the data, and it is there, but I can't set the values. When the view displays, the fields are empty. I tried setting up like the sushi demo with it's detail view and template, but calling view.scrollerContent.html with the template and data never worked for me, it would not even display the view. How else can I either set the values for edit or use a template to do this? Thanks.
function getCompanyPackageForEdit(e) {
var view = e.view;
var package = dsPackage.get(view.params.id);
//alert("package: " + package.Description + " default weight: " + package.DefaultWeightFactor + " weight: " + package.WeightFactor);
$("#editDefaultWeight").html(package.DefaultWeightFactor);
$("#editWeight").html(package.WeightFactor);
$("#editMaxCount").html(package.MaxCountPerDay);
}