Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The code below finds all output fields that meet certain criteria and applies the deAbbreviate() APIfunction to them.

Code Block
javascript
javascript
var fields = getOutputFields();
for (var i = 0; i < fields.length; i++) {
  var field = fields[i];
  if (field.className == "A22" && get(field.id).length == 1) {
    deAbbreviate(field.id, ["A", "D", "I"], ["Active", "Deleted", "Inactive"]);
  }
}