cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

How to remove the user picker requirement

OnurNalbantoglu
14-Alexandrite

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

ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

2 REPLIES 2

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.

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

Announcements


Top Tags