PDA

View Full Version : SortOrder for Contact model display label not giving value



vaibhav.sood
23rd May 2013, 13:09
sortOrders:[
SortOrder {
detail: ContactDetail.Name
caseSensitivity: Qt.CaseInsensitive
field:Name.DisplayLabel
direction: Qt.AscendingOrder
}
]


This is a sort order being used for sorting the contact model based on the display label. however the contacts are not getting sorted.
Name.FirstName and
Name.LastName work perfectly but display label is not being read . Any help is much appreciated.

vaibhav.sood
24th May 2013, 13:15
sortOrders:[
SortOrder {
detail: ContactDetail.Name
caseSensitivity: Qt.CaseInsensitive
field:Name.DisplayLabel
direction: Qt.AscendingOrder
}
]


This is a sort order being used for sorting the contact model based on the display label. however the contacts are not getting sorted.
Name.FirstName and
Name.LastName work perfectly but display label is not being read . Any help is much appreciated.


Tried this also still no success with



sortOrders:[
SortOrder {
detail: ContactDetail.DisplayLabel
caseSensitivity: Qt.CaseInsensitive
field:Name.DisplayLabel.Label
direction: Qt.AscendingOrder
}
]


this should filter as mentioned in the documentation.

but sadly it is not filtering

Any help or someone facing the same issue replies is highly appreciated. to work a solution to this problem