更改电子邮件主题
我正在使用 InfoPath 2007,
我在表单中编写了一些代码,将表单放入电子邮件中。我想更改该电子邮件的主题,以便可以显示一段固定的文本以及其中一个表单字段中的数据结果;
var objEmail;
objEmail = Application.ActiveWindow.MailEnvelope;
objEmail.To = [email protected];
objEmail.Subject = "extras request";
objEmail.Visible = true;
我想更改该行
objEmail.Subject = "extras request";
以包括显示表单字段 labNO 中数据的结果,但我不确定如何操作?
I am using InfoPath 2007
I have some code written in the form that will put a form into an e-mail. I would like to alter the subject of that e-mail so that I can display a fixed piece of text as well as the results from the data in one of the form fields;
var objEmail;
objEmail = Application.ActiveWindow.MailEnvelope;
objEmail.To = [email protected];
objEmail.Subject = "extras request";
objEmail.Visible = true;
I want to alter the line
objEmail.Subject = "extras request";
to include display the results from the data in the form field labNO but I am not sure how ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
变量“xpath”是一个指向 labNO 字段的字符串,即“/my:myFields/my:labNO”。您可以通过右键单击该字段 - 复制 XPath 来复制它。
如果 labNO 字段位于外部数据源中,您可以使用以下内容:
The variable 'xpath' is a string which points to the labNO field i.e. "/my:myFields/my:labNO". You can copy it by right-click'ing the field - Copy XPath.
If the labNO field is within an external DataSource, you'd use this instead: