1

I'm working with an MPP file that has some additional columns with names like "Text5", "Text10", etc. Obviously these are not default columns with simple access through the Task class. I've seen the Column class, but don't see a way to access specific-named Columns via the Task class.

How do I retrieve values from a Task object in columns other than the default columns?

abatishchev
  • 98,240
  • 88
  • 296
  • 433
brydgesk
  • 864
  • 1
  • 8
  • 14

2 Answers2

1

The Task class has a GetText(int) method that allows for retrieving fields like this. I was able to get the values I need by using task.GetText(5) for the Text5 field.

brydgesk
  • 864
  • 1
  • 8
  • 14
1

You could use getFieldByAlias() to get value from custom-name column:
Example: task.getFieldByAlias("Text5")

Regards,

PeaceInMind
  • 1,147
  • 3
  • 11
  • 32