joniles / mpxj

Primary repository for MPXJ library

Home Page:http://www.mpxj.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for P6 project fields for activity Id generation

smacharacek opened this issue · comments

Hi Jon,

would it be possible to add support for the following P6 fields used for generating task codes (in both XER and XML format)?

    <Project>
        ...
        <ActivityIdBasedOnSelectedActivity>1</ActivityIdBasedOnSelectedActivity>
        <ActivityIdIncrement>10</ActivityIdIncrement>
        <ActivityIdPrefix>A</ActivityIdPrefix>
        <ActivityIdSuffix>1000</ActivityIdSuffix>
        ...

I can see in the codebase that the dafaults are used when e.g. exporting to XML:

      project.setActivityIdBasedOnSelectedActivity(Boolean.TRUE);
      project.setActivityIdIncrement(Integer.valueOf(10));
      project.setActivityIdPrefix("A");
      project.setActivityIdSuffix(Integer.valueOf(1000));

(i.e. those fields are not in ProjectProperties).

Thanks,
Simon

@smacharacek - no problem, I should be able to get these into the next release.

Done! The new release including this change should be out today.