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
Comments
Thank you Ralph,
So warning is not possible in the top middle in the Web UI. If i develop an attribute customization validator, will users get this warning icon after a save, pls ?
No, cite:
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.
Hi Ralph,
I have done some experiments:
- With a java based attribute customization validators plugin, i am not able to display any icon in front of the attribute (returning either a warning or an error) on the WebUI.
- If i raise an error with this attribute customization validators plugin, the message is displayed in the top middle of the UI (like in Advisor or FollowUp plugin). But error prevents save to complete. I really need a warning instead.
- Displaying icons with a message in front of the attribute works using javascript API but this API is too limited for my need.
I have reached the conclusion that i am not able to display a warning in the WebUI using a server plugin.
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/