Hi @SK_12337814
1.Create the action for your panel builder and define the component in the action.
2.Define the submodel for the custom tab in the custom-actionModels.xml under your object specific model. and add the custom action created in step 1.
3.Create the required attribute(bat,ball,team) in type and attribute management
3. Refer this MVC attribute panel builder and update to your requirement
public class customAttributePanel extends AbstractComponentBuilder {
public Object buildComponentData(ComponentConfig paramComponentConfig,
ComponentParams paramComponentParams) throws WTException {
NmHelperBean localNmHelperBean = ((JcaComponentParams) paramComponentParams)
.getHelperBean();
NmCommandBean cb = localNmHelperBean.getNmCommandBean();
Persistable persistable = (Persistable) cb.getPrimaryOid().getRef();
return persistable;
}
public ComponentConfig buildComponentConfig(
ComponentParams paramComponentParams) throws WTException {
//tableconfig.setShowCount(true);
//tableconfig.setRowBasedObjectHandle(true);
ComponentConfigFactory localComponentConfigFactory = getComponentConfigFactory();
AttributePanelConfig localAttributePanelConfig = localComponentConfigFactory
.newAttributePanelConfig();
localAttributePanelConfig.setComponentType(ComponentType.INFO_ATTRIBUTES_TABLE);
localAttributePanelConfig.setLabel(" ");
JcaGroupConfig localJcaGroupConfig = (JcaGroupConfig) localComponentConfigFactory
.newGroupConfig();
localJcaGroupConfig.setId("CustomAttributes");
localJcaGroupConfig.setLabel("DEMO");
JcaAttributeConfig localJcaAttributeConfig2 = (JcaAttributeConfig) localComponentConfigFactory
.newAttributeConfig();
localJcaAttributeConfig2
.setLabel("BAT");
localJcaAttributeConfig2.setId("BAT");
localJcaGroupConfig.addComponent(localJcaAttributeConfig2);
localJcaAttributeConfig2 = (JcaAttributeConfig) localComponentConfigFactory
.newAttributeConfig();
localJcaAttributeConfig2
.setLabel("BALL");
localJcaAttributeConfig2.setId("BALL");
localJcaGroupConfig.addComponent(localJcaAttributeConfig2);
localJcaAttributeConfig2 = (JcaAttributeConfig) localComponentConfigFactory
.newAttributeConfig();
localJcaAttributeConfig2
.setLabel("Team");
localJcaAttributeConfig2.setId("Team");
localJcaGroupConfig.addComponent(localJcaAttributeConfig2);
localAttributePanelConfig.addComponent(localJcaGroupConfig);
return localAttributePanelConfig;
}