JSRecordMarker
Overview
The JSRecordMarker
scripting wrapper represents a specific validation failure report for a record during a save operation. It allows detailed reporting of issues tied to particular columns or data in a single record. ## Functionality
The customObject
property stores a user-defined object associated with the record marker, enabling the inclusion of custom metadata. The dataprovider
specifies the column where the issue occurred, providing precise error localization. Message handling includes the message
property, which holds the problem description and can be an internationalization (i18n) key, while the i18NMessage
property resolves the i18n key when applicable.
The level
property indicates the logging level assigned to the record marker, classifying the severity of the issue. The record
property links the marker to the specific record it references, facilitating direct association with the affected data.
This wrapper is closely related to JSRecordMarkers, which manages validation states and aggregates multiple JSRecordMarker
instances for broader reporting and validation workflows.
Reference
Properties Summarized
The message of this problem, can be a i18n key, see getI18NMessage() for a resolved one.
Properties Detailed
customObject
The custom object the users did give the the JSRecordMarkers.report() method.
Type Object the customObject
dataprovider
The column of this record where this problem is reported for.
Type String the column
i18NMessage
The the resolved i19n message if the message was an i18n key.
Type String the resolved message
level
The LOGGINGLEVEL the users did give the the JSRecordMarkers.report() method.
Type Number the level
message
The message of this problem, can be a i18n key, see getI18NMessage() for a resolved one.
Type String the message
record
The record for which this problem is generated.
Type JSRecord the record
Last updated