Skip to content

Instantly share code, notes, and snippets.

@wolfeidau
Created November 30, 2010 08:54
Show Gist options
  • Save wolfeidau/721378 to your computer and use it in GitHub Desktop.
Save wolfeidau/721378 to your computer and use it in GitHub Desktop.
sproutcore query sample
proquery = SC.Query.local(Machines.Utils, "classification.activity = %@ AND startHour = %@", ["Producing",hour]);
proquery = SC.Query.local(Machines.Utils, "deviceId = {myval} AND startHour = {myprop2}", {myval: '4cf46334ac65b35648bbff08', myprop2: '10'});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment