Project

General

Profile

Feature #293

add sort(String sortString) to FoundSetWrapper

Added by Patrick Ruhsert almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
05/04/2011
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

Description

Hi,

it'd be nice to be able to sort a foundset before processing it in a report (for example invoice items). Sometimes, the related foundset is sorted by the user in a way that is not suitable for a report. In that case I could hard code the desired sorting in the report...

Not sure about compatibility with older versions of Servoy. IFoundSet.setSort(sortString) is new with Servoy 5... Hope that is not an issue.

Thanks
Patrick

History

#1

Updated by Patrick Talbot almost 13 years ago

Sorry, but I don't really see the point...
Knowing that you insert a foundset yourself in a report context from scripting, nothing prevents you to sort it beforehand, so you can already hard-code your sort there.

#2

Updated by Patrick Ruhsert almost 13 years ago

Just came across that because we print from different locations and have to think about all these. It seemed easier to do at the point where it is needed. Never mind.

#3

Updated by Patrick Talbot almost 13 years ago

  • Status changed from New to Rejected

I really think the point where it is needed is the script which injects the data to the report engine, not the report engine itself.
This is where you manipulate the data, the report should be seen as a View in a MVC paradigm, so the less logic you put into it, the better.

#4

Updated by Patrick Talbot almost 13 years ago

  • Status changed from Rejected to Closed

Also available in: Atom PDF