Skip to main content
11-Garnet
January 30, 2026
Question

Call DataUtility uder Text box that is rendered by Table builder

  • January 30, 2026
  • 1 reply
  • 412 views

Version: Windchill 13.0

 

Use Case: Call DataUtility uder Text box that is rendered by Table builder


Description:

Call DataUtility uder Text box that is rendered by Table builder.

public Object buildComponentData(ComponentConfig config, ComponentParams params) throws Exception {
 
Map<String, GuiComponent> data = new HashMap<String, GuiComponent>();
GuiComponent comp = new TextBox();
((TextBox) comp).setName("editABC");
((TextBox) comp).setId("editABC");
((TextBox) comp).setRequired(true);
((TextBox) comp).setWidth(30);
data.put("editABC", comp);
LOGGER.trace("***  editABCTableBuilder  buildComponentData OUT");
return data;
}
 
@Override
public ComponentConfig buildComponentConfig(ComponentParams params) throws WTException {
 
ComponentConfigFactory factory = getComponentConfigFactory();
AttributePanelConfig attributePanelConfig = factory.newAttributePanelConfig();
GroupConfig groupConfig1 = factory.newGroupConfig("editABC","Edit ABC", Integer.valueOf(1));
AttributeConfig editABC = factory.newAttributeConfig();
editABC.setId("editABC");
editABC.setLabel("AfterMarket ABC");
editABC.setRequired(true);
groupConfig1.addComponent(editABC);
attributePanelConfig.addComponent(groupConfig1);
LOGGER.trace("*** editABCTableBuilder  buildComponentConfig OUT");
 
return attributePanelConfig;
}

1 reply

16-Pearl
January 30, 2026

Hi @AA_9841156,

I understand that you want to build the Attribute Panel.

Do you want to call a Data Utility on one of the attribute present within the Attribute Panel group?

You can use the following API

editABC.setDataUtilityId("x");

where x represents the selector value used to register the Data Utility.

11-Garnet
January 30, 2026

Hi @TDT .

Actually I am trying to create Attribute Panel in which two thing only .one is label and second i want Textbox in front of that and i want call datautility there.

11-Garnet
January 30, 2026

I tried already editABC.setDataUtilityId("x") but its not hitting dataUtility