Sunday 3 June 2018

oaexception in oaf.Display message in oaf page

oaexception in OAF.Display message in oaf page


OA Exception is used in OAF to display messages in the OAF Pages. OA framework display these messages on the top of the OAF page. We can display warning message in oaf as well as error and information kind of messages too.
 

There are four types of OA messages, we can print/show in the OAF page through oaexception/

1.Error.

2.Confirmation

3.Informations

4.Warning.

 

How to display confirmation message in oaf

Each message Type have their own means. We can display the OAException with the below ways in OAF Page.

 

If you want to show the Warning messages in the OAF page then can you can use this below system in Process Request or Process Form Request.

 

Here below I am taking an Example, When user will click on the Go button , then warning message should be show in the OAF page so for this I am putting this code under ‘ Process Form Request.’

 throw new oaexception syntax


  if(pageContext.getParameter("Go")! =null)

    {

 

      throw new OAException(‘You are entering something wrong’,OAException.WARNING);

 

Or You can also use this below syntax too

OAException msg1 = new OAException(‘You are entering something wrong’,OAException.WARNING);

pageContext.putDialogMessage(Msg1);

 

endif;

 
 

 

 

To Display Error Messages: -

 

  if(pageContext.getParameter("Go")! =null)

    {

 

      throw new OAException(‘You are entering something wrong’,OAException.ERROR);

 

Or You can also use this below syntax too

OAException msg1 = new OAException(‘You are entering something wrong’,OAException.ERROR);

pageContext.putDialogMessage(Msg1);

 

endif;

 

 

The same way you can work for ‘Information’ & ‘confirmation’
 
oaexception in oaf.Display message in oaf page

1 comments:

Anonymous said...

je suis une merde

Post a Comment

Contact us for any Collaboration, Project Support & On Job Support Work

Name

Email *

Message *