I have added the following code to an onAction method of a button with the intention of using a record marker to indicate that a user should complete the comments field but nothing shows up on the form
- Code: Select all
if (!foundset.comments || foundset.comments.length == 0) {
var markers = foundset.getSelectedRecord().recordMarkers || foundset.getSelectedRecord().createMarkers();
markers.report(i18nMessage.error.enterComments, 'comments'); //$NON-NLS-1$
}
Have I misunderstood how this should be used?