3 Replies Latest reply on Jul 13, 2019 8:48 AM by Timo Hahn

    How to setrequired in If statement

    3803247

      I have the requirement to set required (FALSE) or TRUE in  the logic used in IF STATEMENT.

       

      I need the logic like if reuired NO and equals MINIMUM_ORDER which returs below code

       

      Expected:

       

      IF((MINIMUM_ORDER_QUANTITY) and setrequired(FALSE))

      {

        if(bValue.equals("0"))

               {

                 throw new OAException("It should be positive Integer",OAException.ERROR);

               }

      ------------------------------------------------------------------------------------------------------------------------

               if("MINIMUM_ORDER_QUANTITY".equals(aValue))

               {

             if(bValue.equals("0"))

               {

                 throw new OAException("It should be positive Integer",OAException.ERROR);

               }

               }