How do I get a user's name from their guid (proj_checkoutby)?

K

Kit

I've been looking at the ProjTool source code and can't seem to figure out
how the column PROJ_CHECKOUTBY_NAME gets magically populated with the user's
name.

From the best of my knowledge, there is no PROJ_CHECKOUTBY_NAME property on
a ProjectRow. Yet somehow, in ReadProjectsList() in ProjectMain.cs in the
ProjTool sample code, they are using this column!

More importantly...

How do I get the user's name using the guid that is stored in
PROJ_CHECKOUTBY???
 
G

Guest

Hi Kit,

If you have a resource Guid, all you need to do is call the ReadResource method
with your Guid as the parameter. This will return a Resource dataset and the
name if the resource can be found Res_Name column in the Resources table.
If you need the windows user name, it can be found in the WRES_Accoount
column.

Does this answer your question?

Bob Segrest, PMP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top