Hi @MV_10441462
You need to extend the PrimaryAttachmentPropertiesDataUtility.class
then you need to generate standard DataValue from that class and in the end you generate own GuiComponent and add it to the final GuiArrayComponent.
Example of code is here
public class MultiComponentDataUtility extends PrimaryAttachmentPropertiesDataUtility //AssignmentsTableNmActionsDataUtility
{
public Object getDataValue(String component_id, Object obj, ModelContext modelContext) throws WTException
{
// create original Component
GUIComponentArray retObject = (GUIComponentArray) super.getDataValue(component_id, obj, modelContext);
//example of menuaction from Workflow table so generate own nmAction used in the wf table
AssignmentsTableNmActionsDataUtility actionDataUtility = new AssignmentsTableNmActionsDataUtility();
NmAction nmAction = (NmAction) actionDataUtility.getDataValue(component_id, obj, modelContext);
// crate new NmActionGuiComponent from nmAction that allows to add it to the GUIComponentArray
NmActionGuiComponent nmActionGuiComponent = new NmActionGuiComponent(nmAction);
// adding own custom NmActionGuiComponent to the finall array
retObject.addGUIComponent(nmActionGuiComponent);
return retObject;
}
}
also do not forget to redefine the DataUtility in the enterprise.dataUtilities.properties to set your own custom datautility Class for primaryAttachmentProperties selector
PetrH