Can an alert be added to a header level element?
Question
Can an alert (yellowAlert, redAlert, criticalAlert) be added to a header level element?
Answer
It is possible to make an alert on the Quote Header. A code sample:
quoteProcessor.addOrUpdateOutput([
"resultName" : "OverallMargin",
"resultLabel" : "Overall Margin",
"result" : 0.13,
"formatType" : FieldFormatType.MONEY_EUR,
"resultType" : CalculationResultType.SIMPLE,
"alertType" : "CRITICAL",
"alertMessage": "Details about the problem",
])
When I’ve used YELLOW or RED alertType in the quote header output, everything is OK, alerts are displayed and I’m able to recalculate the quote. But if I use CRITICAL alert type, quote cannot be recalculate anymore, because system is alerting that “required field” is missing… But it’s output, not input. Something is wrong here.