|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sage.accpac.sm.crystal.ufl.AbstractAccpacFormulaFunction
com.sage.accpac.sm.crystal.ufl.PwFormatDate
public final class PwFormatDate
PwFormatDate (in the C version the "pw" is lower-case) converts a Sage ERP Accpac date stored as a YYYYMMDD integer into a Crystal Reports date object.
The Crystal arguments to this function are:
A null date (represented by 0) is converted to the Crystal Reports date
object that has the special internal value of DateValue.nullCRDate
.
This is similar to the behavior of the C UFL. Any other invalid date causes
an IllegalArgumentException
. This differs from the behavior of the C
UFL in that we now have the ability to throw an exception instead of just
quietly switching the invalid date to a null date (which is the behavior of
Crystal's CRYearMonthDayToDate, which was called by the C UFL).
Constructor Summary | |
---|---|
PwFormatDate()
|
Method Summary | |
---|---|
com.crystaldecisions.reports.common.value.FormulaValue |
evaluate(com.crystaldecisions.reports.formulas.FormulaValueReference[] arguments)
|
com.crystaldecisions.reports.formulas.FormulaFunctionArgumentDefinition[] |
getArguments()
|
java.lang.String |
getIdentifier()
|
com.crystaldecisions.reports.common.value.FormulaValueType |
getReturnType()
|
Methods inherited from class com.sage.accpac.sm.crystal.ufl.AbstractAccpacFormulaFunction |
---|
getIntegerArgument, getStringArgument, validateArgumentValues |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PwFormatDate()
Method Detail |
---|
public java.lang.String getIdentifier()
public com.crystaldecisions.reports.common.value.FormulaValueType getReturnType()
public com.crystaldecisions.reports.formulas.FormulaFunctionArgumentDefinition[] getArguments()
public com.crystaldecisions.reports.common.value.FormulaValue evaluate(com.crystaldecisions.reports.formulas.FormulaValueReference[] arguments) throws com.crystaldecisions.reports.formulas.FormulaFunctionCallException
com.crystaldecisions.reports.formulas.FormulaFunctionCallException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |