Snippets work in salesforce one app but not on chrome browser?

Hi all… I have added several snippets to change the sort order of a model … eg by a date field

var params = arguments[0],
$ = skuid.$;
skuid.$M(‘VisitsbyDate’).orderByClause = ‘sales_activ__Scheduled_Date__c ASC’;


and they work on the salesforce app (formerly salesforce one) but not in my browser (chrome)??

Any ideas?

David,

Are you following this script with a Query model action?  The snippet is changing the sort order but does not show you loading the model with the changed sort order.  You can add this to your snippet->  skuid.$M(‘Task’).load()  to (re)load the model immediately.

Also, if you are on Skuid Millau, you can add an Action step Sort Model to do this declaratively.

Thanks,

Bill

Thanks Bill… i totally missed that new Action and that has made it a lot easier!