Skip to main content
1-Visitor
February 25, 2017
Question

How to make IBAs as mandatory programmatically?

  • February 25, 2017
  • 1 reply
  • 1648 views

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.

1 reply

1-Visitor
February 27, 2017

You can write a validator extending DefaultUIComponentValidator or write a datautility

ash1-VisitorAuthor
1-Visitor
February 28, 2017

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

12-Amethyst
March 1, 2017

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