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.
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
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.
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)?
Hi Ingo,
Nope, just the usual javascript warnings.
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...
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!
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.
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]
its marked for the next minor release (2.2.3)