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   4479 Views

Avatar
Fuzz10

25 November 2007 at 5:36am (Last edited: 25 November 2007 5:37am), Community Member, 787 Posts

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

25 November 2007 at 11:41am Forum Moderator, 801 Posts

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

26 November 2007 at 10:16pm Community Member, 787 Posts

Hi Ingo,

Nope, just the usual javascript warnings.

Avatar
Ingo

27 November 2007 at 9:22am Forum Moderator, 801 Posts

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

27 December 2007 at 12:08pm Community Member, 22 Posts

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

3 January 2008 at 9:24am Forum Moderator, 801 Posts

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

24 March 2008 at 9:38pm (Last edited: 24 March 2008 9:38pm), Community Member, 39 Posts

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

25 March 2008 at 10:23am Forum Moderator, 801 Posts

its marked for the next minor release (2.2.3)

Go to Top