Showing Warning Message from Model Layer in ADF
Hi Friends,
First of All Wish you all a very very Happy New Year 2015. Hope this year will bring plenty of love, joy and happiness in your life.
In Today's post I am going to show you that how you can show the warning message from model layer in ADF.
We usually use "throw new JboException()" to show any kind of error in model layer. But what if we have to show warning message from model.
It is very simple and very few line of code that you need to embed in your code.
The code is as follow:
JboWarning jboWarn = new JboException("You warning message here");
First of All Wish you all a very very Happy New Year 2015. Hope this year will bring plenty of love, joy and happiness in your life.
In Today's post I am going to show you that how you can show the warning message from model layer in ADF.
We usually use "throw new JboException()" to show any kind of error in model layer. But what if we have to show warning message from model.
It is very simple and very few line of code that you need to embed in your code.
The code is as follow:
JboWarning jboWarn = new JboException("You warning message here");
jboWarn.setSeverity( JboWarning.SEVERITY_WARNING);
getDBTransaction().addWarning( jboWarn);
getDBTransaction().addWarning(
Kunal,
ReplyDeleteIf I do this,the popup that shows the warning message has a ERROR title.Is that how it was for you? Or did you get the popup title as WARNING ?