P
Peter Schneider
Hi!
Perhaps someone can help me out...
I have a Project 2007 C# Addin and want to read Enterprise Custom Fields...
the code for reading
Task Enterprise Custom Fields as follows works great...
public static string GetEnterpriseField(Task t, string fieldname)
{
try
{
return t.GetField(
Globals.ThisAddIn.Application.FieldNameToFieldConstant(fieldname,
PjFieldType.pjTask));
}
catch
{
return String.Empty;
}
}
I want to read Enterprise Custom Fields of Entity Type Project (not Task or
Resource)... so it seems I have to change the field type, but unfortunatly
setting it to PjFieldType.pjProject doesn't work. And shouldn't there be a
way to read these type of fields without a task reference? Any clues?
greetings, Peter
Perhaps someone can help me out...
I have a Project 2007 C# Addin and want to read Enterprise Custom Fields...
the code for reading
Task Enterprise Custom Fields as follows works great...
public static string GetEnterpriseField(Task t, string fieldname)
{
try
{
return t.GetField(
Globals.ThisAddIn.Application.FieldNameToFieldConstant(fieldname,
PjFieldType.pjTask));
}
catch
{
return String.Empty;
}
}
I want to read Enterprise Custom Fields of Entity Type Project (not Task or
Resource)... so it seems I have to change the field type, but unfortunatly
setting it to PjFieldType.pjProject doesn't work. And shouldn't there be a
way to read these type of fields without a task reference? Any clues?
greetings, Peter