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");
        jboWarn.setSeverity(JboWarning.SEVERITY_WARNING);
        getDBTransaction().addWarning(jboWarn);

Comments

  1. Kunal,
    If 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 ?

    ReplyDelete

Post a Comment

Popular posts from this blog

Setting up the environment for Angular2 and Hello World Example in Angular2

Showing number of rows or row count on top and bottom of table in ADF.

Build a Simple ReactJS application using react-cli