SetDefaultPrior
Mon 01 January 2018Syntax
SetDefaultPrior([recordname.]fieldname)
Description
Use the SetDefaultPrior function to locate the prior occurrence of the recordname.fieldname with the prior effective date (and effective-sequence number if specified), then set the field to a blank value, so that the next time default processing is run this field will be set to its default value, as specified by the record definition, or one set programmatically by PeopleCode located in a FieldDefault event. If neither of these defaults exist, the Component Processor leaves the field blank.
SetDefaultPrior is typically used to reset values within a scroll which are calculated within FieldDefault PeopleCode based on a next value.
This function is valid only for effective-dated records. If a prior record does not exist, then the statement is skipped.