FYI, search is not working in this forum.
I am trying to get the possible child types for a location type. LocationType.getValidChildren() always returns null.
Is this a bug in the API or am I using it incorrectly?
Code below:
SearchArgument searchArgument = new SearchArgument();
String strConditions = "BASE::LOCATION_TYPE_ID LIKE \"%\"";
searchArgument.setProfileCondition(strConditions);
java.util.Collection colLocations = m_RMView.m_RMLibrary.searchLocationType(searchArgument);
java.util.Iterator locationIterator = colLocations.iterator();
com.imanage.cms.api.workteam.recordsmanagement.LocationType typeParent,typeChild;
while (locationIterator.hasNext()) {
typeParent = (com.imanage.cms.api.workteam.recordsmanagement.LocationType) locationIterator.next();
java.util.Iterator childrenIterator = typeParent.getValidChildren().iterator();
while (childrenIterator.hasNext()) {
typeChild = (com.imanage.cms.api.workteam.recordsmanagement.LocationType) childrenIterator.next();
if (typeChild.getReferenceId().compareTo(typeChildToSearch.getReferenceId()) == 0)
cbParentLocations.addItem(new LocTypeForComboBox(typeParent));
}
}