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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

How to make IBAs as mandatory programmatically?

ash
10-Marble
10-Marble

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
13-Aquamarine
(To:ash)

You can write a validator extending DefaultUIComponentValidator or write a datautility

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
12-Amethyst
12-Amethyst
(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

Announcements

Top Tags