DataUtility doesn't work on Windchill 11.1
- August 27, 2018
- 1 reply
- 7081 views
Hi All,
I'm upgrading from Windchill 9 to 11.1 and I have a JCA / DataUtility customizion I want to convert using OOTB DataUtility ID inside Type and Attribute Manager, but it doesn't work.
The customization consists in some soft attribute (eg: DocumentCategory_ETS) of a soft type (intra.elica.upgradesvil.ETS subtype of ReferenceDocument subtype of WTDocument) to be rendered as ComboBox.
I followed all instructions and tips from Windchill help center and support cases.
Following my code and configurations:
1) site.xconf
<Property name="wt.services/svc/default/com.ptc.core.components.descriptor.DataUtility/ETSDataUtility/java.lang.Object/0"
overridable="true"
targetFile="codebase/service.properties"
value="ext.elica.doc.datautility.ETSDataUtility/duplicate"/>
2) propagated value inside components.dataUtilities.properties
wt.services/svc/default/com.ptc.core.components.descriptor.DataUtility/ETSDataUtility/java.lang.Object/0=ext.elica.doc.datautility.ETSDataUtility/duplicate
3) java class portion
package ext.elica.doc.datautility;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
import wt.iba.value.IBAHolder;
import wt.method.RemoteAccess;
import wt.util.WTException;
import wt.util.WTRuntimeException;
import com.ptc.core.components.descriptor.ModelContext;
import com.ptc.core.components.factory.AbstractDataUtility;
import com.ptc.core.components.factory.dataUtilities.DefaultDataUtility;
import com.ptc.core.components.rendering.guicomponents.ComboBox;
import com.ptc.core.meta.common.AttributeIdentifier;
import com.ptc.core.meta.type.common.impl.DefaultTypeInstance;
import ext.elica.utils.ElicaUtils;
public class ETSDataUtility extends AbstractDataUtility implements RemoteAccess{
...
public Object getDataValue(String componentName, Object obj, ModelContext modelcontext) throws WTException {
ComboBox comboBox = new ComboBox();
comboBox.setRequired(true);
...
return comboBox;
}
}
4) image of type and attribute manager
5) image of create doc wizard
6) image of Available attributes
Additional notes:
a) I have put a breakpoint to debug my datautility class, but it doesn't break
b) i used Available Attributes report (Client customization - Tools), but I cant see my custom attributes (there are currently 30 objects, same as OOTB WTDocument)
c) i created all IBAs and linked only to my soft type
d) I have specified the dataUtility ID in 3 layouts: Default, Create, Edit
Thanks and let me know if further info needs

