Solved
Got multiple objects but only display one on the windchill table.How to display all of them?
@ComponentBuilder({"erp.MaterialModelBuilder"})
public class MaterialModelBuilder extends AbstractComponentBuilder {
@Override
public ComponentConfig buildComponentConfig(ComponentParams componentParams) throws WTException {
ComponentConfigFactory factory = getComponentConfigFactory();
TableConfig tableConfig = factory.newTableConfig();
tableConfig.setId("erp.MaterialModelBuilder");
tableConfig.setLabel("物料数据");
tableConfig.setSelectable(true);
tableConfig.setActionModel("exportlisttofile_submenu");
ColumnConfig o_id = factory.newColumnConfig("o_id", "o_id", true);
o_id.setWidth(100);
tableConfig.addComponent(o_id);
return tableConfig;
}
@Override
public Object buildComponentData(ComponentConfig componentConfig, ComponentParams params) throws Exception {
String number = (String) params.getParameter("part_number");
String erpState = (String) params.getParameter("erp_state");
String fromDate = (String) params.getParameter("fromDate");
String toDate = (String) params.getParameter("toDate");
return getMaterielModel(number, erpState, fromDate, toDate); // getMaterielModel() return a 3 size List
}
Debug:


here is the jsp file



