Question
Call DataUtility uder Text box that is rendered by Table builder
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;
}

