Comment column and Radio button variables in Email

378 views
Skip to first unread message

recetor....@gmail.com

unread,
Jan 27, 2016, 5:36:01 AM1/27/16
to Fujitsu RunMyProcess Developer Community
Hi.
I have the comment column and radio button variable. Is it possbile have these values in automatic email that will be send to user?

recetor....@gmail.com

unread,
Jan 28, 2016, 7:35:43 AM1/28/16
to Fujitsu RunMyProcess Developer Community, recetor....@gmail.com
Hi.
Is it possible to appear the comment in email? The application history have the default column have comments and I want that in email appear this comments. Is it possible?

Pankaj Kumar

unread,
Jan 29, 2016, 2:33:07 AM1/29/16
to Fujitsu RunMyProcess Developer Community
Hi,

You can use the "getComment" method of History widget to get the comment and pass it in process variable to use this value in email.

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

On Thu, Jan 28, 2016 at 6:05 PM, <recetor....@gmail.com> wrote:
Hi.
Is it possible to appear the comment in email? The application history have the default column have comments and I want that in email appear this comments. Is it possible?

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/9763d393-b9b6-43bc-b90c-7e2262fd989b%40runmyprocess.com.

recetor....@gmail.com

unread,
Jan 29, 2016, 4:37:13 AM1/29/16
to Fujitsu RunMyProcess Developer Community
Hi.
But what I should put in email? just "getComment()" ?

Pankaj Kumar

unread,
Jan 29, 2016, 6:13:01 AM1/29/16
to Fujitsu RunMyProcess Developer Community
Hi,

Id_history_widget.getComment(), this will return the comment enter by the user. Please use 

RMPApplication.setVariable(varname, varValue)

method to set the comment in process variable.

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

On Fri, Jan 29, 2016 at 3:07 PM, <recetor....@gmail.com> wrote:
Hi.
But what I should put in email? just "getComment()" ?
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.

recetor....@gmail.com

unread,
Jan 29, 2016, 6:24:00 AM1/29/16
to Fujitsu RunMyProcess Developer Community
Hi.
I didn't understand this line:

RMPApplication.setVariable(varname, varValue)

I put in email:

AUTO_HISTORY.getComment()

And in email appear this line, not the comment.

recetor....@gmail.com

unread,
Jan 29, 2016, 9:15:00 AM1/29/16
to Fujitsu RunMyProcess Developer Community, recetor....@gmail.com
Can you help me?

Pankaj Kumar

unread,
Jan 30, 2016, 12:29:28 AM1/30/16
to Fujitsu RunMyProcess Developer Community
Hi,

To get the comment enter by user, before submitting the method, please use java script method

var comment = id_history_widget.getComment()

and to set it in process variable

RMPApplication.setVariable("com1", comment );


In process email template, use ${com1}, to set the comment in message body. 


Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

On Fri, Jan 29, 2016 at 7:44 PM, <recetor....@gmail.com> wrote:
Can you help me?


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.

recetor....@gmail.com

unread,
Feb 1, 2016, 5:13:41 AM2/1/16
to Fujitsu RunMyProcess Developer Community
Hi.
Didn't work. See screenshots. Please help me.
email.JPG
interface.JPG
process.JPG
script.JPG

Murali

unread,
Feb 1, 2016, 7:05:17 AM2/1/16
to Fujitsu RunMyProcess Developer Community, recetor....@gmail.com
Hi,

Hope you have added the script in "Pre-Launch script" section and make sure to include "true;" statement as last statement to resolve the same.

//alert("Update - Prelaunch script");
var comment = id_history_widget.getComment();

RMPApplication.setVariable("com1", comment );
//alert("com1 : "+RMPApplication.getVariable("com1"));
true;

Regards,
Murali

recetor....@gmail.com

unread,
Feb 1, 2016, 7:21:06 AM2/1/16
to Fujitsu RunMyProcess Developer Community, recetor....@gmail.com
Thanks Murali.
Is there some feature to put the comment required just in some cases?

recetor....@gmail.com

unread,
Feb 1, 2016, 7:34:37 AM2/1/16
to Fujitsu RunMyProcess Developer Community, recetor....@gmail.com
I try this in button but didn't work:

var comment = AUTO_HISTORY.getComment();


RMPApplication.setVariable("com1", comment );

comment.setRequired(true);

Pankaj Kumar

unread,
Feb 2, 2016, 2:36:05 AM2/2/16
to Fujitsu RunMyProcess Developer Community
Hi,

Please refer to attached screen print to access the comment by java script.

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
history_comment.png

recetor....@gmail.com

unread,
Feb 2, 2016, 5:08:44 AM2/2/16
to Fujitsu RunMyProcess Developer Community
Hi.
You have equal of my solution.

id_history.getComment()

But I try set required, but didn't work. How I can do this?

recetor....@gmail.com

unread,
Feb 2, 2016, 12:43:43 PM2/2/16
to Fujitsu RunMyProcess Developer Community, recetor....@gmail.com
Somebody can help me?

Pankaj Kumar

unread,
Feb 3, 2016, 4:07:39 AM2/3/16
to Fujitsu RunMyProcess Developer Community
Hi,

Please find my comment in blue color on script you are using.

// assuming AUTO_HISTORY is valid identifier for history widget.
var comment = AUTO_HISTORY.getComment();
// comment is a string as getComment return string
RMPApplication.setVariable("com1", comment );
comment.setRequired(true);
// error as you are invoking setRequired method on string.
alert("com1 : "+RMPApplication.getVariable("com1"));
true;

BTW you can also use "Get history feed of an appinstance [c]" connector in "RunMyProcess - Secured Connection" provider.

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.

recetor....@gmail.com

unread,
Feb 3, 2016, 4:55:03 AM2/3/16
to Fujitsu RunMyProcess Developer Community
Hi.
I copy and paste your code, but didn't work. When I try click in button, didn't work. See screenshots. Please help me.
ApplicationHistory.JPG
script.JPG
Reply all
Reply to author
Forward
0 new messages