MPP - Outline code lookup tables do not show up
Multi platform library to read and write schedule data
Brought to you by:
joniles
I'm trying to read the outline codes - while the outline codes are being read fine, the lookup tables are Not. I've tested this on several MPP files, and have ensured that there are lookup tables present for the outline codes.
My application is .Net, and I'm using MPXJ via IKVM.
Code is below. The outline code names show up, but the lookup table size is 0 everytime.
I've also attached a screenshot from a MPP file - for instance, the custom fields '00:Phase' through '04: Wrong Phase' all show up in the console, but the lookup table size is 0.
Much appreciated!
private void outlinecodereader(ProjectFile project)
{
foreach (CustomField outlinecode in project.CustomFields)
{
Console.WriteLine("Outline Code Name = " + outlinecode.Alias + "; count = " + outlinecode.LookupTable.size);
}
}
So, looks like this is related to bug #324.
What's happening is:
(a) if there is a custom name for the field, the alias is picked up but the lookup table is NOT.
(b) if there is no custom name but the field is left at the default, the alias is NOT picked up but the lookup table is picked up this time.
Attached are the MPP files, and screenshots from my program's output.
I believe this is fixed by the change I've just committed to GitHub. The fix will form part of the next release of MPXJ (probably next week) let me know if it is still an issue for you.
Unfortunately, the outline code lookup tables still don't show up. The size is displayed as 0.
The text custom field lookup tables are displayed correctly however. Please find attached, the MPP file I'm using.