psdi.app.common

Class FldCommonActualDate

  • All Implemented Interfaces:
    MboConstants, MboValueListener
    Direct Known Subclasses:
    FldMatUseTransActualDate


    public class FldCommonActualDate
    extends MboValueAdapter
    Common Validation Class for: FldCommonActualDate Sets the financial period attribute using this date. Will throw an exception in validation if no valid fin. period corresponds to this date. Since this type of attribute is usually set in the mbo's add() method, you'll want to catch the exception and this field, as in the following code fragment.
            // EnterDate is set with validation so Fin.Period is filled.
            try {
                    setValue("EnterDate", transDate, NOACCESSCHECK);
            } 
            catch (MXException mxe) 
            {
                    if (mxe.getErrorGroup().equalsIgnoreCase("common") &&
                            mxe.getErrorGroup().equalsIgnoreCase("NotValidActualDate"))
                    {
                            // could find a valid fin. period
                            // clear the field and let the user figure it out
                            setValueNull("EnterDate", NOACCESSCHECK) ;
                    }
                    else
                    {
                            // don't recognize this error, pass it up.
                            throw mxe;
                    }
            }
     
    • Constructor Detail

      • FldCommonActualDate

        public FldCommonActualDate(MboValue mbv,
                                   java.lang.String fpName)
        Construct and attach to the mbo value
        Parameters:
        mbv -
        fpName - The name of the finanical period attribute.
      • FldCommonActualDate

        public FldCommonActualDate(MboValue mbv)
        This constructor assumes the name of the financial period attribute is FinancialPeriod.