Difference between Folder Versions details

Post your questions regarding using the Vault and Fortress API in your programs.

Moderator: SourceGear

Post Reply
Aestros
Posts: 17
Joined: Mon Jun 16, 2008 7:54 am

Difference between Folder Versions details

Post by Aestros » Fri Jun 20, 2008 9:38 am

I have a question about Folder Versions details.

When I go into your client application,
do a "Show History" on a folder,
I change only "View folder history by item" for "View folder history by version".
Click OK.

It brings me to the list of version for the selected folder.
I choose a version and then click "Details".
It shows me what happened, everything is fine.

Now, with the API.
I connect myself to vault server with the same account.
Then I call ServerOperations.ProcessCommandHistory([lotsOfParameters]);
I use the same folder with the same version as I used in your client.
But the API sometimes return me 0 VaultHistoryItem.

What am I doing wrong ?
Is there a property I need to set to the connection to receive the same information as your client program ?

[example of my call in C#]
ServerOperations.ProcessCommandHistory("$/folderToGet",true,DateSortOption.asc,null,null,VaultLib.VaultDate.EmptyDate().ToString(),VaultLib.VaultDate.EmptyDate().ToString(),null,null,4,4,0);
[end of example]

Thanks !

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Fri Jun 20, 2008 10:04 am

Look at the ProcessCommandVersionHistory command in ServerOperations.
Subscribe to the Fortress/Vault blog

Aestros
Posts: 17
Joined: Mon Jun 16, 2008 7:54 am

Post by Aestros » Fri Jun 20, 2008 11:04 am

I tried ProcessCommandVersionHistory but it return the list of all the version of the folder.
What is not working is when I try to get the details about a selected version in the list returned by ProcessCommandVersionHistory.

Details for version #4 in Vault Client application - 5 details.
Details for version #4 in API with ProcessCommandHistory - 0 detail.

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Fri Jun 20, 2008 11:10 am

Oh, I see now, To get the details for the transaction, call ProcessCommandTxDetail with the TxID.
Subscribe to the Fortress/Vault blog

Aestros
Posts: 17
Joined: Mon Jun 16, 2008 7:54 am

Post by Aestros » Fri Jun 20, 2008 11:26 am

It seems to work now !
Thanks for the fast answer. :)

Post Reply