What are the differences between addOrderByField and addSortField
Views (6918)
Hi Guys
With addSortField you can set "only" the records order.
With AddOrderByField you can build some logic because is used the kernel class QueryOrderByField.
So, you can use the follow methods :
- direction
- autoHeader
- autoHeaderDetailLevel
- autoSum
- autoSumDetailLevel
- datasource
- fieldId
You can find some examples on the standard class :
- DimensionProvider Class, getDimensionOrderBysFromQuery method
- InventDimCtrl_Frm_OnHand class, modifyQuery method
Enjoy!
With addSortField you can set "only" the records order.
With AddOrderByField you can build some logic because is used the kernel class QueryOrderByField.
So, you can use the follow methods :
- direction
- autoHeader
- autoHeaderDetailLevel
- autoSum
- autoSumDetailLevel
- datasource
- fieldId
You can find some examples on the standard class :
- DimensionProvider Class, getDimensionOrderBysFromQuery method
- InventDimCtrl_Frm_OnHand class, modifyQuery method
Enjoy!
This was originally posted here.
*This post is locked for comments