Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Bug ? Sorting in a ComplextableField


Go to End
Reply


9 Posts   4606 Views

Avatar
Fuzz10

Community Member, 787 Posts

25 November 2007 at 5:36am

Edited: 25/11/2007 5:37am

I'm using a ComplexTableField for displaying / editing rows of data.

Clicking the column headers to sort the list breaks the CMS.

See attached screenshots.

Avatar
Ingo

Forum Moderator, 801 Posts

25 November 2007 at 11:41am

thats typical for javascript-behaviour not being applied - do you get a javascript error when loading the cms, or after pressing the link (before the page refreshes)?

Avatar
Fuzz10

Community Member, 787 Posts

26 November 2007 at 10:16pm

Hi Ingo,

Nope, just the usual javascript warnings.

Avatar
Ingo

Forum Moderator, 801 Posts

27 November 2007 at 9:22am

added a ticket for it: http://open.silverstripe.com/ticket/1904 - i suspect the javascript replaces the container-div rather than all elements inside after the sorting-refresh...

Avatar
vcmusic42

Community Member, 22 Posts

27 December 2007 at 12:08pm

How did you get the tables to sort? Is this functionality available in 2.1? I have a similar table and I'd like to know how to get it to sort alphabetically (within the cms). thank you!

Avatar
Ingo

Forum Moderator, 801 Posts

3 January 2008 at 9:24am

have a look at http://doc.silverstripe.com/doku.php?id=tablelistfield#sorting
due to performance-considerations we can just sort on SQL columns for now (not within a dataobjectset and custom getters). $sourceSort is the 5th constructor parameter.
you can also apply a custom SQL query to all tablelistfield instances which has an ORDER BY directive.

Avatar
a-tech

Community Member, 39 Posts

24 March 2008 at 9:38pm

Edited: 24/03/2008 9:38pm

5 months old and this isn't fixed - tell that matt to stop playing TF2!!

haha, any news on this in next version? or a workaround?

[I get the same error as the original poster]

Avatar
Ingo

Forum Moderator, 801 Posts

25 March 2008 at 10:23am

its marked for the next minor release (2.2.3)

Go to Top