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

We are happy to announce the new Windchill Customization board! Learn more.

How to make IBAs as mandatory programmatically?

ash
6-Contributor
6-Contributor

How to make IBAs as mandatory programmatically?

I have some IBAs for example iba1, iba2 & iba3.  My condition is I want to make iba2 & iba3 as required/mandatory only if iba1 value is entered in from the UI. How to I achieve this programmatically? Any APIs? Or Logic? Thanks.

3 REPLIES 3
BineshKumar1
12-Amethyst
(To:ash)

You can write a validator extending DefaultUIComponentValidator or write a datautility

ash
6-Contributor
6-Contributor
(To:BineshKumar1)

I have written a form processor that gets triggered for the IBA. Problem is I don't know about which API to use.

IBA.JPG

Can you suggest which API to use in place of SOP("Make things mandatory") ?

KD
4-Participant
4-Participant
(To:ash)

Hi Anjali,

Similarly check the value of IBA 2 and IBA3 and if its null or empty you can throw a WTException with error message like "IBA2 and IBA3 values can't be empty".

It will show the message to user as a pop up and stop the operation.

Will suggest to do it in preProcess or in doOperation rather than PostProcess.

And if IBA1 is a dropdown list instead of text box then you can achieve it through conditioned required constraint from Type and Attribute manager. (Configuration)

Regards,

Kaushik

Top Tags