Skip to main content
Nintex Community Menu Bar
Question

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

  • July 11, 2024
  • 2 replies
  • 4 views

Forum|alt.badge.img+8

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?

This topic has been closed for replies.

2 replies

Forum|alt.badge.img+10

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


Forum|alt.badge.img+8
  • Author
  • Novice
  • July 11, 2024

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