on 06-02-2008 8:44 PM
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
There is no possibility to display one error message by highlighting more than one field.
Cheers,
~kranthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Diane,
Unfortunately you can't report two same messages for context attribute, but see only one.
One of the features of displayed message is that you can click on it and navigate to the errorneous element, e.g. input field.
It is impossible to use one link to navigate to two element simultaneously
But in your case if you are reporting the message "From date is after to date" you may highlight only From date.
Best regards
Ivan Dulko
Edited by: Ivan Dulko on Jun 2, 2008 11:42 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.