EBS Customizations (MOSC)

MOSC Banner

OAException.ERROR in extended controller class is not stopping the execution flow in OAF

edited Jan 24, 2020 12:48PM in EBS Customizations (MOSC) 1 commentAnswered

Hi All,

             I am trying the extend the controller to add some custom validation logic and through an error to stop the flow. I can see the validation message but page flow is not stopping. Please let me know why it is not working? You can find below the code I wrote in extended controller class.

    public void processFormRequest(final OAPageContext oaPageContext, final OAWebBean oaWebBean)

    {

      super.processFormRequest(oaPageContext, oaWebBean);

        final OAApplicationModule applicationModule = oaPageContext.getApplicationModule(oaWebBean);

        String username = oaPageContext.getUserName();

        if (!"SYSADMIN".equals(username))

        {

          final OAMessageDateFieldBean oaMessageDateFieldBean = (OAMessageDateFieldBean)oaWebBean.findIndexedChildRecursive("NRRERStartDate");

          final OAMessageDateFieldBean oaMessageDateFieldBean2 = (OAMessageDateFieldBean)oaWebBean.findIndexedChildRecursive("NRREREndDate");

          String parameter3 = null;

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center