Find criteria must contain at least one sort field value

1) I applied the sorting to arraycollection :

var sf:SortField = new SortField();
sf.name = “CaseID”;
var srt:Sort = new Sort()
srt.fields = [sf];
cases.sort = srt; // cases is arraycollection and storing values //from backend service
cases.refresh();

But it cause the execption stating “Find criteria must contain at least one sort field value”, on checking the dataprovider we found that field ‘CaseID’ was not present in data but ‘CaseId’ and because of that it was causing the exception.

So make sure that the sortfield should present in the data.

Advertisements
  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: