Displaying a warning message on RTC WebUI
![]() I would like to display a warning message if some conditions on a workitem are not fullfilled.
|
Accepted answer
![]()
Ralph Schoon (62.0k●3●36●43)
| answered May 15 '17, 5:34 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited May 15 '17, 5:36 a.m.
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.
Jérôme de Vivie selected this answer as the correct answer
Comments Thank you Ralph,
No, cite:
Error message location is due to the advisor configured for the validation, shows after the save in the top middle and error and warning icons are shown at the individual attributes.
Hi Ralph,
I have reached the conclusion that i am not able to display a warning in the WebUI using a server plugin.
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Java based attribute customization works exactly the same way the JavaScript attribute customization works. The JavaScript runs in a context derived from that extension point as far as i know. I think I played around with it and it worked for me: https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ |