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

  • 1
  • Question
  • Updated 12 months ago
  • Answered
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?
Photo of David Forder

David Forder

  • 2,154 Points 2k badge 2x thumb

Posted 1 year ago

  • 1
Photo of Bill McCullough

Bill McCullough, Champion

  • 12,436 Points 10k badge 2x thumb
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
(Edited)
Photo of David Forder

David Forder

  • 2,154 Points 2k badge 2x thumb
Thanks Bill.. i totally missed that new Action and that has made it a lot easier!