cancel
Showing results for 
Search instead for 
Did you mean: 

Escape sequence problem (\n)

Former Member
0 Kudos

Hello,

I have a string " Hi, how are how?" This string is mapped to one context attribute.

i have to display this two lines like,

Hi,

How are you?

in java we use \n escape sequence to display in two lines, in WebDynpro do we have any option to display like that.???

pls help me in solving this.

regards,

rachel.

Accepted Solutions (0)

Answers (3)

Answers (3)

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Raji,

We can do that. try like this

wdContext.currentContextElement().setTextEdit(textEdit1"\r\n"textEdit2);

Regards, Suresh KB

Former Member
0 Kudos

Hi Suresh,

wdContext.currentContextElement().setTextEdit(textEdit1"\r\n"textEdit2);

Its not working correctly.

Is there any other way to display the string in two seperate lines????

thanks,

raji

Former Member
0 Kudos

Hi,

In webdynpro also you can use the \n.

Regards,

Sudhir.

Former Member
0 Kudos

Hi

You can use two text different views places one below other for the two lines. I think, then you ll ve to use two different context attributes as well.

If this does nt serve your purpose, u can try use of "\n" while setting the value for the single attribute that you are using currently.

I hope any of the above ideas helps you.

Regards

Kapil S Kamble