send mail - How to Switch View and Send the 'new' View out.

W

wuki2000

Hi,
I have a form with 2 views:
a. request view
b. approval view

The process is that after a person has done with the request, he/she will
press a button to send it out via email for approval. Before the 'send', I'd
like to switch the request view to approval view, with most of the fields set
as 'Read-only'.
I used the Rules of that button to switch view. Then, I used "Submit using
data connection" to send the approval view via email as attachment. All
these steps are under 1 Rule. Unfortunately, it does not work. Is there any
step I missed or mis-used?
Regards,
wuki2000
 
F

Franck Dauché

Hi,

If you added a button on your form, why don't you use code behind to do this?

Regards,

Franck Dauché
 
W

wuki2000

Thanks, Franck.
I took your advice and wrote some codes. Since I am very new to InfoPath, I
hope you don't mind if I ask one more question.

I used "objEmail = Application.ActiveWindow.MailEnvelope;" to define this
particular view. When the mail gets out, the body consists of this view with
no problem. However, the attachment is the entire form, containing other
views that I do not want the receipients to get. Is there a way to eliminate
the attachment? or only to attach this 'ActiveWindow'?

Thanks for your help in advance.
Regards,
wuki2000
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top