如何打开带有预填充值的可编辑,可发送的电子邮件屏幕? [英] How can I open an editable, sendable e-mail screen with prepopoulated values?

查看:68
本文介绍了如何打开带有预填充值的可编辑,可发送的电子邮件屏幕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用已填写的to和from来创建电子邮件。要创建电子邮件,我正在创建CREmailActivityMaint的图形实例。每当我尝试将新对象分配给CREmailActivityMaint.CurrentMessage或CREmailActivityMaint.Message对象以便设置值时,打开的页面均不可编辑,并且发送被隐藏:

a href = https://i.stack.imgur.com/NqwaC.png rel = nofollow noreferrer>



另外,当我输入值时,并非所有值都显示出来。在此,我输入了到,从,主题,摘要和正文,但是正文和摘要什么也不显示。另外,如果我尝试保存,则会收到一条错误消息,指出摘要,收件人和主题为空:

解决方案

  CREmailActivityMaint graph = CreateInstance< CREmailActivityMaint>(); 
graph.Message.Current = graph.Message.Insert();
graph.Message.Current.MailTo = other@test.com;
graph.Message.Current.MailCc = another@test.com;
graph.Message.Current.MailBcc = bcc@test.com;
graph.Message.Current.Subject =主题;
graph.Message.Current.Body =身体;
graph.Message.Cache.IsDirty = false;
PXRedirectHelper.TryRedirect(graph,PXRedirectHelper.WindowMode.NewWindow);


I am trying to create an e-mail with to and from already filled in. To create the e-mail, I'm creating a graph instance of CREmailActivityMaint. Whenever I attempt to assign new objects to the CREmailActivityMaint.CurrentMessage or CREmailActivityMaint.Message objects so that I can set values, the opening page becomes uneditable and Send is hidden:

Also when I enter values, not all of them show. In this, I entered To, From, Subject, Summary, and Body, but Body and Summary show nothing. Also if I attempt to save, I get an error stating that the Summary, To, and Subject are blank:

解决方案

    CREmailActivityMaint graph = CreateInstance<CREmailActivityMaint>();
    graph.Message.Current = graph.Message.Insert();
    graph.Message.Current.MailTo = "other@test.com";
    graph.Message.Current.MailCc = "another@test.com";
    graph.Message.Current.MailBcc = "bcc@test.com";
    graph.Message.Current.Subject = "Subject";
    graph.Message.Current.Body = "Body";
    graph.Message.Cache.IsDirty = false;
    PXRedirectHelper.TryRedirect(graph, PXRedirectHelper.WindowMode.NewWindow);

这篇关于如何打开带有预填充值的可编辑,可发送的电子邮件屏幕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆