Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
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.
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.
Can you suggest which API to use in place of SOP("Make things mandatory") ?
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