I have a date range that must be populated (From before To Date). I would like to highlight both date fields when reporting the message. HOw do I do this?
Right now my code is....
if (compareResult > 0)
{
// From Date is After To Date - INVALID
msgMgr.reportContextAttributeMessage(wdContext.nodeDateRange().getCurrentElement(),wdContext.nodeDateRange().getNodeInfo().getAttribute("FromDate"),
IMessageAttendTrackGroupReportComp.DATE__ERROR__FROM_AFTER_TO, new Object[] {}, true);
msgMgr.reportContextAttributeMessage(wdContext.nodeDateRange().getCurrentElement(),wdContext.nodeDateRange().getNodeInfo().getAttribute("ToDate"),
IMessageAttendTrackGroupReportComp.DATE__ERROR__FROM_AFTER_TO, new Object[] {}, true);
returnValue = false;
}
which reports the message in the message box twice - not what I want