Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hi Bhagirath,
You can extend com/ptc/windchill/enterprise/change2/dataUtilities/ChangeNoticeTypePickerDataUtility.java and override the getDataValue method. Just check if the object returned is of type com.ptc.core.components.rendering.guicomponents.ComboBox and if so set it as required using setRequired method.
Out of the box, this class is registered in codebase/com/ptc/windchill/enterprise/change2/ChangeManagement-components.dataUtilities.properties.xconf
Let me know if this helps.
Regards,
Bhushan
This action is available only to Administrators. You start in the Templates for a Product/Library/Org/Site.
Hi Bhagirath,
You can extend com/ptc/windchill/enterprise/change2/dataUtilities/ChangeNoticeTypePickerDataUtility.java and override the getDataValue method. Just check if the object returned is of type com.ptc.core.components.rendering.guicomponents.ComboBox and if so set it as required using setRequired method.
Out of the box, this class is registered in codebase/com/ptc/windchill/enterprise/change2/ChangeManagement-components.dataUtilities.properties.xconf
Let me know if this helps.
Regards,
Bhushan
Hi Bhushan,
Thanks much for your info. Following the above instructions I made the template field as required field.
We have two organizations in the system, is there way two implement this change for only one organization?
Thanks,
Bhagirath
Hi Bhagirath,
Using the third parameter modelContext in the getDataValue method you can get the commandbean and using the CreateAndEditWizBean you should be able to get the organization name. Refer below example.
com.ptc.netmarkets.util.beans.NmCommandBean commandBean = mc.getNmCommandBean();
com.ptc.core.components.beans.CreateAndEditWizBean.getContainerRef(commandBean).getContainer().getOrganizationName()
Regards,
Bhushan
Hi Bhushan,
Thanks much for your help.
Thanks and Regards,
Bhagirath
sorry for my simplistic answer - I misread the question