0

If I add InfoPath from Infopath Designer its blocked me all the Modal Dialog fired from Event Receiver. I want to edit InfoPath form to don't block My Sharepoint Modal Dialog. Now no one dialog boxed fired from Event Receiver. If I have got a Default form without InfoPath, the dialog boxes are firing when it's caught an Error.

Here Is my code of setting Dialog Boxes in Event Receiver:

          if (dzienStart > dzienStop)
           {
               properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl;
               properties.RedirectUrl = "/_layouts/Add4/OutOfRange.aspx";
               properties.ErrorMessage = "You cannot save this list item at this time";


               return;
           }

Now after error raises it's clearing me Infopath form, and no dialog shown.

1
  • Why I cant stop after sending data and rises the error from Event Receiver
    – Grzegorz Z
    Commented Dec 27, 2012 at 15:13

1 Answer 1

0

I believe I answered this your question in my replies to your questions:

In other words, if you do not want to create-maintain your own alternatives to Sharepoint and Infopath and/or to hack-override-subvert their intended usage with all consequences of development&maintenance horrors, you should first acquaint yourself with their principles and follow them instead of trying to insistingly trying to hack and subvert them.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.