public class FldCommonFinishDate extends MboValueAdapter
MXServer.getMXServer().getDate()
and finish date
is set using the date/time lookup (it will be set to 12:15:00 if the TPAE system property
setting.DISPLAYTIME does not include seconds) in the same minute, validation will fail. This
class evaluates if start date is greater than finish date and start date (with SECONDS and MILLISECONDS set to zero)
equals finish date (with SECONDS and MILLISECONDS already at zero due to the exclusion of SECONDS in setting.DISPLAYTIME
format that is used by the date/time lookup). If the start date with zeroed SECONDS and MILLISECONDS is equal to the
finish date, then the finish date is set equal to the finish date. As a result, validation will succeed.
This can occur in Quick Reporting or in any application with start/finish date combinations if the system date/time is
used as a default value to set the start date and the date/time lookup is used to set the corresponding finish date
within the same minute unless setting.DISPLAYTIME is configured to include seconds (for example,
setting.DISPLAYTIME = HH:mm:ss. If setting.DISPLAYTIME is set to include seconds, all TPAE date/time fields will display
seconds in the UI because this is a sytem setting).mboValue
TYPE_DOMAIN, TYPE_FIELDCLASS, TYPE_KEY, TYPE_UNKNOWN
ALLROWS, 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 |
---|
FldCommonFinishDate(MboValue mbv)
constructs and attaches to the MboValue.
|
Modifier and Type | Method and Description |
---|---|
boolean |
resolveServerStartVSZeroSecondsFinish()
If the start date with zeroed SECONDS and MILLISECONDS is equal to the
finish date, then the finish date is set equal to the finish date.
|
action, getAppLink, getIntegrationService, getList, getLookupName, getMatchingAttr, getMatchingAttr, getMboValue, getMboValue, getType, hasList, init, initValue, setType, setValueFromLookup, smartFill, smartFind, smartFind, validate
public FldCommonFinishDate(MboValue mbv)
mbv
- MboValue to which the specified attribute attaches.public boolean resolveServerStartVSZeroSecondsFinish() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException