Child pages
  • JSRecordMarkers
Skip to end of metadata
Go to start of metadata

Refresh page Apr 06, 2024 23:03

Supported Clients
SmartClient WebClient NGClient

Property Summary
Boolean hasErrors
Boolean onBeforeInsertFailed
Boolean onBeforeUpdateFailed
JSRecord record The record for which this JSRecordMarkers is for.

Methods Summary
Array getGenericExceptions() Returns a list of all the generic exceptions that did happen when the various methods where called.
Array getMarkers() This returns all the problems found when validation the record.
Array getMarkers(level) This returns the problems found when validation the record filtered by the given level
void report(message) Create a new JSMarker by reporting a message, this message can be an i18n key (should then start with 'i18n') Optionally you can give a dataprovider for which this marker is reported, a LOGGINGLEVEL for this marker, some custom javascript object for later use and a array of message keys if the message was an i18n key with variables.
void report(message, dataprovider) Create a new JSMarker by reporting a message, this message can be an i18n key (should then start with 'i18n') Optionally you can give a dataprovider for which this marker is reported, a LOGGINGLEVEL for this marker, some custom javascript object for later use and a array of message keys if the message was an i18n key with variables.
void report(message, dataprovider, level) Create a new JSMarker by reporting a message, this message can be an i18n key (should then start with 'i18n') Optionally you can give a dataprovider for which this marker is reported, a LOGGINGLEVEL for this marker, some custom javascript object for later use and a array of message keys if the message was an i18n key with variables.
void report(message, dataprovider, level, customObject) Create a new JSMarker by reporting a message, this message can be an i18n key (should then start with 'i18n') Optionally you can give a dataprovider for which this marker is reported, a LOGGINGLEVEL for this marker, some custom javascript object for later use and a array of message keys if the message was an i18n key with variables.
void report(message, dataprovider, level, customObject, messageKeyParams) Create a new JSMarker by reporting a message, this message can be an i18n key (should then start with 'i18n') Optionally you can give a dataprovider for which this marker is reported, a LOGGINGLEVEL for this marker, some custom javascript object for later use and a array of message keys if the message was an i18n key with variables.

Property Details

hasErrors

Returns

Boolean If this validation object has errors or only warnings which don't block the save.

Supported Clients

SmartClient,WebClient,NGClient

Sample

 

onBeforeInsertFailed

Returns

Boolean the onBeforeInsertFailed

Supported Clients

SmartClient,WebClient,NGClient

Sample

 

onBeforeUpdateFailed

Returns

Boolean the onBeforeUpdateFailed

Supported Clients

SmartClient,WebClient,NGClient

Sample

 

record

The record for which this JSRecordMarkers is for.

Returns

JSRecord the record

Supported Clients

SmartClient,WebClient,NGClient

Sample

 

Methods Details

getGenericExceptions()

Returns a list of all the generic exceptions that did happen when the various methods where called.

Returns

Array the genericExceptions

Supported Clients

SmartClient,WebClient,NGClient

Sample

 

getMarkers()

This returns all the problems found when validation the record.

Returns

Array all the problems that where reported by a report() call.

Supported Clients

SmartClient,WebClient,NGClient

Sample

 

getMarkers(level)

This returns the problems found when validation the record filtered by the given level

Parameters

Number level a level of a marker that should be returned.

Returns

Array all the problems that where reported by a report() call.

Supported Clients

SmartClient,WebClient,NGClient

Sample

 

report(message)

Create a new JSMarker by reporting a message, this message can be an i18n key (should then start with 'i18n')
Optionally you can give a dataprovider for which this marker is reported, a LOGGINGLEVEL for this marker, some custom javascript object for later use
and a array of message keys if the message was an i18n key with variables.

Parameters

String message The message (can be i18n)

Supported Clients

SmartClient,WebClient,NGClient

Sample

 

report(message, dataprovider)

Create a new JSMarker by reporting a message, this message can be an i18n key (should then start with 'i18n')
Optionally you can give a dataprovider for which this marker is reported, a LOGGINGLEVEL for this marker, some custom javascript object for later use
and a array of message keys if the message was an i18n key with variables.

Parameters

String message The message (can be i18n)
String dataprovider The dataprovider for which this marker is for.

Supported Clients

SmartClient,WebClient,NGClient

Sample

 

report(message, dataprovider, level)

Create a new JSMarker by reporting a message, this message can be an i18n key (should then start with 'i18n')
Optionally you can give a dataprovider for which this marker is reported, a LOGGINGLEVEL for this marker, some custom javascript object for later use
and a array of message keys if the message was an i18n key with variables.

Parameters

String message The message (can be i18n)
String dataprovider The dataprovider for which this marker is for.
Number level The LOGGINGLEVEL like ERROR or WARNING

Supported Clients

SmartClient,WebClient,NGClient

Sample

 

report(message, dataprovider, level, customObject)

Create a new JSMarker by reporting a message, this message can be an i18n key (should then start with 'i18n')
Optionally you can give a dataprovider for which this marker is reported, a LOGGINGLEVEL for this marker, some custom javascript object for later use
and a array of message keys if the message was an i18n key with variables.

Parameters

String message The message (can be i18n)
String dataprovider The dataprovider for which this marker is for.
Number level The LOGGINGLEVEL like ERROR or WARNING
Object customObject A custom object is default the customObject of the validate() call.

Supported Clients

SmartClient,WebClient,NGClient

Sample

 

report(message, dataprovider, level, customObject, messageKeyParams)

Create a new JSMarker by reporting a message, this message can be an i18n key (should then start with 'i18n')
Optionally you can give a dataprovider for which this marker is reported, a LOGGINGLEVEL for this marker, some custom javascript object for later use
and a array of message keys if the message was an i18n key with variables.

Parameters

String message The message (can be i18n)
String dataprovider The dataprovider for which this marker is for.
Number level The LOGGINGLEVEL like ERROR or WARNING
Object customObject A custom object is default the customObject of the validate() call.
Array messageKeyParams Some variables if he message is an i18n key that has place holders.

Supported Clients

SmartClient,WebClient,NGClient

Sample

 

  • No labels