# 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](https://docs.servoy.com/reference/servoycore/dev-api/database-manager/jsrecordmarkers), which manages validation states and aggregates multiple `JSRecordMarker` instances for broader reporting and validation workflows.

## Reference

## Properties Summarized

| Type                                                                   | Name                          | Summary                                                                                  |
| ---------------------------------------------------------------------- | ----------------------------- | ---------------------------------------------------------------------------------------- |
| [Object](/reference/servoycore/dev-api/js-lib/object.md)               | [customObject](#customobject) | The custom object the users did give the the JSRecordMarkers.                            |
| [String](/reference/servoycore/dev-api/js-lib/string.md)               | [dataprovider](#dataprovider) | The column of this record where this problem is reported for.                            |
| [String](/reference/servoycore/dev-api/js-lib/string.md)               | [i18NMessage](#i18nmessage)   | The the resolved i19n message if the message was an i18n key.                            |
| [Number](/reference/servoycore/dev-api/js-lib/number.md)               | [level](#level)               | The LOGGINGLEVEL the users did give the the JSRecordMarkers.                             |
| [String](/reference/servoycore/dev-api/js-lib/string.md)               | [message](#message)           | The message of this problem, can be a i18n key, see getI18NMessage() for a resolved one. |
| [JSRecord](/reference/servoycore/dev-api/database-manager/jsrecord.md) | [record](#record)             | The record for which this problem is generated.                                          |

## Properties Detailed

### customObject

The custom object the users did give the the JSRecordMarkers.report() method.

**Type**\
[Object](/reference/servoycore/dev-api/js-lib/object.md) the customObject

### dataprovider

The column of this record where this problem is reported for.

**Type**\
[String](/reference/servoycore/dev-api/js-lib/string.md) the column

### i18NMessage

The the resolved i19n message if the message was an i18n key.

**Type**\
[String](/reference/servoycore/dev-api/js-lib/string.md) the resolved message

### level

The LOGGINGLEVEL the users did give the the JSRecordMarkers.report() method.

**Type**\
[Number](/reference/servoycore/dev-api/js-lib/number.md) the level

### message

The message of this problem, can be a i18n key, see getI18NMessage() for a resolved one.

**Type**\
[String](/reference/servoycore/dev-api/js-lib/string.md) the message

### record

The record for which this problem is generated.

**Type**\
[JSRecord](/reference/servoycore/dev-api/database-manager/jsrecord.md) the record

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.servoy.com/reference/servoycore/dev-api/database-manager/jsrecordmarker.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
