Extract Primavera Task ID
Multi platform library to read and write schedule data
Brought to you by:
joniles
Primavera uses a 20 character string to represent its id field. Currently this field is not being imported from the pmxml file as it does not fit with the integer id field from MS Project.
The attached patch addes a new value to TaskField.java and provided to appropriate getter and setter in Task.java. The value is then populated in PrimaveraPMFileReader
Hi,
thanks for the patch. The preferred approach to adding attribute which do not easily map on to the Microsoft Project data model is to use custom fields. I've updated MPXJ so that it extracts the Task ID and writes this into the Text2 field. The code also sets the custom field name, so if you were to generate an MSPDI file from the data you'd read from Primavera, the Text2 column would actually be labelled Task ID.
These changes are now in CVS.
Jon