Loading...
 

CX_DESCRIPTIVE_REF::Valid

CX_DESCRIPTIVE_REF::Valid

Description:

This method checks whether the wrapper AND the target object are valid on the date passed. If the date passed is NULL, then the currently set validity date of the system is checked (=ValidToday) - if this is also NULL, then the object is always valid.

Since the target object of the wrapper can again be a wrapper, the validity is checked recursively up to the target object. This is illustrated here.

Code example:
Var(ref, today)
CreateTransObject(CX_DATE) -> today
user WrapObject(DESCRIPTIVE) -> ref
today user Call(Valid) // -> TRUE
today ref Call(Valid) // -> TRUE

"01.01.2000-31.12.2000" ref Put(SpanDateValidity()) // Only valid in year 2000
today ref Call(Valid) // -> FALSE
Stack
Stack Position Object type Brief description
Stack(In) Top CX_DESCRIPTIVE_REF Wrapper
Top 1 CX_DATE Date to be checked
Stack(Out) Top INTEGER TRUE/FALSE
Function call: call(valid)