showErrorBox()

215 views
Skip to first unread message

tom....@mycit.ie

unread,
Oct 18, 2013, 1:01:18 PM10/18/13
to suppor...@runmyprocess.com
Is there a way to include a line break in the message displayed by a call to showErrorBox() ?
I've tried \n \\n <br /> but they all display literally.

Sabine El Rassy

unread,
Oct 18, 2013, 1:12:41 PM10/18/13
to RunMyProcess Support Forum
Hello Tom,

RMPApplication.showErrorBox("Title of the error","Your error \n message");

In the title you cannot include a break line unlike the content.
Regards,

Sabine

tom....@mycit.ie

unread,
Oct 19, 2013, 3:45:52 PM10/19/13
to suppor...@runmyprocess.com
Thanks Sabine, my question wasn't specific enough: I was trying to display the result of a Composite API call in the dialog message:

RMPApplication.showErrorBox(dialog_title, P_computed.rtn_mesg);

If I use \n \\n or <br /> in the value assigned server-side to rtn_mesg in Freemarker, the result is that the literal text is displayed, not a line break - so it seems special characters are being escaped.

I realise I can now do this, if I use <br> wherever I want a line break in the Freemarker assignment:

RMPApplication.showErrorBox(dialog_title, P_computed.rtn_mesg.replace(/<br>/g, '\n'));


Sabine El Rassy

unread,
Oct 21, 2013, 3:57:31 AM10/21/13
to RunMyProcess Support Forum
Hello Tom,

Glad that you've figured it out.

Regards

Sabine EL RASSY

PreSales Consultant

     
Fujitsu RunMyProcess user? Please add a review on GoogleApps Marketplace

Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
Be environmentally friendly: do not print this email unless it is entirely necessary.




--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" 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 http://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/5ff16874-6ae0-43ab-9f61-54b987bf9d1c%40runmyprocess.com.

Reply all
Reply to author
Forward
0 new messages