Versions Compared

Key

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

Question

Can an alert (yellowAlert, redAlert, criticalAlert) be added to a header level element?

...

hiddentrue

...

Answer

It is possible to make an alert on the Quote Header. A code sample:

Code Block
languagegroovy
quoteProcessor.addOrUpdateOutput([
        "resultName"  : "OverallMargin",
        "resultLabel" : "Overall Margin",
        "result"      : 0.13,
        "formatType"  : FieldFormatType.MONEY_EUR,
        "resultType"  : CalculationResultType.SIMPLE,
        "alertType"   : "CRITICAL",
        "alertMessage": "Details about the problem",
])