Hi Team,
As per our requirement, we need to explicitly define the WBS Code Separator in Project → WBS → Define Code Mask. Using the MPXJ Jar API, we then fetch the defined separator to implement the necessary validation.
Below is the code snippet used to retrieve the separator:
ProjectReader reader = new UniversalProjectReader(); ProjectFile project = reader.read(filePath); ProjectProperties ph = project.getProjectProperties(); String wbsCodeSeparator = ph.getWbsCodeSeparator();
However, we are facing an issue where the output always returns a dot (.), regardless of the separator defined in the project.
Jar Version: 13.5.1
MPP Editor Version: Microsoft Project Standard 2016
Can you please help me in providing the solution for this.
Thanks
Hi Team,
As per our requirement, we need to explicitly define the WBS Code Separator in Project → WBS → Define Code Mask. Using the MPXJ Jar API, we then fetch the defined separator to implement the necessary validation.
Below is the code snippet used to retrieve the separator:
ProjectReader reader = new UniversalProjectReader(); ProjectFile project = reader.read(filePath); ProjectProperties ph = project.getProjectProperties(); String wbsCodeSeparator = ph.getWbsCodeSeparator();However, we are facing an issue where the output always returns a dot (.), regardless of the separator defined in the project.
Jar Version: 13.5.1
MPP Editor Version: Microsoft Project Standard 2016
Can you please help me in providing the solution for this.
Thanks