Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Sort and preselect in SmartFields
Sort and preselect in SmartFields [message #1269232] Tue, 11 March 2014 15:11 Go to next message
Fritz Schinkel is currently offline Fritz SchinkelFriend
Messages: 1
Registered: March 2014
Junior Member
Hello,

I was wondering, if it is possible to change the sorting mechanism and preselect values in a smartfield.
In my case the smartfield contains dates, which should be sorted from the latest to the oldest date. In addition the newest date should be preselected.

Thanks for your help.
Re: Sort and preselect in SmartFields [message #1269728 is a reply to message #1269232] Wed, 12 March 2014 06:05 Go to previous message
Urs Beeli is currently offline Urs BeeliFriend
Messages: 572
Registered: October 2012
Location: Bern, Switzerland
Senior Member
Have you tried using the "order by" clause in the SQL query with which you select the entries to populate the smart field? If that doesn't work you could store the result of the query in a sorted set before creating the LookupRow[] in LookupService.getDataByAll() and getDataByText().
Previous Topic:Questions concering SQL Service
Next Topic:SWT Rendering inner Group Box on a Custom Field
Goto Forum:
  


Current Time: Mon Dec 09 20:51:39 GMT 2019

Powered by FUDForum. Page generated in 0.01880 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top