Adding person type reference field
In Planon ProCenter, 10 person type references are available. Each person type reference corresponds to a digit from 0 to 9.You can add a Person type reference field in the Person BO by using the
setPersonTypeRef(final String aNewValue)method.
final PersonClientStub instance = new PersonClientStub();
final String sessionId = instance.login( aArgs[0], aArgs[1] );
// TODO add your business logic here...
Person person = instance.createPerson(sessionId);
person.setCode("test1");
person.setFacilityNetUsername("test1");
// valid input
person.setPersonTypeRef("1 3 5");
In the above example of setting person type reference as”1 3 5”, empty spaces are provided between the digits. The empty spaces correspond to the missing digits thus enabling you to display only the person type references of the digits mentioned here.
That is, if 1, 2 and 3 digits correspond to Coordinator intern, Uitvoerder intern and Melder person types respectively, according to the above example, only the Coordinator intern and Melder are displayed while Uitvoerder intern becomes invisible as 2 is represented by an empty space.
* 
While assigning person type references in the method, if continuous numbers are not used and if empty spaces are not provided between the digits, incorrect person type reference fields will be displayed.