You are viewing limited content. For full access, please sign in.

Question

Question

SDK – Sample code to sort a list

SDK
asked on September 11, 2014

Does anyone have some sample code for sorting entries by creation date?

 

Sample of what was tested:

 

Dim params As New LFSearchListingParams

params.AddStandardColumn(Column_Type.COLUMN_TYPE_NAME)

params.ColumnTypeToSortBy(Column_Type.COLUMN_TYPE_CREATEDATE) = Sort_Direction.SORT_DIRECTION_ASC

Listing = fFolder.GetEntryListing(params, 100)

 

 

Receive error message:  “ColumnTypeToSortBy is not a member of the ‘LFSO90LIB.LFSearchListingParams’”

0 0

Answer

SELECTED ANSWER
replied on September 11, 2014

In order to support multi-column sorting, the interface was changed slightly.  You'll want to call AddColumnTypeToSortBy(Column_Type.COLUMN_TYPE_CREATEDATE, Sort_Direction.SORT_DIRECTION_ASC).  You can call AddColumnTypeToSortBy with another column to indicate a secondary sort criterion.

1 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.