public class FldKitQuantity extends MboValueAdapter
mboValueTYPE_DOMAIN, TYPE_FIELDCLASS, TYPE_KEY, TYPE_UNKNOWNALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER| Constructor and Description |
|---|
FldKitQuantity(MboValue mbv) |
| Modifier and Type | Method and Description |
|---|---|
void |
action()
update the quantities of each kit component required as the
user changes the quantity of kits to create.
|
void |
validate()
quantity can not be 0, and quantity cannot exceed
the possible quantity.
|
getAppLink, getIntegrationService, getList, getLookupName, getMatchingAttr, getMatchingAttr, getMboValue, getMboValue, getTranslator, getType, hasList, init, initValue, setType, setValueFromLookup, smartFill, smartFind, smartFindpublic FldKitQuantity(MboValue mbv) throws MXException
MXExceptionpublic void validate()
throws MXException,
java.rmi.RemoteException
validate in interface MboValueListenervalidate in class MboValueAdapterMXApplicationException("inventory","notLessThanOrEqualZero") - when Kit.Quantity
is not greater than zero.MXApplicationException("inventory","kitMakeQtyNotMoreThanPossibleQty") - when assembling
one or more kits, and the Kit.Quantity exceeds the PossibleQuantityMXApplicationException("inventory","kitBreakQtyNotMoreThanCurBal") - when disassembling
one or more kits, and the Kit.Quantity exceeds the Kit.CurBal.MXExceptionjava.rmi.RemoteExceptionKit.getKitAction()public void action()
throws MXException,
java.rmi.RemoteException
action in interface MboValueListeneraction in class MboValueAdapterMXExceptionjava.rmi.RemoteException