We do this after validating a document's property and that property is invalid, in order to inform the user that something is wrong.
The problem is that, even though the above code is executed, the Umbraco code that runs after our AfterSave code displays it's own speech bubble, the one that says "Completed" to indicate that the document has been saved. This results in our speech bubble never being displayed at all.
Can someone suggest how we can display a speech bubble that won't be overriden by Umbraco's own calling of speeh bubble please?
It's been almost two years since I last looked at that code (I have left the company where I was working on this particular Umbraco project), so it's unlikely I will revisit this.
Thank you for replying. I did discover that if your code does not catch an exception in the back office, then this will generate a red speech bubble. It only seems to appear when not running in Visual Studio debug mode.
Displaying our speech bubble is overidden by another speech bubble in AfterSave event.
We have code running in a Document->AfterSave event which displays a speech bubble:
We do this after validating a document's property and that property is invalid, in order to inform the user that something is wrong.
The problem is that, even though the above code is executed, the Umbraco code that runs after our AfterSave code displays it's own speech bubble, the one that says "Completed" to indicate that the document has been saved. This results in our speech bubble never being displayed at all.
Can someone suggest how we can display a speech bubble that won't be overriden by Umbraco's own calling of speeh bubble please?
Did you get this to work?
Unfortunately I never did get this to work.
It's been almost two years since I last looked at that code (I have left the company where I was working on this particular Umbraco project), so it's unlikely I will revisit this.
Thanks for asking though, much appreciated :)
Thank you for replying. I did discover that if your code does not catch an exception in the back office, then this will generate a red speech bubble. It only seems to appear when not running in Visual Studio debug mode.
is working on a reply...