cancel
Showing results for 
Search instead for 
Did you mean: 

XML Forms - news message - send content as mail

Former Member
0 Kudos

Hi all,

our customer would like to have the possibility to send an XML forms news item by mail. Not just a mail with the link to the news item, but the content has to be displayed as HTML into the mail body.

Has anybody implemented this before or knows what would be the best way?

Perhaps an approach would be to create a new XML command that allows selection of one or two XML files and generate an e-mail?

Thanks for the help,

Kevin

Accepted Solutions (0)

Answers (2)

Answers (2)

abdulbasit
Active Contributor
0 Kudos

Hi Kevin,

Here is my solution :

1. Create a UI Command named like "Send Form by E-Mail"

Here is example

<a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/Implementing%20Flexible%20UI%20One-Step-Screenflow.article">Implementing Flexible UI One-Step-Screenflow</a>

Modify this example according to your requirements.

Create a command group for your UI Command.

2. Then create a new layout set for your news items. In the resource renderer select your new command group for "Resource Command Group" and use your new Layout Set for your XML Forms.

Here is a similar example :

<a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3079%3Fpage%3Dlast%26x-order%3Ddate">A Real World Example of Flexible User Interface – Part 2</a>

Regards

Abdul.

Former Member
0 Kudos

Hi,

I guess the best solution is indeed to create a new UI command to send the mail, followed by a new layoutset.

Sending XML Forms items is a missing functionality in the portal, isn't it?

@Detlev, is this functionality implemented in the easyWCM2.0 solution offered by your company?

Thanks for the replies - points rewarded

detlev_beutner
Active Contributor
0 Kudos

Hi Kevin,

> to create a new UI command to send the mail

A one-step-screenflow would have the need to pop-up an extra window, as in fact you need at least two steps for the action.

> is this functionality implemented in the easyWCM2.0

No, it isn't, as the focus of easyWCM is the easy possibility to create web content. Anyhow, maybe a good idea for some 3.0...?!

> offered by your company

Please check my business card

Hope it helps

Detlev

detlev_beutner
Active Contributor
0 Kudos

Hi Kevin,

A fast approach would be to create a RepositoryService which reacts on the creation of new documents (restricted by implementation to (certain) XMLForms) and sends them via mail. At the same time, it could delete the just created XMLForms (or the folder in which the service would be active could be named "Sent items" or similar).

Keep in mind that you don't have good possibilities to implement any logic like checking the address etc.

Hope it helps

Detlev