Page 1 of 1

C#: List Available Labels for a Project

Posted: Mon Dec 08, 2014 9:53 am
by ejhansen71
Reading through the posts - this was last addressed back in 2011. I am creating a form and will access Vault Standard 6.1 to get a list of all labels available for a selected project. So under $ there may be 1 or more projects. The user will select the project and a list of labels will appear. They will select the label they want to promote to production and submit.

I do not see a method in your API that would allow this. Is there a workaround or an example piece of code that would work for this application?

Re: C#: List Available Labels for a Project

Posted: Mon Dec 08, 2014 11:08 am
by Beth
What you will want to use are the functions clientinstance.beginlabelquery, clientinstance.endlabelquery, and clientinstance.getlabelqueryitems_main.

If you have any questions about those just let me know.

Re: C#: List Available Labels for a Project

Posted: Mon Dec 08, 2014 11:31 am
by ejhansen71
Thanks Beth, I will implement that. I have been thrown into C# and .Net programming so this is all very interesting.

Re: C#: List Available Labels for a Project

Posted: Wed Dec 10, 2014 9:28 am
by Beth
Just an FYI..

In Vault 8 you will have a few additional options for working with labels. We have added the command FindLabels to our Vault command-line client and the function ServerOperation.ProcessCommandFindLabels() to the Vault 8 API.