Hi Johan,
The release notes point to a page about the new validation process (which looks really good BTW!) https://wiki.servoy.com/pages/viewpage. … d=57180253 and on this page there is a section showing how to get and deal with the record markers from a call to databaseManager.validate().
var recordMarkers = databaseManager.validate(record, {originationCall: "customerForm"});
if (recordMarkers)
{
var problems = recordMarkers.getProblems();
problems.forEach(/** @param {JSRecordMarker} problem*/ function(problem) {
application.output(problem.message)
application.output(problem.i18NMessage);
application.output(problem.column);
application.output(problem.customObject);
});
}
It is showing a call to recordMarkers.getProblems() but the text part of the page refers to a method called getMarkers() instead:
If the caller of databaseManager.validate(record) sees that an object is returned it can then call recordMarkers.getMarkers() to get an array of JSRecordMarker.
I guess only one of these is correct?
Thanks
Steve