Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / December 2007

Tip: Looking for answers? Try searching our database.

E-mail Submit Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lee Vance - 27 Dec 2007 13:43 GMT
I've got a button that first publishes to a SharePoint Forms library.  That
park is working.  

Then, the next rule switches the form to a view that just shows some text
and a link to the form.  After that, it is supposed to e-mail the active view
as an e-mail (not as an attachment but as viewable only).  

It does e-mail to the correct e-mail address with the correct subject, but
the e-mail has not contents whatsoever.  If I remove the rule that switches
views and just have it e-mail the active view it does show the current view
in the e-mail.

Now, I do have form rules that switch the view based on the user role, and
the view that's used for the e-mail contents is not in any of those rules.

Am I missing a rule in between the rule that switches views and the one that
e-mails the active view?  Could my role-based rules on form open cause a
conflict with viewing the e-mail contents view?

I don't know what I am doing wrong at this point.  Thanks.
Greg Collins - 27 Dec 2007 22:15 GMT
If I recall correctly, I ran into a similar situation and found the answer
on a Microsoft site (don't recall the URL). The problem was that the view
switch did not generate the actual view before the email was sent, resulting
in a blank email. Their solution was to break the view into two sections --  
one for the entry and one for the email. Rather than switch views, hide the
edit portion and show the email portion, send the email, and then flop the
visibility back to normal. This did solve the problem.

However, if you have multiple views that need to sent the same email view,
you might be able to pull this off using the OnContextChange event handler
in conjunction with the OnSwitchView event handler to note that the view
switched to the email view, then in code, send off the email and switch the
view back.

Good luck!

Signature

Greg Collins
Microsoft MVP
Visit Braintrove at http://www.braintrove.com
Visit InfoPathDev at http://www.infopathdev.com

Lee Vance - 28 Dec 2007 16:42 GMT
Thanks, Greg.  That's working perfectly.

> If I recall correctly, I ran into a similar situation and found the answer
> on a Microsoft site (don't recall the URL). The problem was that the view
[quoted text clipped - 11 lines]
>
> Good luck!
Greg Collins - 28 Dec 2007 21:28 GMT
Great! Glad to have helped out!

Signature

Greg Collins
Microsoft MVP
Visit Braintrove at http://www.braintrove.com
Visit InfoPathDev at http://www.infopathdev.com

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.