Home again after a day over at Pymble… It was a fun day – with lots of in deapth discussions as to the direction of the product… and it was good to use the WebServices from a distance for once – highlighting issues that I need to resolve. I have a function called something like
GetVehicleHistory (Vehicle,FromDate, ToDate)
And if the span of days is too long then this will not work well since it will take ages to return. So I came up with a solution to this, and it is brilliant even if I do say so myself. Each record that I am returning has a unique record number… So I am going to get a function written called
GetVehicleHistory (Vehicle,FromDate, ToDate, FirstRecordID, MaxRecords)
What this function will do is return a maximum of MaxRecords. Now, the intelligent bit is that I will also tell it the FirstRecordID. This will be 0 to start with, and will be one higher than the maximum RecordID returned for other queries. This will allow the system to work more dynamically, and act more responsively to the user. They will also be able to get a better idea of the progress of the query.

I had problems getting out of the driveway coming home tonight. Someone had parked their truck in the way, put the hazzard lights on and went next door to finish up for the day and have a chat before comining out a litle later. And all the time I was stuck trying to get out, and someone else was trying to get in. I am just glad that one of the workers knew it was their truck and went in to find the driver. Otherwise I would probably still be there!