如何在按下一个按钮后先更新,然后发送电子邮件?

huangapple go评论90阅读模式
英文:

how can i update first then send the email with one button?

问题

例如,在模型对话框中,当我更改日期并点击发送电子邮件按钮时。
首先,我需要更新信息,然后运行发送电子邮件的过程。

为了清楚起见,我想给你演示我想要实现的内容。

首先,我打开模型对话框,然后更改一些名称或日期。
然后,我想点击发送电子邮件按钮,发送电子邮件按钮应该先更新信息,然后运行进程(发送电子邮件的过程)。

我尝试了一些动态操作,我创建了两个进程,第一个是在按钮sendmail时进行行处理,第二个是在按钮send email时进行发送电子邮件的过程。

这是我的屏幕截图

英文:

for example, in the model dialog, when i changed the date and click the send email button.
first, i need to update the informations then run the send email process,

to be clear, i want to give you demo what i want to achieve,

first i open the model dialog and then change some names or dates
after i want to click the send email button, send email button should update the informations first and then run the process (send email process).

i tried a few dynamic actions, i made two process, first one row processing with condition when button sendmail and second one send email process when button send email.

this is my screen

答案1

得分: 0

对我来说,看起来好像:

  • 发送邮件按钮应该提交页面(这也会保存您所做的更改)
    • 将“数据库操作”属性设置为“SQL更新操作”
  • 创建一个流程,在按下发送邮件按钮时发送邮件并运行
英文:

To me, it looks as if

  • SEND EMAIL button should submit page (which will also save changes you've made)
    • set "Database action" property to "SQL UPDATE action"
  • create a process which sends mail and runs when SEND EMAIL button is pressed

huangapple
  • 本文由 发表于 2023年8月8日 20:23:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/76859531.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定