|
Home > Archive > Microsoft Content Management Server > May 2005 > Error Details for FailedSubmit
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Error Details for FailedSubmit
|
|
| David McCrory 2005-05-24, 8:48 pm |
| I have created an event handler for CmsPosting_Submitting. If one of our
business rules is not met, I cancel the submission by setting the
ChangingEventArgs.Cancel property to true. The user sees an error inside the
web author console indicating that:
Submit Failed
--------------------------------------------------------------------------------
Error Details:
Update operation cancelled. The current modifier method or property set has
been cancelled by a custom event handler.
How can I set the Error Details message to be something more informative for
the user?
Thanks,
-Dave McCrory
| |
| Stefan [MSFT] 2005-05-25, 7:48 am |
| Hi David,
sounds that you have a workflow event implemented that sets e.Cancel = true.
Please verify your code.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"David McCrory" <David McCrory@discussions.microsoft.com> wrote in message
news:CFF8A10B-75AA-4AB3-8E0E-9531AEFAB202@microsoft.com...
>I have created an event handler for CmsPosting_Submitting. If one of our
> business rules is not met, I cancel the submission by setting the
> ChangingEventArgs.Cancel property to true. The user sees an error inside
> the
> web author console indicating that:
>
> Submit Failed
> --------------------------------------------------------------------------------
> Error Details:
> Update operation cancelled. The current modifier method or property set
> has
> been cancelled by a custom event handler.
>
> How can I set the Error Details message to be something more informative
> for
> the user?
>
> Thanks,
>
> -Dave McCrory
| |
| David McCrory 2005-05-25, 6:00 pm |
| Yes. The code looks something like this. I'm looking to bubble up the
reason for the cancellation to the "Error Details" section Web Author Console
public void CmsPosting_Submitting(Object sender, ChangingEventArgs e)
{
Posting CurrentPosting = (Posting)e.Target;
int ScanResult = FileScan(CurrentPosting);
if (ScanResult == 1)
{
e.Cancel = true;
//Somehow set the Error Details of the cancellation so
//the user knows why the submit failed.
}
}
"Stefan [MSFT]" wrote:
> Hi David,
>
> sounds that you have a workflow event implemented that sets e.Cancel = true.
> Please verify your code.
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
> ----------------------
>
>
> "David McCrory" <David McCrory@discussions.microsoft.com> wrote in message
> news:CFF8A10B-75AA-4AB3-8E0E-9531AEFAB202@microsoft.com...
>
>
>
| |
| Stefan [MSFT] 2005-05-25, 6:00 pm |
| Then this is as expected.
You can use the SuppressExceptionOnCancel property to prefent the error from
showing up.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"David McCrory" <DavidMcCrory@discussions.microsoft.com> wrote in message
news:978F7D66-C36B-4C49-92A3-EFF71FB66AA9@microsoft.com...[vbcol=seagreen]
> Yes. The code looks something like this. I'm looking to bubble up the
> reason for the cancellation to the "Error Details" section Web Author
> Console
>
> public void CmsPosting_Submitting(Object sender, ChangingEventArgs e)
> {
> Posting CurrentPosting = (Posting)e.Target;
> int ScanResult = FileScan(CurrentPosting);
>
> if (ScanResult == 1)
> {
> e.Cancel = true;
> //Somehow set the Error Details of the cancellation so
> //the user knows why the submit failed.
> }
> }
>
>
> "Stefan [MSFT]" wrote:
>
|
|
|
|
|