Skip to main content
Sep 9, 2022 12:48 PM UTC
Solved

How to remove the user picker requirement

In Windchill, I can't leave the new fields I created blank, it has made it mandatory to be filled automatically. How to remove the user picker requirement

BenLoosliAnswer
Sep 13, 2022 8:09 PM UTC

The requirement for picking items in an entry form in Windchill is controlled by the OIR for that object. You will need to redefine the OIR so it does not require an entry for your fields or populate those fields with an auto-generated number or a fixed value.

2 replies

BenLoosliAnswer
Sep 13, 2022 8:09 PM UTC

The requirement for picking items in an entry form in Windchill is controlled by the OIR for that object. You will need to redefine the OIR so it does not require an entry for your fields or populate those fields with an auto-generated number or a fixed value.

Sep 14, 2022 9:18 AM UTC

I noticed a code for this in the build part, I fixed it.

 

I added the following to the xml file, changed the "true" part to "false" and it was fixed.

 

               void setRequired(String component_id, Object object, PickerInputComponent pickerComponent, ModelContext mc) throws WTException {

                              boolean isRequired = true;

                              pickerComponent.setRequired(isRequired); m