Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm creating a handler that will cancel the MoveToTrash in certain cases.
When doing save/publish handlers we are able to use this line to send info to the user:
BasePage.Current.ClientTools.ShowSpeechBubble(BasePage.speechBubbleIcon.error, "Error", "This is my message");
But when trying that from the Document.BeforeMoveToTrash event, the BasePage.Current is null.
Is there a way to display the speechbubble from the delete/movetotrash events?
So far, the solution I have come up with is to throw an exception. If the code throws an exception, then the UI will show an error speechbubble, with the exceptions message as the text.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Creating speechbubble from the delete event with clienttools
I'm creating a handler that will cancel the MoveToTrash in certain cases.
When doing save/publish handlers we are able to use this line to send info to the user:
But when trying that from the Document.BeforeMoveToTrash event, the BasePage.Current is null.
Is there a way to display the speechbubble from the delete/movetotrash events?
So far, the solution I have come up with is to throw an exception. If the code throws an exception, then the UI will show an error speechbubble, with the exceptions message as the text.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.