On Vault 3.5.1, can someone explain to me the interaction between req.DateFilterMask = VaultQueryRequestDates.HistoryBefore | VaultQueryRequestDates.HistoryAfter;
and BeginDate and EndDate?
I looked at cmdline.cs in the api package but couldn't really understand it.
My most frequent history request are: range of exact dates and all existing history.
RetrieveHistory API question
Moderator: SourceGear
RetrieveHistory API question
Perry Ismangil
The Client API uses a Date filter floor, ceiling, or both (a range). The filter mask takes an OR'ed int for the different kinds of filters. For example, in your example, it is using BOTH HistoryAFTER and HistoryBEFORE to get a range of dates.
If you want to do no date filtering, leave these members with their default values.
If you want to do no date filtering, leave these members with their default values.
Jeff Clausius
SourceGear
SourceGear
I guess what I am asking is why the need for a datefilter at all.
Isn't begindate and enddate enough info? That is all history request is always for a range: begindate=empty enddate=some date will mean anything up to that date, begindate=some date enddate=empty will mean from that date onwards, both empty I guess will mean enddate=now.
Thanks for the taking the time to explain this to me Jeff, I know this is fairly esoteric, however I found in all cases our custom tools really depends on correct and precise history retrieval (which from a plugin does not always happen but that's for another thread...).
Isn't begindate and enddate enough info? That is all history request is always for a range: begindate=empty enddate=some date will mean anything up to that date, begindate=some date enddate=empty will mean from that date onwards, both empty I guess will mean enddate=now.
Thanks for the taking the time to explain this to me Jeff, I know this is fairly esoteric, however I found in all cases our custom tools really depends on correct and precise history retrieval (which from a plugin does not always happen but that's for another thread...).
Perry Ismangil