Displaying a warning message on RTC WebUI
I would like to display a warning message if some conditions on a workitem are not fullfilled.
I have wrote an "operationParticipant" plugin on Save operation but the message is not displayed. If i raise the severity to error, the message is displayed but... the workitem is not saved. I was not expecting this behaviour for followup action.
Is there a way to display a warning message using IReportInfo ? If no, would an attribute validation plugin could do the job on the WebUI client ?
Accepted answer
As far as I can tell, there is no way to create custom messages in the UI other than
1. Using attribute customization validators. The warning/error messages only show as icon in front of the attribute. Only errors prevent saving and the error message shows the attribute that fails as far as I remember.
2. Advisors - are custom Java extensions that act as preconditions to govern the process. The error message happens on save and shows in the UI. Code is pretty much similar to follow up actions, except the class to return the information to the UI thread.
3. Follow up action/participants can also prevent saving and show an error the same way.
The error is shown in the Web UI in the top middle section. In the Eclipse and Visual Studio UI, there is a special "Team Advisor" error view that shows these details.