Sorting of lists: sort is now always executed server-side via the mechanism used by paginated lists. This fixes Trac #411, #421, #520

SVN:trunk[1931]
This commit is contained in:
Denis Flaven
2012-03-27 15:27:15 +00:00
parent 144b5ae39f
commit 529b5d53fc
8 changed files with 252 additions and 186 deletions

View File

@@ -323,6 +323,11 @@ abstract class AttributeDefinition
// Note: This is the responsibility of this function to place backticks around column aliases
return array('`'.$sClassAlias.$this->GetCode().'`');
}
public function GetOrderByHint()
{
return '';
}
// Import - differs slightly from SQL input, but identical in most cases
//
@@ -2120,6 +2125,13 @@ class AttributeEnum extends AttributeString
if ($proposedValue == '') return null;
return parent::MakeRealValue($proposedValue, $oHostObj);
}
public function GetOrderByHint()
{
$aValues = $this->GetAllowedValues();
return Dict::Format('UI:OrderByHint_Values', implode(', ', $aValues));
}
}
/**