The CreatorCon Call for Content is officially open! Get started here.

New line \n in event & alert description support

gavinsmith1
Kilo Explorer

Does the event or alert description field support the use of the \n or \\n or some type of new line character.

The field just displays anything I place in as text.

Have also created a event rule to combine multiple event fields to compose a more meaningful description which does not work either.

It creates one long message.

e.g.

${MESSAGE1} \n ${MESSAGE} \\n ${MESSAGE3} \n\n ${MESSAGE4}

Build: Jakarta

Is this by design or is there specific character combination that is required.

Thanks

Gavin

5 REPLIES 5

Deepak Kumar5
Kilo Sage

Try with


${MESSAGE1} + '\n'+ ${MESSAGE}


Thanks for reply Deepak. I tried that with no luck.



Here's what I added.



Event rule:


find_real_file.png


${VIOLATED_MEASURE_METRIC_DESCRIPTION} + '\n' + ${VIOLATION_MESSAGE_1} + '\\n' + ${VIOLATION_MESSAGE_1} + '<BR>'



Alert description:


find_real_file.png


Checking the table params i see this is define as string. Maybe it doesn't support or the UI can't interrupt the '\n' character?


btw: Am very new to SN.



find_real_file.png


Chaithanya10
Tera Contributor

Hello,

 

you can use "<br\>" to make it in next line.

 

Ex message: "First line.Second line"

 

you should enter the string as "First line.<br\> <br\>second line"

 

output:

First line

Second Line

 

 

Note:Please accept the sution if it works for you.