Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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 Defoult form without InfoPath, the dialog boxes are firing when it's catch a 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.

share|improve this question
    
Why I cant stop after sending data and rises the error from Event Receiver –  Grzegorz Z Dec 27 '12 at 15:13
add comment

1 Answer 1

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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