We have a small tableview in which we would like to show the translated description.
This works ofcourse using a calculated field which returns the
- Code: Select all
i18n.getI18NMessage(origfield)
But sorting doesn't work. Apparently we always get the tableview sorted on the origfield
Custom onSort methods don't work either, i've tried :
- Code: Select all
foundset.sort(calculated_field asc)
and also
- Code: Select all
controller.sort(calculated_field asc)
- Code: Select all
foundset.sort(function(a,b) {return i18n.getI18NMessage(a.origfield) > i18n.getI18NMessage(b.origfield);})
but none of these work
Any idea on how to solve this without having to store the calculated field and also while keeping the standard foundset datasource?