ReportColumn sort by date |
Post Reply |
Author | |
lambertm
Newbie Joined: 15 August 2005 Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 17 November 2005 at 2:46pm |
Is there a way to sort by date on a column as I can see how you can tell the column that it contains dates ... Is there a way to do this as if not it a glaring omission
Marcus |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hello,
Yes, of course this is possible. There are some Date type column in the sample, please look how it work. Those are Received and Sent columns. The main idea is to override Compare method for your own RecordItem - derived class and provide your implementation which will be able to compare any items, like dates, etc. -- WBR, Serge |
|
lambertm
Newbie Joined: 15 August 2005 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Compare method ? I dont see one on the RecordItem Object .. As which sample are you taking about ? I only have 2 one for vitual list and one inbox report sample that does not sort properly ... may be we have different version I have 9.70
m
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi,
First of all you haven't specified that you're using ActiveX version of the Report control. That's why you do not have such a method visible for you Look into VB Report Sample, to the method Public Sub SetDateItem(ByVal Item As ReportRecordItem). As you can see, it sets an Item to the value of type Date, and then it will be sorted by date automatically. -- WBR, Serge |
|
lambertm
Newbie Joined: 15 August 2005 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Serge, I must say that is excaly what I am doing ...but It still wont sort the date corretly if fact it dosent sort the date correctly in my vb sample as well .. ? I guess that I will have to create another colum with seconds in it ...and sort by that
m |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi,
Could you post a screenshot with incorrect sorting? -- WBR, Serge |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |