how to use a gui pop up vault folder browser?

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

Moderator: SourceGear

Post Reply
holdera
Posts: 6
Joined: Thu Jul 05, 2007 4:13 pm
Location: Nanaimo BC, Canada

how to use a gui pop up vault folder browser?

Post by holdera » Thu Jul 05, 2007 5:56 pm

In the GUI client, when I right click a file and select diff for a file in the history explorer with only that file is selected, I get prompted for where to get the file to compare with. If I select "any repository file/folder", I can browse though the vault server via a dialog box that opens up.

I wish to use something like that for users to browse and select a folder for use by my program. I assume this isn't that hard, but I am somewhat new to the API.

TIA,

holdera

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

Post by jeremy_sg » Mon Jul 09, 2007 7:56 am

There's no way to easily bring up any of our GUI components, because we haven't released an API for doing graphical operations in Vault.

The common thing that people do is to use the results from a call to the Command Line Clients listfolder command to get the repository structure. If you're programming against the 4.0 ClientIntegrationLib, you can get the objects directly by calling ServerOperations.ProcessCommandListFolder to get the tree.

holdera
Posts: 6
Joined: Thu Jul 05, 2007 4:13 pm
Location: Nanaimo BC, Canada

Post by holdera » Mon Jul 09, 2007 1:44 pm

Thanks, I'll give that a try.

Post Reply