Thursday, May 5, 2011

ADF BC : Throwing Dynamic Exception Message in Groovy

 

As we know we can use Failure Handling tab in validation to show error message.

However , my requirement is to show message based like error or warning or any different message in logic , so I have to go ahead with groovy coding.

I wrote two statement.

adf.error.warn("warning not error")

adf.error.raise("error not warning");

image

Here there is only one if statement there can be multiple if else if logic ,so we can throw the message as per logic.

I gave less salary and it throwed else exception.

image

No comments:

Post a Comment