cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying the warning msg in a iview

Former Member
0 Kudos

Hi ,

I am working on a java application which is deployed on sap netweaver.

my application throws a confirmation box with a msg as shown below.

this is how the msg looks like but i want it be in the below format

My msg variable contains the below message i tried adding \n to it before displaying in the iview but not succceded.

"Total of working and nonworking time is not matching .............Please recheck the values "

1) ADVSSUP01 corresponding weekendate 2013-02-02 and the maximum working hours are 38.75.

2) ADVSSUP01 corresponding weekendate 2013-02-09 and the maximum working hours are 38.75.

............................................. and soon...

Are you Sure that you want to submit the timesheets?

i tried to add new line character to the msg but i am getting a javascript error Like "concanated string not terminated properly"

could anyone help me how to add newline character to msg and dispaly the same in iview ?

Thanks in advance.

Regards,

Pandu.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Pandu,

You could try adding a <br> tag in the text and see if that gets output as raw HTML, if it does it will give you a line break.

Worth a try I think,

Simon

Former Member
0 Kudos

Hi simon,

Thanks for the reply can you please tell where exactly i should use <br> ?

Regards,

Pandu .J

Former Member
0 Kudos

Place it in your string where ever you want to put in a line break.

Former Member
0 Kudos

i tried but no use i getting a portal runtime exception say that unterminated string.