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

How to make IBAs as mandatory programmatically?

Highlighted
Regular Member

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.

Tags (1)
3 REPLIES 3
Highlighted

Re: How to make IBAs as mandatory programmatically?

You can write a validator extending DefaultUIComponentValidator or write a datautility

Re: How to make IBAs as mandatory programmatically?

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") ?

Highlighted

Re: How to make IBAs as mandatory programmatically?

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